/* Account entry in the "Night Flight" palette shared with the homepage and the signed-in console. */
body.auth-page { background: var(--auth-paper); color: var(--auth-ink); color-scheme: dark; -webkit-font-smoothing: antialiased; }
.auth-page [hidden] { display: none !important; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page .skip-link { top: 12px; transform: translateY(-150%); background: var(--c-primary); color: var(--c-text-on-primary); }
.auth-page .skip-link:focus { top: 12px; transform: none; }
.auth-page :focus-visible { outline: 2px solid var(--c-signal); outline-offset: 4px; box-shadow: none; }
.auth-page ::selection { background: var(--c-primary); color: var(--c-text-on-primary); }
.auth-shell { width: min(1360px, calc(100% - 96px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.auth-header { height: 96px; flex: none; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font: 900 22px/1 var(--font-display); font-stretch: 125%; letter-spacing: -.02em; }
.auth-brand-symbol { position: relative; display: block; flex: none; width: 22px; height: 24px; font-size: 0; color: transparent; }
.auth-brand-symbol::before { content: ""; position: absolute; left: 0; top: 0; width: 7px; height: 100%; border-radius: 1px; background: var(--auth-ink); }
.auth-brand-symbol > span { position: absolute; left: 7px; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--c-signal); }
.auth-brand-period { display: none; }
.auth-home-link { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; color: var(--auth-muted); }
.auth-home-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.auth-home-link:hover { color: var(--auth-ink); }
.auth-home-link:hover svg { transform: translateX(-3px); }
.auth-layout { flex: 1; display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; padding-block: 8px 24px; outline: none; }
.auth-layout:focus { outline: none; box-shadow: none; }

/* Story panel: the same café photograph as the homepage hero, with HUD overlays. */
.auth-story { position: relative; isolation: isolate; min-width: 0; width: 100%; min-height: min(720px, calc(100svh - 160px)); display: flex; flex-direction: column; justify-content: space-between; padding: 40px; border-radius: 24px; overflow: hidden; background: var(--auth-sage); }
.auth-story-copy { position: relative; z-index: 2; }
.auth-story-kicker { display: flex; align-items: center; gap: 10px; color: var(--c-signal); font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.auth-story-kicker > span { width: 8px; height: 8px; border-radius: 50%; background: var(--c-signal); box-shadow: 0 0 0 5px rgba(254,60,114,.16); }
.auth-story h2 { max-width: 13em; margin: 22px 0 16px; font: 800 clamp(38px, 3.8vw, 64px)/1.06 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.auth-story h2 em { color: var(--c-signal); font-style: normal; text-shadow: 0 0 4px rgba(12,12,13,.85), 0 0 18px rgba(12,12,13,.8); }
.auth-story-copy > p { max-width: 30em; margin: 0; color: var(--c-text-muted); font-size: 15px; line-height: 1.75; }
.auth-story-visual { position: absolute; inset: 0; z-index: -1; height: auto; margin: 0; }
.auth-orbit { display: none; }
.auth-photo { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; overflow: hidden; transform: none; box-shadow: none; }
.auth-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
/* Portraits stay in full, natural colour (docs/26): a light scrim under the header and one under the caption, never across the faces. */
.auth-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,13,.45) 0%, rgba(12,12,13,0) 16%, rgba(12,12,13,0) 58%, rgba(12,12,13,.85) 100%); }
.auth-photo figcaption { position: absolute; z-index: 1; left: 40px; bottom: 92px; color: var(--auth-ink); }
/* Signal red (#fe3c72) needs a near-ink ground for 4.5:1. The caption can land on the bright café table, so it sits on an ink HUD tag;
   the kicker sits in the dark top scrim and only needs a tight ink halo. */
.auth-photo figcaption > span { display: block; width: fit-content; margin-bottom: 10px; padding: 3px 9px; border: 1px solid var(--c-border); border-radius: 999px; background: rgba(12,12,13,.9); font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-signal); }
.auth-story-kicker { text-shadow: 0 0 2px var(--c-bg-base), 0 0 6px var(--c-bg-base), 0 0 14px rgba(12,12,13,.9); }
.auth-photo figcaption > strong { font: 700 24px/1.3 var(--font-display); letter-spacing: -.01em; }
.auth-assistant-note { position: absolute; z-index: 2; right: 32px; top: 52%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border: 1px solid var(--c-border-strong); border-radius: 14px; background: rgba(17,17,19,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.auth-assistant-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary); color: var(--c-text-on-primary); }
.auth-assistant-icon svg { width: 20px; height: 20px; }
.auth-assistant-note strong { display: block; font-size: 14px; font-weight: 650; }
.auth-assistant-note div > span { display: block; margin-top: 2px; color: var(--auth-muted); font-size: 12px; }
.auth-note-dot { width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--c-signal); }
.auth-story-star { display: none; }
.auth-story-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; color: var(--auth-muted); }
.auth-story-bottom > span:first-child { font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.auth-story-bottom > span:last-child { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-border-strong); border-radius: 50%; font-size: 18px; line-height: 1; color: var(--auth-ink); }

/* Form */
.auth-form-panel { min-width: 0; padding: 28px 12px; display: flex; justify-content: center; }
.auth-form-content { width: 100%; max-width: 420px; }
.auth-eyebrow { display: block; margin-bottom: 18px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-signal); }
.auth-form-content h1 { margin: 0 0 14px; font: 800 44px/1.08 var(--font-display); letter-spacing: -.04em; }
.auth-intro { margin: 0; font-size: 15px; line-height: 1.7; color: var(--auth-muted); }
.auth-beta-offer { display: grid; gap: 8px; margin-top: 22px; padding: 18px 20px; border: 1px solid var(--c-border); border-left: 2px solid var(--c-signal); border-radius: 4px 14px 14px 4px; background: linear-gradient(90deg, rgba(254,60,114,.08), transparent 70%); }
.auth-beta-label { color: var(--c-signal); font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.auth-beta-offer > strong { color: var(--auth-ink); font-size: 17px; line-height: 1.5; font-weight: 700; }
.auth-beta-offer > strong > span { color: var(--c-signal); padding-inline: 3px; }
.auth-beta-offer > p { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.7; }
.auth-switch { display: flex; padding: 4px; margin: 30px 0 26px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-bg-surface); }
.auth-switch > a { width: 50%; min-height: 42px; display: grid; place-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--auth-muted); transition: background .25s, color .25s; }
.auth-switch > a:hover { color: var(--auth-ink); }
.auth-switch > .is-active { background: var(--auth-ink); color: var(--auth-paper); }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-page .field { gap: 9px; margin: 0; }
.auth-page .field > label { font-size: 13px; font-weight: 600; color: var(--c-text-muted); }
.auth-page .input { width: 100%; min-height: 52px; padding: 13px 18px; border: 1px solid var(--c-border-strong); border-radius: 12px; background: var(--c-bg-surface); color: var(--auth-ink); font-size: 15px; line-height: 1.5; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-page .input::placeholder { color: #75736f; opacity: 1; }
.auth-page .input:hover { border-color: var(--c-border-control); }
.auth-page .input:focus { border-color: var(--c-signal); outline: none; background: var(--c-bg-base); box-shadow: 0 0 0 4px rgba(254,60,114,.14); }
.auth-page .input[aria-invalid=true] { border-color: var(--auth-error); background: rgba(255,122,107,.06); }
/* An invalid field keeps the coral error colour while focused, so it never reads as the pink-red focus state. */
.auth-page .input[aria-invalid=true]:focus { border-color: var(--auth-error); box-shadow: 0 0 0 4px rgba(255,122,107,.16); }
.auth-page .input:disabled { opacity: .65; cursor: wait; }
.auth-page .field-hint { font-size: 12px; line-height: 1.7; color: var(--auth-muted); }
.auth-page .field-error { font-size: 12px; color: var(--auth-error); }
.auth-password-wrap { position: relative; }
.auth-password-wrap > input { padding-right: 56px !important; }
.auth-eye { display: grid; place-items: center; position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; padding: 0; border: none; border-radius: 10px; color: var(--auth-muted); background: transparent; }
.auth-eye svg { width: 19px; height: 19px; }
.auth-eye:hover { color: var(--auth-ink); background: var(--c-bg-hover); }
.auth-eye:disabled { cursor: wait; }
.auth-page .auth-submit { height: 56px; gap: 14px; margin-top: 6px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--c-text-on-primary); background: var(--c-primary); box-shadow: 0 20px 40px -20px rgba(218,31,90,.55); transition: background .25s, transform .25s; }
.auth-submit::before { display: none; }
.auth-submit svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.auth-page .auth-submit:hover { background: var(--c-primary-hover); }
.auth-submit:hover svg { transform: translateX(4px); }
.auth-page .auth-submit:active { transform: scale(.98); }
.auth-submit .spinner { border-color: rgba(255,255,255,.35); border-top-color: var(--c-text-on-primary); }
.auth-alternate { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--auth-muted); font-size: 13px; }
.auth-alternate a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-signal); font-weight: 650; }
.auth-alternate a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-security { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--auth-line); margin-top: 26px; padding-top: 24px; color: var(--c-signal); }
.auth-security > svg { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.auth-security p { margin: 0; }
.auth-security strong { display: block; font-size: 13px; font-weight: 650; color: var(--auth-ink); margin-bottom: 5px; }
.auth-security p > span { display: block; color: var(--auth-muted); font-size: 12px; line-height: 1.8; }
.auth-alert { font-size: 13px; line-height: 1.7; color: var(--auth-error); background: rgba(255,122,107,.08); padding: 12px 14px; border: 1px solid rgba(255,122,107,.3); border-radius: 12px; }
.auth-alert a { text-decoration: underline; text-underline-offset: 3px; }
.auth-footer { flex: none; display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 20px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font: 500 11px/1.6 var(--font-mono); letter-spacing: .02em; }
.auth-register .auth-form-content h1 { font-size: 38px; }
.auth-register .auth-switch { margin-block: 22px; }
.auth-register .auth-form { gap: 16px; }
.auth-register .auth-security { margin-top: 16px; padding-top: 18px; }
.auth-register .auth-alternate { margin-top: 12px; }
.auth-register .auth-story { min-height: min(800px, calc(100svh - 160px)); }

@media (min-width: 1600px) {
  .auth-shell { max-width: 1440px; }
  .auth-layout { gap: 96px; }
  .auth-form-content { max-width: 440px; }
}
@media (max-width: 1100px) {
  .auth-shell { width: calc(100% - 64px); }
  .auth-layout { gap: 36px; grid-template-columns: 1fr 1fr; }
  .auth-story { padding: 32px 28px; }
  .auth-assistant-note { right: 20px; }
  .auth-photo figcaption { left: 28px; }
  .auth-form-panel { padding-inline: 8px; }
}
@media (max-width: 800px) {
  .auth-shell { width: calc(100% - 40px); max-width: 580px; }
  .auth-header { height: 84px; }
  .auth-layout { display: flex; justify-content: center; padding: 24px 0 48px; }
  .auth-story { display: none; }
  .auth-form-panel { width: 100%; padding: 0; }
  .auth-form-content { max-width: 440px; }
  .auth-page .input { font-size: 16px; }
  .auth-form-content h1 { font-size: 38px; }
  .auth-footer { min-height: 66px; }
  .auth-register .auth-layout { padding-top: 16px; }
}
@media (max-width: 400px) {
  .auth-shell { width: calc(100% - 32px); }
  .auth-brand { font-size: 20px; gap: 9px; }
  .auth-home-link { font-size: 12px; }
  .auth-register .auth-form-content h1 { font-size: 30px; }
  .auth-footer > span:last-child { max-width: 165px; text-align: right; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; }
}
.auth-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--c-text-muted); }
.auth-consent input { flex: 0 0 auto; margin-top: 4px; width: 17px; height: 17px; accent-color: var(--c-primary); }
.auth-consent a, .auth-recovery-links a { text-decoration: underline; text-underline-offset: 3px; }
.auth-recovery-links { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0; font-size: 13px; color: var(--c-text-muted); }
.auth-recovery-links a:hover { color: var(--c-signal); }
.recovery-layout { max-width: 520px; margin: 40px auto 80px; }
.recovery-layout .auth-form-content { max-width: none; }
