:root {
  color-scheme: dark;
  --ink: #020604;
  --surface: #07100b;
  --mint: #55eba8;
  --mint-bright: #8bffc9;
  --paper: #f3f8f5;
  --muted: #91a39a;
  --dim: #60746a;
  --line: rgba(139, 255, 201, .13);
  --line-strong: rgba(85, 235, 168, .4);
  --warning: #ffb162;
  --warning-soft: rgba(255, 177, 98, .04);
  --warning-line: rgba(255, 177, 98, .35);
  --warning-glow: rgba(255, 177, 98, .16);
  font-family: Inter, Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--paper);
  background: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 17% 12%, rgba(28, 122, 79, .14), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(26, 82, 58, .1), transparent 32%),
    var(--ink);
}
button, input { font: inherit; }

.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .52;
  background-image:
    linear-gradient(rgba(109, 245, 179, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 245, 179, .032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(110deg, #000 8%, transparent 72%);
  animation: grid-drift 24s linear infinite;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 12%, rgba(2, 6, 4, .12) 49%, rgba(2, 6, 4, .8) 100%);
}
.scene-aurora { position: absolute; border-radius: 999px; filter: blur(90px); opacity: .16; }
.scene-aurora-one { width: 440px; height: 320px; left: -110px; top: 15%; background: #1fbf78; animation: aurora-one 15s ease-in-out infinite alternate; }
.scene-aurora-two { width: 360px; height: 360px; right: -100px; bottom: -40px; background: #144d37; animation: aurora-two 18s ease-in-out infinite alternate; }
.scene-orbit { position: absolute; border: 1px solid rgba(85, 235, 168, .1); border-radius: 50%; }
.scene-orbit::after { content: ""; position: absolute; width: 8px; height: 8px; top: 50%; left: -4px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 20px rgba(85, 235, 168, .8); }
.scene-orbit-outer { width: 740px; height: 740px; left: -280px; bottom: -410px; animation: orbit 28s linear infinite; }
.scene-orbit-inner { width: 460px; height: 460px; left: -80px; bottom: -270px; border-style: dashed; animation: orbit 22s linear infinite reverse; }
.scene-scan { position: absolute; z-index: 1; width: 42%; height: 1px; left: 2%; top: 24%; background: linear-gradient(90deg, transparent, rgba(85,235,168,.38), transparent); opacity: .35; animation: scan 8s ease-in-out infinite; }
.scene-signal { position: absolute; z-index: 2; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 22px var(--mint); animation: signal-pulse 2.8s ease-in-out infinite; }
.scene-signal-one { left: 14%; bottom: 17%; }
.scene-signal-two { right: 12%; top: 18%; animation-delay: -1.2s; opacity: .55; }
.scene-pixels { position: absolute; right: 8%; top: 14%; width: 190px; height: 190px; opacity: .38; transform: rotate(-8deg); }
.scene-pixels i { position: absolute; width: 7px; height: 7px; border: 1px solid rgba(139,255,201,.45); animation: pixel-float 5s ease-in-out infinite; }
.scene-pixels i:nth-child(1) { left: 12%; top: 48%; }
.scene-pixels i:nth-child(2) { left: 30%; top: 20%; animation-delay: -.7s; }
.scene-pixels i:nth-child(3) { left: 48%; top: 62%; animation-delay: -1.2s; }
.scene-pixels i:nth-child(4) { right: 12%; top: 35%; animation-delay: -1.8s; }
.scene-pixels i:nth-child(5) { right: 34%; bottom: 5%; animation-delay: -2.4s; }
.scene-pixels i:nth-child(6) { left: 2%; bottom: 12%; animation-delay: -.3s; }
.scene-pixels i:nth-child(7) { right: 2%; bottom: 28%; animation-delay: -3s; }
.scene-pixels i:nth-child(8) { left: 55%; top: 2%; animation-delay: -3.6s; }

.site-bar {
  position: relative;
  z-index: 5;
  width: min(1440px, calc(100% - 80px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: header-in .7s cubic-bezier(.2,.8,.2,1) both;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: #042016;
  background: var(--mint);
  box-shadow: 0 0 34px rgba(85,235,168,.14), inset 0 1px 0 rgba(255,255,255,.45);
  font-size: 25px;
  font-weight: 950;
}
.brand-copy { display: grid; gap: 3px; }
.brand-name { font-size: 16px; font-weight: 850; letter-spacing: .09em; }
.brand-copy small { color: var(--dim); font: 700 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .2em; }
.network-state { color: var(--mint-bright); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.network-state span { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,235,168,.07), 0 0 15px var(--mint); animation: network-pulse 2s ease-in-out infinite; }

.desktop-required {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 40px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(52px, 10vh, 110px) 0 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  animation: intro-in .85s .08s cubic-bezier(.16,1,.3,1) both;
}
.desktop-required[hidden], .auth-shell[hidden] { display: none; }
.desktop-required-icon { width: 64px; height: 64px; margin-bottom: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 18px; color: var(--mint); background: linear-gradient(145deg, rgba(85,235,168,.16), rgba(85,235,168,.03)); box-shadow: 0 18px 45px rgba(0,0,0,.32), 0 0 34px rgba(85,235,168,.08); }
.desktop-required-icon svg { width: 31px; height: 31px; }
.desktop-required .route-label { margin-bottom: 22px; }
.desktop-required h1 { font-size: clamp(48px, 8vw, 82px); }
.desktop-required-copy { max-width: 590px; margin: 28px 0 30px; color: #a9b8b0; font-size: clamp(15px, 2.8vw, 18px); line-height: 1.7; }
.desktop-required-step { width: 100%; padding: 18px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,18,12,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.desktop-required-step > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--mint); background: rgba(85,235,168,.06); font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.desktop-required-step p { min-width: 0; margin: 1px 0 0; }
.desktop-required-step strong, .desktop-required-step small { display: block; }
.desktop-required-step strong { color: var(--paper); font-size: 14px; }
.desktop-required-step small { margin-top: 6px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.55; }
.desktop-required-note { margin: 20px 0 0; color: #71877b; font: 700 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.desktop-required-note i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.auth-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 76px) 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 480px);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.auth-intro { min-width: 0; max-width: 520px; animation: intro-in .7s .08s cubic-bezier(.16,1,.3,1) both; }
.route-label, .eyebrow, .card-topline, .session-note { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; font-weight: 800; }
.route-label { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--mint); font-size: 10px; }
.route-label span { display: grid; place-items: center; width: 28px; height: 22px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(85,235,168,.07); font-size: 9px; }
h1 { margin: 0; font-size: clamp(48px, 5.3vw, 72px); line-height: .92; letter-spacing: -.06em; font-weight: 900; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(139,255,201,.65); text-shadow: 0 0 55px rgba(85,235,168,.07); }
.intro-copy { max-width: 500px; margin: 24px 0 30px; color: #9eaea5; font-size: 15px; line-height: 1.7; }

.flow-map { max-width: 520px; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,16,11,.56); list-style: none; }
.flow-step { position: relative; min-width: 0; display: grid; grid-template-columns: 24px 1fr; gap: 7px; padding: 11px 9px; border-radius: 10px; color: #53665c; }
.flow-step.is-current { background: rgba(85,235,168,.075); }
.flow-step:not(:last-child)::after { display: none; }
.flow-number { color: inherit; font: 800 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.flow-step strong { display: block; overflow: hidden; color: inherit; font-size: 10px; letter-spacing: .05em; text-overflow: ellipsis; }
.flow-step small { display: block; margin-top: 4px; color: inherit; font-size: 9px; white-space: nowrap; }
.flow-step.is-done, .flow-step.is-current { color: var(--mint-bright); }
.flow-step.is-current .flow-number { text-shadow: 0 0 12px var(--mint); animation: current-step 2s ease-in-out infinite; }
.session-note { margin: 34px 0 0; color: #6a8073; font-size: 9px; }
.session-note span { display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.trust-strip span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #789084; background: rgba(8,18,12,.48); font-size: 9px; }
.trust-strip i { color: var(--mint); font-style: normal; margin-right: 5px; }

.login-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(6,16,10,.96);
  box-shadow: 0 28px 75px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.025);
  animation: card-in .9s .16s cubic-bezier(.16,1,.3,1) both;
}
.login-card::before { content: ""; position: absolute; z-index: 0; width: 55%; height: 1px; left: -60%; top: 0; background: linear-gradient(90deg,transparent,var(--mint),transparent); animation: border-beam 6s 1.2s ease-in-out infinite; }
.login-card::after { content: ""; position: absolute; right: -110px; top: -120px; width: 280px; height: 280px; border: 1px solid rgba(85,235,168,.085); border-radius: 50%; box-shadow: 0 0 0 32px rgba(85,235,168,.02), 0 0 0 67px rgba(85,235,168,.012); pointer-events: none; animation: ring-breathe 7s ease-in-out infinite; }
.card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; color: #658073; font-size: 8px; }
.card-live { color: var(--mint-bright); }
.card-live i { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.identity-mark { position: relative; z-index: 1; width: 54px; height: 54px; margin: 27px 0 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 15px; background: linear-gradient(145deg, rgba(85,235,168,.16), rgba(85,235,168,.03)); box-shadow: 0 12px 35px rgba(0,0,0,.22); }
.identity-mark::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(139,255,201,.12); border-radius: 10px; }
.identity-mark span { color: var(--mint); font-size: 26px; font-weight: 950; }
.eyebrow { margin: 28px 0 9px; color: var(--mint); font-size: 9px; }
h2 { margin: 0; font-size: clamp(29px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.04em; }
.description { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.description[hidden] { display: none; }
.status { position: relative; z-index: 1; margin: 17px 0; padding: 11px 13px 11px 37px; border: 1px solid rgba(206,180,76,.24); border-radius: 10px; background: rgba(111,88,12,.11); color: #d7ca91; font-size: 10px; line-height: 1.5; }
.status::before { content: "i"; position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; font: 800 9px/1 ui-monospace,monospace; opacity: .75; }
.status.success, .success { border-color: rgba(85,235,168,.38); background: rgba(85,235,168,.09); color: var(--mint-bright); animation: success-pop .55s cubic-bezier(.2,.8,.2,1) both; }
.status.success::before { content: "✓"; border-color: var(--mint); box-shadow: 0 0 16px rgba(85,235,168,.22); }
.auth-intro[hidden], .security-note[hidden], .login-complete[hidden] { display: none; }
.auth-shell[data-complete="true"] { grid-template-columns: minmax(420px, 540px); justify-content: center; }
.login-card[data-complete="true"] { min-height: 510px; display: flex; flex-direction: column; justify-content: center; }
.login-card[data-complete="true"] .card-topline { position: absolute; top: 32px; left: 42px; right: 42px; }
.login-card[data-complete="true"] .identity-mark,
.login-card[data-complete="true"] > .eyebrow,
.login-card[data-complete="true"] > h2 { display: none; }
.login-complete { position: relative; z-index: 1; padding: 58px 8px 18px; text-align: center; animation: success-pop .55s cubic-bezier(.2,.8,.2,1) both; }
.complete-mark { width: 78px; height: 78px; margin: 0 auto 25px; display: grid; place-items: center; border: 1px solid rgba(85,235,168,.42); border-radius: 23px; color: #03130b; background: var(--mint); box-shadow: 0 0 0 10px rgba(85,235,168,.045), 0 22px 52px rgba(85,235,168,.16); }
.complete-mark svg { width: 38px; height: 38px; }
.complete-route { margin: 0 0 12px; color: var(--mint); font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.login-complete h3 { margin: 0; color: var(--paper); font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -.045em; }
.login-complete > p:not(.complete-route):not(.complete-hint) { max-width: 380px; margin: 17px auto 28px; color: #a9b8b0; font-size: 13px; line-height: 1.7; }
.complete-close { width: 100%; min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--mint); border-radius: 11px; color: #03130b; background: var(--mint); font-weight: 900; letter-spacing: .035em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.complete-close:hover { transform: translateY(-2px); background: var(--mint-bright); box-shadow: 0 16px 38px rgba(85,235,168,.18); }
.complete-close:active { transform: translateY(0) scale(.99); }
.complete-close:focus-visible { outline: 3px solid var(--mint-bright); outline-offset: 3px; }
.complete-close span:last-child { font-size: 22px; font-weight: 500; line-height: 1; }
.enable-mfa { width: 100%; margin: 0 0 10px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(85,235,168,.28); border-radius: 11px; color: var(--mint); background: rgba(85,235,168,.055); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.enable-mfa[hidden] { display: none; }
.enable-mfa:hover { transform: translateY(-1px); border-color: var(--mint); background: rgba(85,235,168,.09); }
.enable-mfa strong, .enable-mfa small { display: block; }
.enable-mfa strong { font-size: 11px; }
.enable-mfa small { margin-top: 4px; color: #7f978a; font-size: 9px; }
.disable-mfa { color: #f0c98e; border-color: rgba(240,201,142,.25); background: rgba(240,201,142,.045); }
.disable-mfa:hover { border-color: #f0c98e; background: rgba(240,201,142,.08); }
.disable-mfa:disabled { cursor: wait; opacity: .55; }
.confirmation-dialog { width: min(calc(100% - 32px), 440px); max-width: none; margin: auto; padding: 0; border: 1px solid var(--warning-line); border-radius: 18px; color: var(--paper); background: #06100a; box-shadow: 0 34px 100px rgba(0,0,0,.68), 0 0 0 1px rgba(255,177,98,.035) inset; }
.confirmation-dialog[hidden] { display: none; }
.confirmation-dialog::backdrop { background: rgba(0,4,2,.78); backdrop-filter: blur(8px); }
.confirmation-dialog-panel { padding: 27px; }
.confirmation-icon { width: 42px; height: 42px; margin-bottom: 20px; display: grid; place-items: center; border: 1px solid var(--warning-line); border-radius: 12px; color: #251306; background: var(--warning); box-shadow: 0 0 0 7px var(--warning-soft), 0 14px 32px var(--warning-glow); font: 900 21px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.confirmation-kicker { margin: 0 0 9px; color: var(--warning); font: 800 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .17em; }
.confirmation-dialog h2 { margin: 0; color: var(--paper); font-size: 29px; line-height: 1.05; letter-spacing: -.035em; }
.confirmation-dialog #disable-mfa-dialog-copy { margin: 12px 0 0; color: #9caf9f; font-size: 12px; line-height: 1.6; }
.confirmation-consequences { margin: 17px 0 0; padding: 14px 16px 14px 32px; border: 1px solid rgba(255,177,98,.15); border-radius: 11px; color: #c7d2cb; background: var(--warning-soft); font-size: 10px; line-height: 1.75; }
.confirmation-consequences li::marker { color: var(--warning); }
.confirmation-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.confirmation-cancel, .confirmation-danger { min-height: 48px; padding: 0 15px; border-radius: 10px; font: 850 11px/1 inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.confirmation-cancel { border: 1px solid rgba(139,255,201,.2); color: #cbd8d1; background: rgba(255,255,255,.025); }
.confirmation-danger { border: 1px solid var(--warning); color: #241205; background: var(--warning); }
.confirmation-cancel:hover, .confirmation-danger:hover { transform: translateY(-1px); }
.confirmation-cancel:hover { border-color: rgba(139,255,201,.48); background: rgba(255,255,255,.05); }
.confirmation-danger:hover { background: #ffc17f; box-shadow: 0 12px 28px var(--warning-glow); }
.confirmation-cancel:focus-visible, .confirmation-danger:focus-visible { outline: 3px solid var(--mint-bright); outline-offset: 3px; }
.confirmation-danger:disabled { cursor: wait; opacity: .6; }
.complete-hint { max-width: 360px; margin: 14px auto 0; color: #667d71; font-size: 9px; line-height: 1.55; }

form { position: relative; z-index: 1; }
form[hidden] { display: none; }
label { display: block; margin: 0 0 8px; color: #cfdbd4; font-size: 11px; font-weight: 750; }
.input-shell { position: relative; min-height: 52px; margin-bottom: 17px; display: flex; align-items: center; border: 1px solid rgba(139,255,201,.17); border-radius: 11px; background: rgba(1,7,4,.72); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }
.input-shell::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: radial-gradient(130px circle at 50% 50%, rgba(85,235,168,.16), transparent 68%); opacity: 0; transition: opacity .2s ease; }
.input-shell:hover::after { opacity: 1; }
.input-shell:focus-within { border-color: var(--mint); background: rgba(4,15,9,.9); box-shadow: 0 0 0 3px rgba(85,235,168,.075), 0 14px 32px rgba(0,0,0,.16); transform: translateY(-1px); }
.input-shell.is-locked { border-style: dashed; background: rgba(85,235,168,.025); }
.field-index { flex: 0 0 43px; color: #557565; text-align: center; font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--paper); padding: 14px 14px 14px 0; font-size: 14px; }
input[readonly] { color: var(--mint-bright); cursor: default; }
input::placeholder { color: #536a5e; }
input::-ms-reveal, input::-ms-clear { display: none; }
.password-field { padding-right: 4px; }
#password-toggle { flex: 0 0 42px; width: 42px; height: 42px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: #86a194; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
#password-toggle[hidden] { display: none; }
#password-toggle:hover { background: rgba(85,235,168,.09); color: var(--mint); transform: scale(1.04); }
#password-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
#password-toggle svg { width: 20px; height: 20px; }
#password-toggle .eye-closed { display: none; }
#password-toggle[aria-pressed="true"] .eye-open { display: none; }
#password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.hint { margin: -6px 0 16px; color: #71857a; font-size: 9px; line-height: 1.45; }
.password-policy { margin: -7px 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(85,235,168,.018); }
.password-policy[hidden] { display: none; }
.policy-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #91a69a; font-size: 10px; }
.policy-heading strong { color: #cddbd3; font-size: 10px; }
.policy-heading span { color: #6d8277; font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.policy-meter { height: 3px; margin: 9px 0 11px; overflow: hidden; border-radius: 99px; background: #15231b; }
.policy-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint); box-shadow: 0 0 10px rgba(85,235,168,.35); transition: width .2s ease; }
.password-policy ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.password-policy li { display: flex; align-items: center; gap: 6px; color: #667a70; font-size: 9px; line-height: 1.35; transition: color .18s ease; }
.password-policy li span { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #40554a; border-radius: 50%; color: transparent; font-size: 8px; transition: .18s ease; }
.password-policy li[data-met="true"] { color: #a8c6b6; }
.password-policy li[data-met="true"] span { border-color: var(--mint); color: #03130b; background: var(--mint); box-shadow: 0 0 8px rgba(85,235,168,.18); }
.password-policy > p { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: #70867a; font-size: 9px; line-height: 1.5; }
.optional-label { margin-left: 5px; color: #6d8277; font-size: 9px; font-weight: 600; }
.form-link { display: block; width: max-content; margin: 13px auto 0; color: #8ca095; font-size: 10px; text-decoration: none; }
.form-link:hover, .form-link:focus-visible { color: var(--mint); outline: none; text-decoration: underline; }
.form-link[hidden] { display: none; }
.forget-device { border: 0; background: transparent; cursor: pointer; }
.forget-device:disabled { cursor: wait; opacity: .55; }
.registration { position: relative; margin: 0 0 18px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(85,235,168,.018); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.registration:hover { border-color: rgba(85,235,168,.28); background: rgba(85,235,168,.04); }
.registration[hidden], #confirmation-field[hidden] { display: none; }
.registration input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.registration-control { flex: 0 0 34px; width: 34px; height: 20px; border: 1px solid #536e60; border-radius: 999px; background: #101b15; transition: .18s ease; }
.registration-control::after { content: ""; display: block; width: 12px; height: 12px; margin: 3px; border-radius: 50%; background: #75867d; transition: .18s ease; }
.registration input:checked + .registration-control { border-color: var(--mint); background: rgba(85,235,168,.16); }
.registration input:checked + .registration-control::after { transform: translateX(14px); background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.registration input:focus-visible + .registration-control { outline: 2px solid var(--mint-bright); outline-offset: 3px; }
.registration strong, .registration small { display: block; }
.registration strong { color: #dce7e0; font-size: 11px; }
.registration small { margin-top: 3px; color: #71857a; font-size: 9px; }
.remember-device { position: relative; margin: 2px 0 12px; padding: 11px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(85,235,168,.018); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.remember-device[hidden] { display: none; }
.remember-device:hover { border-color: rgba(85,235,168,.28); background: rgba(85,235,168,.04); transform: translateY(-1px); }
.remember-device input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.remember-control { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #536e60; border-radius: 8px; color: transparent; background: #101b15; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.remember-control svg { width: 16px; height: 16px; }
.remember-device input:checked + .remember-control { border-color: var(--mint); color: #03130b; background: var(--mint); box-shadow: 0 0 18px rgba(85,235,168,.18); }
.remember-device input:focus-visible + .remember-control { outline: 2px solid var(--mint-bright); outline-offset: 3px; }
.remember-device strong, .remember-device small { display: block; }
.remember-device strong { color: #dce7e0; font-size: 11px; }
.remember-device small { margin-top: 3px; color: #71857a; font-size: 9px; line-height: 1.45; }
.danger-device { margin-top: -10px; }
.danger-device:hover { border-color: var(--warning-line); background: var(--warning-soft); }
.danger-device input:checked + .remember-control { border-color: var(--warning); background: var(--warning); box-shadow: 0 0 18px var(--warning-glow); }
.mfa-stage { margin: 2px 0 19px; padding: 15px; border: 1px solid rgba(85,235,168,.24); border-radius: 13px; background: linear-gradient(145deg,rgba(85,235,168,.055),rgba(85,235,168,.012)); animation: success-pop .28s ease both; }
.mfa-stage[hidden], #password-stage[hidden] { display: none; }
.mfa-heading-row { margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.mfa-heading-row strong, .mfa-heading-row small { display: block; }
.mfa-heading-row strong { color: #dce7e0; font-size: 11px; }
.mfa-heading-row small { margin-top: 3px; color: #71857a; font-size: 9px; }
.mfa-shield { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border: 1px solid rgba(85,235,168,.28); border-radius: 10px; color: var(--mint); background: rgba(85,235,168,.065); box-shadow: inset 0 0 14px rgba(85,235,168,.035); }
.mfa-shield svg { width: 19px; height: 19px; }
.mfa-input-shell input { font: 800 18px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .26em; }
.mfa-recovery-toggle { margin-top: -5px; border: 0; background: transparent; cursor: pointer; }
.mfa-enrollment[hidden], .mfa-recovery-codes[hidden] { display: none; }
.mfa-enrollment { margin-bottom: 18px; text-align: center; }
.mfa-enrollment-kicker { margin: 0 0 8px; color: var(--mint); font: 800 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
.mfa-enrollment h3, .mfa-recovery-codes h3 { margin: 0 0 8px; color: var(--paper); font-size: 19px; line-height: 1.2; }
.mfa-enrollment > p:not(.mfa-enrollment-kicker), .mfa-recovery-codes > p { margin: 0 0 14px; color: #82978c; font-size: 10px; line-height: 1.55; }
.mfa-qr { width: min(230px,100%); aspect-ratio: 1; margin: 15px auto; padding: 10px; border-radius: 15px; background: #fff; box-shadow: 0 14px 35px rgba(0,0,0,.25), 0 0 0 1px rgba(85,235,168,.25); }
.mfa-qr svg { display: block; width: 100%; height: 100%; }
.mfa-manual-key { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(2,8,5,.48); text-align: left; }
.mfa-manual-key span { display: block; margin-bottom: 7px; color: #71857a; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.mfa-manual-key code { display: block; overflow-wrap: anywhere; color: #d8f9e7; font: 800 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.mfa-manual-key button { margin-top: 9px; padding: 7px 10px; border: 1px solid rgba(85,235,168,.25); border-radius: 8px; color: var(--mint); background: rgba(85,235,168,.05); font-size: 9px; cursor: pointer; }
.mfa-enrollment .mfa-enrollment-note { margin-top: 11px; color: #d7ca91; }
.mfa-recovery-codes { position: relative; z-index: 1; margin-top: 22px; padding: 19px; border: 1px solid rgba(85,235,168,.28); border-radius: 14px; background: rgba(85,235,168,.035); text-align: center; animation: success-pop .35s ease both; }
.mfa-recovery-codes pre { margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; color: #d8f9e7; background: #030a06; font: 800 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; user-select: all; }
.mfa-recovery-codes .form-link { border: 0; background: transparent; cursor: pointer; }
.form-actions { margin-top: 17px; display: grid; gap: 9px; }
.form-actions:has(.recovery-action:not([hidden])) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.submit { position: relative; overflow: hidden; width: 100%; min-height: 52px; margin: 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--mint); border-radius: 12px; background: var(--mint); color: #03130b; font-weight: 900; letter-spacing: .035em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease; }
.submit::before { content: ""; position: absolute; inset: 0; transform: translateX(-115%); background: linear-gradient(105deg,transparent 25%,rgba(255,255,255,.42) 50%,transparent 75%); transition: transform .55s ease; }
.submit:not(:disabled):hover { transform: translateY(-2px); background: var(--mint-bright); box-shadow: 0 16px 38px rgba(85,235,168,.18); }
.submit:not(:disabled):hover::before { transform: translateX(115%); }
.submit:not(:disabled):active { transform: translateY(0) scale(.99); }
.submit:focus-visible { outline: 3px solid var(--mint-bright); outline-offset: 3px; }
.submit:disabled { opacity: .32; cursor: not-allowed; }
.recovery-action { width: 100%; min-height: 52px; margin: 0; padding: 0 14px; display: grid; place-items: center; border: 1px solid rgba(139,255,201,.2); border-radius: 12px; color: #abc0b5; background: rgba(85,235,168,.035); font-weight: 750; text-align: center; transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease; }
.recovery-action:hover, .recovery-action:focus-visible { transform: translateY(-2px); border-color: var(--mint); color: var(--mint-bright); background: rgba(85,235,168,.075); text-decoration: none; }
.security-note { position: relative; z-index: 1; margin-top: 18px; padding-top: 15px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); color: #71877b; }
.security-symbol { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--mint); background: rgba(85,235,168,.045); }
.security-symbol svg { width: 17px; height: 17px; }
.security-note p { margin: 0; font-size: 9px; line-height: 1.5; }
.security-note strong { color: #93a79c; }

@keyframes header-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes intro-in { from { opacity: 0; transform: translateX(-28px); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.975); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes grid-drift { to { background-position: 64px 64px; } }
@keyframes signal-pulse { 0%,100% { opacity:.3; transform:scale(.72); } 50% { opacity:1; transform:scale(1); } }
@keyframes network-pulse { 0%,100% { opacity:.55; } 50% { opacity:1; box-shadow:0 0 0 7px rgba(85,235,168,.04),0 0 17px var(--mint); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes scan { 0%,100% { transform: translateY(-55px); opacity:0; } 30%,70% { opacity:.34; } 50% { transform:translateY(280px); } }
@keyframes aurora-one { to { transform:translate(70px,45px) scale(1.13); } }
@keyframes aurora-two { to { transform:translate(-55px,-35px) scale(.9); } }
@keyframes pixel-float { 0%,100% { transform:translateY(0) rotate(0); opacity:.3; } 50% { transform:translateY(-13px) rotate(90deg); opacity:.8; } }
@keyframes current-step { 50% { opacity:.58; } }
@keyframes ring-breathe { 50% { transform:scale(1.04); opacity:.75; } }
@keyframes border-beam { 0%,22% { left:-60%; } 60%,100% { left:108%; } }
@keyframes success-pop { from { opacity:0; transform:translateY(5px) scale(.98); } to { opacity:1; transform:none; } }

@media (max-width: 1040px) {
  .site-bar { width: min(100% - 40px, 760px); }
  .auth-shell { width: min(100% - 40px, 760px); grid-template-columns: 1fr; gap: 46px; padding-top: 48px; }
  .auth-intro { max-width: none; }
  h1 { font-size: clamp(54px, 11vw, 82px); }
  .login-card { width: min(100%, 540px); justify-self: center; }
  .scene-pixels { display:none; }
}
@media (max-width: 580px) {
  .scene::before { background-size: 46px 46px; }
  .site-bar { width: calc(100% - 30px); height: 72px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 11px; font-size: 21px; }
  .brand-name { font-size: 14px; }
  .network-state { font-size: 0; letter-spacing: 0; }
  .network-state span { margin: 0; }
  .desktop-required { width: calc(100% - 30px); min-height: calc(100vh - 72px); padding: 38px 0 32px; }
  .desktop-required-icon { width: 56px; height: 56px; margin-bottom: 24px; border-radius: 15px; }
  .desktop-required h1 { font-size: clamp(42px, 13vw, 56px); line-height: .92; }
  .desktop-required-copy { margin: 24px 0 26px; font-size: 14px; }
  .desktop-required-step { grid-template-columns: 38px 1fr; gap: 12px; padding: 15px; }
  .desktop-required-step > span { width: 38px; height: 38px; }
  .auth-shell { width: calc(100% - 24px); max-width: calc(100vw - 24px); min-height: calc(100vh - 72px); padding: 34px 0 20px; gap: 34px; }
  .route-label { margin-bottom: 20px; }
  h1 { font-size: clamp(40px, 13vw, 52px); line-height: .94; letter-spacing: -.05em; }
  h1 span { display: block; }
  .intro-copy { max-width: 100%; margin: 23px 0 30px; overflow-wrap: anywhere; font-size: 14px; }
  .flow-map { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .flow-step { min-width: 0; grid-template-columns: 1fr; gap: 4px; padding-right: 0; }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-step small { max-width: 100%; overflow-wrap: anywhere; white-space: normal; line-height: 1.35; }
  .session-note { margin-top: 25px; line-height: 1.6; }
  .trust-strip { display:none; }
  .login-card { width: 100%; padding: 25px 19px; border-radius: 19px; }
  .login-card[data-complete="true"] { min-height: 460px; }
  .login-card[data-complete="true"] .card-topline { top: 25px; left: 19px; right: 19px; }
  .login-complete { padding: 52px 0 12px; }
  .confirmation-dialog-panel { padding: 23px; }
  .confirmation-actions { grid-template-columns: 1fr; }
  .status { overflow-wrap: anywhere; }
  .card-topline { font-size: 7px; letter-spacing: .08em; }
  .identity-mark { width: 48px; height: 48px; margin: 23px 0 21px; }
  .identity-mark span { font-size: 23px; }
  h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
