:root {
  color-scheme: dark;
  --bg: #050b16;
  --panel: rgba(11, 20, 36, .92);
  --line: rgba(255, 255, 255, .12);
  --muted: #8b9bb1;
  --cyan: #67e8f9;
  --cyan-strong: #22d3ee;
  --ink: #f8fafc;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, select { font: inherit; }
a { color: inherit; }

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(103, 232, 249, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 232, 249, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.ambient { position: fixed; width: 42vw; height: 42vw; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .12; }
.ambient-left { top: -18vw; left: -16vw; background: #22d3ee; }
.ambient-right { right: -18vw; bottom: -20vw; background: #0e7490; }

.site-header, .layout, .site-footer { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(103, 232, 249, .25); border-radius: 12px; background: linear-gradient(145deg, rgba(34, 211, 238, .2), rgba(34, 211, 238, .04)); box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 0 18px rgba(103, 232, 249, .06); }
.brand-mark svg { width: 23px; height: 23px; fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: -.04em; }
.brand-name span { color: var(--cyan); }
.gateway-status { display: flex; align-items: center; gap: 9px; color: rgba(186, 230, 253, .72); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.gateway-status i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 15px rgba(52, 211, 153, .95); }

.layout { display: grid; min-height: calc(100vh - 150px); grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: clamp(48px, 9vw, 118px); padding: 36px 0 60px; }
.intro { max-width: 610px; }
.eyebrow, .panel-kicker { color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(103, 232, 249, .16); border-radius: 999px; background: rgba(103, 232, 249, .06); }
.eyebrow-icon { font-size: 13px; }
h1 { max-width: 680px; margin: 27px 0 0; font-size: clamp(44px, 6vw, 84px); line-height: .94; letter-spacing: -.075em; }
.intro-copy { max-width: 520px; margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; max-width: 540px; margin-top: 44px; }
.trust-card { padding: 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .035); backdrop-filter: blur(8px); }
.trust-icon { display: block; color: var(--cyan); font-size: 17px; }
.trust-card strong, .trust-card small { display: block; }
.trust-card strong { margin-top: 11px; color: #dbeafe; font-size: 10px; }
.trust-card small { margin-top: 5px; color: #64748b; font-size: 9px; line-height: 1.4; }

.login-panel { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 27px; background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(18px); }
.login-panel::before { position: absolute; inset: -14px; z-index: -1; border: 1px solid rgba(103, 232, 249, .08); border-radius: 34px; content: ""; background: rgba(103, 232, 249, .025); filter: blur(14px); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-kicker { margin: 0; }
h2 { margin: 11px 0 0; font-size: 26px; letter-spacing: -.05em; }
.panel-symbol { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(103, 232, 249, .16); border-radius: 13px; color: var(--cyan); background: rgba(103, 232, 249, .08); font-size: 19px; }
.panel-copy { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
form { margin-top: 28px; }
label { display: block; color: #cbd5e1; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
select { width: 100%; height: 50px; margin-top: 9px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; outline: none; color: white; background: #101d31; font-size: 12px; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease); }
select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .09); }
option { color: #0f172a; background: white; }
.security-note { display: flex; gap: 11px; margin-top: 18px; padding: 14px; border: 1px solid rgba(103, 232, 249, .1); border-radius: 12px; background: rgba(103, 232, 249, .045); }
.check-icon { flex: 0 0 auto; color: var(--cyan); font-size: 16px; }
.security-note p { margin: 0; color: #cbd5e1; font-size: 10px; line-height: 1.7; }
.form-message { min-height: 18px; margin-top: 13px; color: #fca5a5; font-size: 10px; line-height: 1.5; }
.form-message.success { color: #a7f3d0; }
button { display: flex; width: 100%; height: 50px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; color: #06111f; background: var(--cyan); box-shadow: 0 12px 30px rgba(34, 211, 238, .18); cursor: pointer; font-size: 11px; font-weight: 850; transition: transform 140ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease); }
button:hover { background: #a5f3fc; box-shadow: 0 15px 38px rgba(34, 211, 238, .27); }
button:active { transform: scale(.98); }
button:disabled { cursor: wait; opacity: .65; }
.arrow { font-size: 18px; transition: transform 180ms var(--ease); }
button:hover .arrow { transform: translateX(4px); }
.panel-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: #64748b; font-size: 9px; }
.panel-footer a { color: rgba(103, 232, 249, .8); text-decoration: none; }
.panel-footer a:hover { color: var(--cyan); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 25px; color: #526176; font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 50px; padding-top: 55px; }
  .intro { max-width: 680px; }
  .login-panel { width: min(100%, 520px); }
}
@media (max-width: 560px) {
  .site-header, .layout, .site-footer { width: min(100% - 32px, 1180px); }
  .site-header { padding-top: 20px; }
  .gateway-status { font-size: 7px; letter-spacing: .1em; }
  h1 { font-size: clamp(42px, 14vw, 64px); }
  .intro-copy { font-size: 13px; }
  .trust-grid { grid-template-columns: 1fr; max-width: 260px; margin-top: 30px; }
  .trust-card { display: grid; grid-template-columns: 25px 1fr; column-gap: 8px; align-items: center; }
  .trust-card strong { margin-top: 0; }
  .trust-card small { grid-column: 2; }
  .login-panel { padding: 24px 20px; border-radius: 22px; }
  .site-footer { flex-direction: column; padding-bottom: 20px; font-size: 7px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
