/* Sign-in and activation follow the public homepage: a blue-black page, white
   type and the logo pink as the only accent; white light marks the selected tab
   and focus. The left side repeats the homepage hero (pink aurora, a faint grid
   and a short explanation); every action lives in the glass card on the right.
   Tokens come from style.css. */
:root { --green: var(--accent); }
/* This page draws its own fading grid, so the console canvas keeps only its glow. */
body.auth-page::before { background: radial-gradient(ellipse 62% 46% at 86% -12%, var(--ambient-a), transparent 70%), radial-gradient(ellipse 56% 44% at 4% -10%, var(--ambient-b), transparent 70%); -webkit-mask-image: none; mask-image: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--brand-soft); text-decoration-thickness: 2px; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }

.auth-layout { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: center; gap: clamp(40px, 6vw, 96px);
  width: min(100% - 2 * clamp(16px, 4vw, 48px), 1200px); min-height: 100dvh; margin-inline: auto; padding-block: 48px; }
/* The homepage hero's grid, fading out from the top left. */
.auth-layout::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 28% 22%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 70% 55% at 28% 22%, #000 15%, transparent 72%); }

/* Brand side: the homepage hero in miniature. */
.auth-showcase { position: relative; display: flex; color: var(--text); }
.auth-aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; filter: blur(70px); }
.auth-aurora i { position: absolute; border-radius: 50%; animation: auth-drift 20s ease-in-out infinite alternate; }
.auth-aurora i:nth-child(1) { width: 56vw; height: 38vw; left: -8%; top: -18%; background: radial-gradient(closest-side, rgb(239 87 148 / .42), transparent); }
.auth-aurora i:nth-child(2) { width: 50vw; height: 36vw; right: -6%; top: -12%; background: radial-gradient(closest-side, rgb(194 48 111 / .4), transparent); animation-delay: -7s; }
.auth-aurora i:nth-child(3) { width: 40vw; height: 30vw; left: 24%; top: 34%; background: radial-gradient(closest-side, rgb(239 87 148 / .18), transparent); animation-delay: -13s; }
.auth-showcase-inner { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: 580px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgb(140 170 255 / .06);
  color: var(--muted); font-size: 13px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: auth-rise 1s var(--ease-out) backwards; }
.auth-kicker img { width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 4px 14px rgb(194 48 111 / .5); }
.auth-headline { margin-top: 28px; color: #fff; font-size: clamp(40px, 4.6vw, 66px); font-weight: 760; line-height: 1.1; letter-spacing: -.04em; animation: auth-rise 1.1s var(--ease-out) .08s backwards; }
.auth-headline em { font-style: normal; background: linear-gradient(100deg, #ff9cc9, #ff9cc9 30%, #e0679c 55%, #ef5794 75%, #ff9cc9); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: auth-sheen 9s linear infinite; }
.auth-points { display: grid; gap: 18px; margin: 38px 0 0; padding: 0; list-style: none; }
.auth-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 12px; animation: auth-rise 1s var(--ease-out) backwards; }
.auth-points li:nth-child(1) { animation-delay: .18s; } .auth-points li:nth-child(2) { animation-delay: .26s; } .auth-points li:nth-child(3) { animation-delay: .34s; }
/* CSP blocks data: images, so the tick is a glyph. */
.auth-points li::before { content: '✓'; display: grid; place-items: center; grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; border: 1px solid rgb(255 255 255 / .1); border-radius: 7px;
  background: rgb(239 87 148 / .16); color: var(--pink-soft); font-size: 12px; font-weight: 800; line-height: 1; }
.auth-points strong { color: var(--text); font-size: 15px; font-weight: 620; }
.auth-points span { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.auth-chat { display: flex; flex-direction: column; gap: 10px; width: min(100%, 400px); margin-top: 40px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgb(2 4 10 / .4); }
.auth-chat p { align-self: flex-start; display: flex; gap: 8px; align-items: baseline; max-width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgb(140 170 255 / .05); color: var(--muted); font-size: 13px; line-height: 1.55;
  animation: auth-bubble 9s var(--ease-out) infinite; }
.auth-chat p b { color: var(--text); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.auth-chat p.is-bot { align-self: flex-end; border-color: rgb(239 87 148 / .32); background: linear-gradient(135deg, rgb(239 87 148 / .14), rgb(255 156 201 / .07)); color: #fff2f7; box-shadow: 0 0 26px -10px rgb(239 87 148 / .6); }
.auth-chat p.is-bot b { color: var(--pink-soft); }
.auth-chat p.is-gift { border-color: rgb(255 196 220 / .2); background: rgb(255 196 220 / .07); color: var(--pink-pale); }
.auth-chat p:nth-child(2) { animation-delay: .7s; } .auth-chat p:nth-child(3) { animation-delay: 1.4s; } .auth-chat p:nth-child(4) { animation-delay: 2.1s; }
.auth-showcase-foot { margin-top: 30px; color: var(--tertiary); font-size: 13px; letter-spacing: .04em; animation: auth-rise 1s var(--ease-out) .5s backwards; }
.auth-showcase-foot::before { content: ''; display: inline-block; width: 26px; height: 1px; margin-right: 10px; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--pink)); }

/* Form side: one glass card, like the homepage's live-room window. */
.auth-main { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 32px 32px 30px; border: 1px solid var(--border-strong); border-radius: 18px;
  background: linear-gradient(180deg, rgb(130 160 255 / .06), rgb(130 160 255 / .02)), rgb(8 11 19 / .78); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 60px 140px -50px rgb(0 0 0 / .9), 0 0 120px -50px rgb(239 87 148 / .3), inset 0 1px 0 rgb(255 255 255 / .08); animation: auth-card-in 1.2s var(--ease-out) .1s backwards; }
.auth-main::before { content: ''; position: absolute; inset: 0 10% auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .4), transparent); pointer-events: none; }
.auth-brand { display: flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 44px; margin-bottom: 22px; color: var(--text); font-size: 19px; font-weight: 680; letter-spacing: -.02em; }
.auth-brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 6px 22px rgb(194 48 111 / .45); transition: transform .5s var(--ease-spring); }
.auth-brand:hover { text-decoration: none; }
.auth-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.auth-route { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; margin: 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: rgb(140 170 255 / .04); }
.auth-route a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 6px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .2s, background-color .3s; }
.auth-route a[aria-current="page"] { color: var(--text); background: var(--select-fill); box-shadow: inset 0 0 0 1px var(--select-edge); font-weight: 650; }
.auth-route a:hover { color: var(--text); text-decoration: none; }
.auth-card { width: 100%; margin: 0; padding: 28px 0 0; border: 0; border-radius: 0; background: transparent; }
.auth-card > * { animation: auth-rise .6s var(--ease-out) backwards; }
.auth-card > :nth-child(2) { animation-delay: .04s; } .auth-card > :nth-child(3) { animation-delay: .08s; } .auth-card > :nth-child(n+4) { animation-delay: .12s; }
.auth-card h1 { margin: 0 0 8px; font-size: 27px; font-weight: 740; line-height: 1.3; letter-spacing: -.03em; background: var(--heading-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-card h1:focus { outline: none; }
.auth-description { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-description:empty { display: none; }
.console-form { display: grid; gap: 18px; }
.console-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.console-field input { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgb(2 4 10 / .5); color: var(--text); padding: 12px 14px; font-size: 14px; box-shadow: none; transition: border-color .2s, box-shadow .25s; }
.console-field input::placeholder { color: var(--quiet); font-size: 13px; font-weight: 400; }
.console-field input:hover:not(:disabled):not(:focus) { border-color: var(--border-hover); }
.console-field input:focus { border-color: var(--focus-edge); box-shadow: 0 0 0 4px var(--focus-ring); outline: none; }
.console-field input[readonly] { background: rgb(140 170 255 / .04); color: var(--muted); box-shadow: none; }
.button { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--border-strong); background: rgb(140 170 255 / .07); border-radius: 11px; padding: 11px 20px; min-height: 46px; font-size: 14px; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: background-color .25s, border-color .25s, box-shadow .35s var(--ease-out), translate .45s var(--ease-out), scale .14s var(--ease-out); }
.button:hover:not(:disabled) { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .24); text-decoration: none; }
.button.primary { color: var(--on-accent); background: var(--primary-fill); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 20px -12px rgb(239 87 148 / .55); }
.button.primary:hover:not(:disabled) { background: var(--primary-fill); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), var(--shadow-brand); translate: 0 -1px; }
.button.primary::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 32%, rgb(255 255 255 / .6) 50%, transparent 68%); transform: translateX(-130%); transition: transform .9s var(--ease-out); }
.button.primary:hover:not(:disabled)::after { transform: translateX(130%); }
.button.primary:active:not(:disabled) { translate: 0 0; scale: .97; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 4px rgb(239 87 148 / .28), 0 10px 32px -10px rgb(239 87 148 / .8); }
.console-form > .primary { width: 100%; margin-top: 4px; }
.text-button { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 550; min-height: 40px; padding: 6px 0; justify-self: start; }
.text-button:hover { text-decoration: underline; text-decoration-color: var(--brand-soft); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.console-error { position: relative; padding: 12px 14px 12px 40px; background: var(--danger-fill); border: 1px solid var(--danger-edge); border-radius: 12px; color: var(--danger); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; animation: auth-shake .38s ease-out; }
.console-error::before { content: '!'; position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 800; line-height: 1; }
.console-error:empty { display: none; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.85; }
.auth-invite-note { margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: rgb(140 170 255 / .035); }
.auth-invite-note strong { color: var(--pink-soft); font-weight: 650; }
.setup-callout { border: 1px solid rgb(239 87 148 / .3); background: linear-gradient(135deg, rgb(239 87 148 / .12), rgb(255 255 255 / .02)); padding: 18px; border-radius: 18px; margin-top: 24px; }
.setup-callout strong { font-size: 14px; font-weight: 650; }
.setup-callout p { font-size: 12px; color: var(--muted); line-height: 1.85; margin: 6px 0 12px; }
.setup-callout a { font-size: 13px; font-weight: 600; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--tertiary); font-size: 13px; padding: 18px 0; }
.loading::before { content: ''; width: 64px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-raise) 20%, var(--brand-soft) 50%, var(--surface-raise) 80%) 0 0 / 300% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
.setup-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0 0 26px; list-style: none; gap: 8px; counter-reset: step; }
.setup-progress:has(li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-progress li { position: relative; padding-top: 12px; color: var(--tertiary); font-size: 11px; line-height: 1.7; }
.setup-progress li::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: rgb(140 170 255 / .12); }
.setup-progress li[aria-current="step"] { color: var(--text); font-weight: 650; }
.setup-progress li[aria-current="step"]::before { background: var(--pink); }
.setup-progress li.done { color: var(--success); }
.setup-progress li.done::before { background: var(--success); opacity: .6; }
.identity-note { font-size: 13px; color: var(--success); border: 1px solid var(--success-edge); background: var(--success-fill); border-radius: 12px; padding: 12px 14px; margin: 0 0 22px; overflow-wrap: anywhere; }
.setup-help { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.setup-help summary { color: var(--muted); font-size: 13px; padding: 4px 0; transition: color .2s; }
.setup-help summary:hover { color: var(--text); }
.setup-help p { margin-top: 10px; }
.command-block { font: 12px/1.9 ui-monospace, "SF Mono", SFMono-Regular, monospace; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgb(6 9 16 / .94); margin: 12px 0; color: #dcdcdf; }
.password-guide { display: grid; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.75; }
.password-guide span { display: flex; align-items: center; gap: 8px; transition: color .25s; }
.password-guide span::before { content: ''; display: grid; place-items: center; flex: 0 0 auto; width: 15px; height: 15px; border: 1.5px solid var(--border-strong); border-radius: 50%; font-size: 9px; font-weight: 800; line-height: 1; transition: background .25s, border-color .25s; }
.password-guide .met { color: var(--success); }
.password-guide .met::before { content: '✓'; border-color: var(--success); background: var(--success); color: #06140d; animation: auth-pop .35s var(--ease-spring); }
.password-toggle, .recovery-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; line-height: 1.75; }
.password-toggle input, .recovery-check input { accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }
.password-toggle { margin-top: -6px; }
.console-qr { display: block; width: 208px; height: 208px; max-width: 100%; border: 1px solid var(--border); border-radius: 16px; margin: 0 auto 22px; background: #fff; padding: 10px; object-fit: contain; box-shadow: var(--shadow-md), 0 0 40px -12px rgb(239 87 148 / .45); }
.manual-key { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.console-secret { display: block; width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgb(6 9 16 / .94); color: #dcdcdf; font: 12px/1.9 ui-monospace, "SF Mono", SFMono-Regular, monospace; overflow-wrap: anywhere; resize: vertical; margin: 13px 0; }
.backup-actions { display: flex; gap: 10px; margin: 15px 0 23px; }
.backup-actions .button { flex: 1; padding-left: 10px; padding-right: 10px; }
.recovery-check { margin: 22px 0; }
.recovery-continue { width: 100%; }
.setup-back { display: inline-block; font-size: 13px; margin-top: 22px; }
/* Other ways in, under the sign-up and activation forms. */
.auth-alt-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; margin-top: 14px; }
.auth-alt-links .setup-back { margin-top: 0; }
#auth-toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translate(-50%, 10px); display: flex; align-items: center; gap: 10px; border: 1px solid rgb(255 255 255 / .12); background: rgb(9 13 22 / .9); color: var(--text); font-size: 13px; padding: 12px 20px 12px 16px; border-radius: 999px; max-width: calc(100vw - 32px);
  box-shadow: 0 24px 60px -16px rgb(0 0 0 / .75), inset 0 1px 0 rgb(255 255 255 / .09); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease-spring); }
#auth-toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
#auth-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.is-loading::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes auth-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes auth-card-in { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes auth-drift { from { transform: translate3d(-4%, -2%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.12); } }
@keyframes auth-sheen { to { background-position: -240% 0; } }
@keyframes auth-bubble { 0% { opacity: 0; transform: translateY(12px) scale(.98); } 8%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes auth-shake { 0%, 100% { translate: 0 0; } 25% { translate: -4px 0; } 50% { translate: 3px 0; } 75% { translate: -1px 0; } }
@keyframes auth-pop { 0% { scale: .6; } 70% { scale: 1.15; } 100% { scale: 1; } }

/* Motion language (信号语法·简约), the console's quiet grammar: a press sinks,
   keyboard focus settles onto its target, and the selected tab slides. 登录 and
   开通 share one document: switching between them keeps the page, auth.mjs marks
   the tab the visitor came from and the selection slides over from there. No
   glow and no overshoot; reduced motion turns it off. */
.button:active:not(:disabled) { scale: .97; }
:is(.button, .text-button, .auth-route a, .auth-brand, summary):not(.auth-card > *):focus-visible { animation: auth-aim .2s var(--ease-out); }
@keyframes auth-aim { from { outline-offset: 7px; outline-color: rgb(226 232 245 / 0); } }
.auth-route a { position: relative; isolation: isolate; }
.auth-route a[aria-current="page"] { background: transparent; box-shadow: none; }
.auth-route a[aria-current="page"]::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--select-fill); box-shadow: inset 0 0 0 1px var(--select-edge); }
.auth-route[data-from] a[aria-current="page"]::before { animation: route-lock .32s var(--e-out) .05s backwards; }
.auth-route[data-from="login"] a[aria-current="page"]::before { --route-from: calc(-100% - 2px); }
.auth-route[data-from="activate"] a[aria-current="page"]::before { --route-from: calc(100% + 2px); }
@keyframes route-lock { from { transform: translateX(var(--route-from, 0)); } }
/* Switching tabs is not a first visit: an entrance still running stops, the card and the brand side stay put, only the selection and the form move. */
.auth-layout:has(.auth-route[data-from]) :is(.auth-main, .auth-kicker, .auth-headline, .auth-points li, .auth-showcase-foot) { animation: none; }
/* 扫描 inside the card: the card stays and only its contents change, so they are
   readable at once and swap in from the side they belong to — the chosen tab's
   side after a tab switch, the side the progress bar moves toward for a later
   step (auth.mjs sets data-swap). Only a first visit keeps the slow rise with
   the card; an error keeps its own shake. */
.auth-card[data-swap] > :not(.console-error) { animation: auth-swap var(--t-state) var(--e-out) backwards; }
.auth-card[data-swap="next"] { --swap-from: 14px; }
.auth-card[data-swap="back"] { --swap-from: -14px; }
@keyframes auth-swap { from { opacity: .4; transform: translateX(var(--swap-from, 0px)); } }

@media (max-width: 1000px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 480px); padding-block: 40px; }
  /* Phones keep the homepage glow without the moving aurora. */
  .auth-layout::after { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: radial-gradient(ellipse 80% 40% at 15% -5%, rgb(239 87 148 / .3), transparent 70%), radial-gradient(ellipse 70% 40% at 95% 0%, rgb(194 48 111 / .24), transparent 70%); }
  .auth-showcase { display: none; }
}
@media (max-width: 760px) {
  .auth-layout { padding-block: 24px 36px; }
  .auth-main { padding: 26px 20px 24px; border-radius: 16px; }
  .auth-brand { margin-bottom: 18px; font-size: 18px; }
  .auth-card { padding: 24px 0 0; }
  .auth-card h1 { font-size: 24px; }
  .console-field input { font-size: 16px; }
  .auth-description { font-size: 13px; }
  .setup-progress { gap: 6px; }
  .setup-progress li { font-size: 10px; }
}
@media (max-width: 380px) {
  .auth-layout { width: calc(100% - 24px); }
  .auth-main { padding: 22px 16px 22px; }
  .auth-card h1 { font-size: 22px; }
  .setup-progress li { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .auth-main, .auth-kicker, #auth-toast { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); } }
@media (forced-colors: active) {
  .auth-showcase, .auth-layout::before, .auth-layout::after { display: none; }
  .auth-main { border: 1px solid CanvasText; background: Canvas; box-shadow: none; }
  .auth-card h1 { background: none; color: CanvasText; }
  .auth-route, .console-field input { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  .auth-route a[aria-current="page"] { color: HighlightText; background: Highlight; box-shadow: none; }
  .console-field input:focus { outline: 2px solid Highlight; }
}
