.auth-page {
  --auth-muted: #aabbd5;
  --auth-ink: #f5f8ff;
  --auth-field: rgba(6, 17, 41, .66);
  --auth-border: rgba(161, 193, 244, .24);
  min-height: 100dvh;
  color: var(--auth-ink);
  background: radial-gradient(ellipse at 15% 65%, #1e3c6c 0, transparent 46%), radial-gradient(ellipse at 96% 0%, #342236 0, transparent 42%), #060d1f;
}
.auth-header,.auth-stage { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.auth-page--login .auth-header .text-nexa-navy { color: #fff; }
.auth-page--login .auth-header .text-nexa-muted { color: #b4c3da; }
.auth-home { color: var(--auth-muted); font-size: .85rem; font-weight: 700; text-align: right; }
.auth-home:hover,.auth-reset:hover,.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-stage { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: clamp(1.25rem,4vw,3.3rem); align-items: center; min-height: calc(100dvh - 100px); padding-block: 1.5rem 3rem; }
.auth-banner { position: relative; isolation: isolate; overflow: hidden; min-height: 520px; border-radius: 2rem; border: 1px solid rgba(190,209,255,.24); background: #081126; box-shadow: 0 30px 65px #020716b3, inset 0 0 0 1px #ffffff14; }
.auth-banner-art { position: absolute; inset: 0; background: url("/auth-globe.webp") 60% center / cover; animation: auth-drift 15s ease-in-out infinite alternate; }
.auth-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#02071ee8 0%,transparent 55%); }
.auth-banner p { position: absolute; z-index: 1; bottom: clamp(1rem,4vw,2.4rem); left: clamp(1rem,4vw,2.4rem); color: #fff; font: 700 clamp(1.45rem,3.7vw,3.25rem)/.99 Outfit,system-ui,sans-serif; letter-spacing: -.035em; }
.auth-banner p span { color: #ffa33b; }
.auth-glass { position: relative; min-width: 0; border: 1px solid var(--auth-border); border-radius: 1.8rem; padding: clamp(1.25rem,4vw,2.6rem); background: linear-gradient(145deg,rgba(102,136,191,.26),rgba(28,45,80,.57) 40%,rgba(10,20,44,.84)); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 #e7efff36, 0 26px 60px #0206158c, 8px 9px 0 #02091d6b; animation: auth-arrive .6s ease-out both; }
.auth-heading { margin-bottom: 1.4rem; }
.auth-heading h1 { font: 800 clamp(1.9rem,4vw,3.1rem)/1.05 Outfit,system-ui,sans-serif; letter-spacing: -.04em; }
.auth-form,.auth-form fieldset { display: grid; gap: .9rem; min-width: 0; }
.auth-form legend { padding: 0 0 .6rem; font: 700 1.17rem Outfit,system-ui,sans-serif; }
.auth-form label { display: grid; gap: .35rem; min-width: 0; font-size: .86rem; font-weight: 700; }
.auth-form :is(input:not([type="hidden"]),select) { color: var(--auth-ink); background: var(--auth-field); border: 1px solid var(--auth-border); border-radius: .75rem; width: 100%; padding: .72rem .8rem; min-width: 0; }
.auth-form input::placeholder { color: var(--auth-muted); opacity: .85; }
.auth-form input[readonly] { color: var(--auth-muted); }
.auth-form :is(input,select):focus { outline: 2px solid #f68b33; outline-offset: 1px; }
.auth-password { position: relative; }
.auth-password input { padding-right: 4rem !important; }
.auth-password button { position: absolute; bottom: .27rem; right: .23rem; padding: .45rem .55rem; color: var(--auth-muted); font-size: .8rem; font-weight: 800; }
.auth-reset { justify-self: end; font-size: .86rem; color: #ffb469; font-weight: 700; }
.auth-primary,.auth-back { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .65rem 1rem; border-radius: .8rem; font-weight: 800; transition: transform .18s, box-shadow .18s; }
.auth-primary { background: linear-gradient(125deg,#ffc167,#ff8a29); color: #22110d; box-shadow: 0 4px 0 #c75417, 0 12px 30px #ff791837; }
.auth-primary:hover,.auth-back:hover { transform: translateY(-2px); }
.auth-primary:active,.auth-back:active { transform: translateY(2px); }
.auth-back { border: 1px solid var(--auth-border); }
.auth-switch { margin-top: 1.45rem; color: var(--auth-muted); font-size: .87rem; }
.auth-switch a { color: #ffb469; font-weight: 800; }
.auth-page--signup { --auth-ink: #0c2043; --auth-muted: #51607b; --auth-field: rgba(255,255,255,.8); --auth-border: rgba(35,62,105,.23); background: radial-gradient(ellipse at 8% 85%, #ffe5ca,transparent 45%), radial-gradient(ellipse at 88% 28%, #b6c9ec,transparent 46%), #eef2fb; }
.auth-page--signup .auth-stage { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
.auth-page--signup .auth-banner { grid-column: 2; grid-row: 1; min-height: 505px; box-shadow: 0 25px 60px #182b564e; }
.auth-page--signup .auth-banner-art { background-position: 67% center; }
.auth-page--signup .auth-glass { grid-column: 1; grid-row: 1; background: linear-gradient(145deg,#ffffffec,#ffffff91); box-shadow: inset 0 1px 0 #fff, 0 28px 55px #2738582d, 7px 8px 0 #ffffff70; }
.auth-page--signup .auth-switch a { color: #a44314; }
.signup-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin-bottom: 1.25rem; }
.signup-progress li { border-top: 3px solid #cdd7e8; padding-top: .45rem; color: var(--auth-muted); font-size: .78rem; font-weight: 800; }
.signup-progress li[aria-current="step"] { color: #a44314; border-color: #ed751e; }
.signup-progress li.is-complete { border-color: #516e9e; }
.signup-phone { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: .65rem; }
.signup-hint { font-size: .83rem; color: var(--auth-muted); }
.sponsor-help { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .7rem; font-size:.8rem; color:var(--auth-muted); }
.sponsor-help button { color:#a44314; font-weight:800; text-decoration:underline; text-underline-offset:.2em; }
.signup-actions { display: flex; gap: .75rem; margin-top: .2rem; }
.signup-actions .auth-primary { flex: 1; }
.auth-page [hidden] { display: none !important; }
@keyframes auth-arrive { from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:translateY(0)} }
@keyframes auth-drift { from {transform:scale(1.01)} to {transform:scale(1.07) translate(-.7%,.4%)} }
@media (max-width: 800px) {
  .auth-header,.auth-stage { width: min(530px,calc(100% - 2rem)); }
  .auth-stage,.auth-page--signup .auth-stage { grid-template-columns: minmax(0,1fr); gap: 1rem; padding-block: .4rem 2rem; min-height: auto; }
  .auth-banner,.auth-page--signup .auth-banner { min-height: clamp(130px,33vw,225px); grid-column: 1; grid-row: 1; border-radius: 1.35rem; }
  .auth-banner-art { background-position: 55% 45%; }
  .auth-page--signup .auth-glass { grid-column: 1; grid-row: 2; }
  .auth-glass { border-radius: 1.35rem; }
}
@media (max-width: 365px) { .signup-phone { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .auth-glass,.auth-banner-art { animation: none; } .auth-primary,.auth-back { transition: none; } }
