body.signed-out {
  background: radial-gradient(ellipse at 20% 70%, #11303670, transparent 52%), #071318;
}
.signed-out main {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  padding: 30px 0;
}
.login-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 488px);
  padding-bottom: 32px;
  background: linear-gradient(137deg, #06171b, #09171d 68%, #0a1c21);
}
.login-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(130deg, transparent 0 86%, #114443 86% 90%, #0fb9aa 90%, #077f80);
}
.brand-banner { display: block; width: 100%; height: auto; mask-image: linear-gradient(#000 89%, transparent); }
.login-form {
  margin: 6px 5.4% 0;
  padding: clamp(24px, 6vw, 35px);
  border: 1px solid transparent;
  border-radius: 24px;
  background: linear-gradient(155deg, #18262d, #0a151b 68%, #0b1b21) padding-box,
    linear-gradient(125deg, #337a77, #415157 31%, #29373e 64%, #1d5857) border-box;
  box-shadow: 0 16px 42px #020a0d48;
}
.login-form h1 { margin: 0; font-size: clamp(34px, 7vw, 42px); font-weight: 700; letter-spacing: -.045em; }
.login-form > p { margin: 7px 0 21px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.login-form svg { width: 20px; height: 20px; flex: none; }
.login-form input:not([type="radio"]) { min-height: 45px; }
.auth-field { position: relative; display: flex; align-items: center; margin-top: 10px; color: var(--muted); }
.auth-field > svg { position: absolute; left: 13px; pointer-events: none; }
.auth-field input {
  margin: 0;
  padding: 11px 14px 11px 44px;
  background: linear-gradient(140deg, #1e2c35, #1a262e);
  border: 1px solid #47585f;
  border-radius: 13px;
  font-size: 16px;
}
.auth-field:has(.reveal-password) input { padding-right: 48px; }
.auth-field input.password-match {
  background: #113428;
  border-color: #60df92;
  outline-color: #60df92;
  box-shadow: inset 3px 0 #60df92;
}
#password-match { margin: 6px 0 0; font-size: 14px; color: #ffc2ae; }
#password-match:empty { margin: 0; }
.auth-field:has(.password-match) + #password-match { color: #80e6a6; }
.reveal-password { position: absolute; inset: 0 1px 0 auto; width: 44px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 12px; }
.login-form .full, #verify-existing { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 45px; border-radius: 14px; font-weight: 680; font-size: 16px; }
.login-form .full { margin-top: 18px; }
.login-form .auth-submit { position: relative; font-size: 19px; font-weight: 700; color: white; background: linear-gradient(120deg, #069d91, #057e79); border: 1px solid #29c8bb; }
.auth-submit svg { position: absolute; right: 14px; }
.auth-divider { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 12px 8%; font-size: 14px; color: var(--muted); }
.auth-divider::before,.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#verify-existing { gap: 10px; color: var(--text); border: 1.5px solid #58d7c9; background: #0b171d; }
#verify-existing:hover { background: var(--teal-surface); }
#switch-login { display: block; width: fit-content; max-width: 100%; margin: 13px auto -6px; padding: 9px 0; text-align: center; line-height: 1.5; color: var(--muted); font-size: 14px; }
#switch-login strong { margin-left: 5px; color: var(--accent); }
#switch-login:hover strong { text-decoration: underline; }
.back-signin,.resend { display: inline-block; padding-block: 12px; }
@media (min-width: 600px) {
  .login-shell { border: 1px solid var(--quiet-line); border-radius: 26px; overflow: hidden; box-shadow: 0 24px 85px #020a0e80; }
}
@media (max-width: 599px) {
  body.signed-out { background: #07161b; }
  .signed-out main { padding: 0; }
  .login-shell { width: 100%; max-width: 488px; }
}
