/* Keep native authentication in the same dark, quiet shell as the live menu. */
html:has(.auth-page) { color-scheme: dark; background: #0b0b0e; }
.auth-page { min-height: 100dvh; margin: 0; background: #0b0b0e; color: #fbf6ea; font-family: 'Nunito', ui-rounded, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.auth-page * { box-sizing: border-box; }
.auth-page a, .auth-page button, .auth-page input { -webkit-tap-highlight-color: transparent; }
.auth-page :focus-visible { outline: 3px solid #ffe58a; outline-offset: 4px; }
.auth-site-header { max-width: 1440px; min-height: 92px; margin: auto; padding: 16px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.auth-home-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: #c8c3d2; font-size: 14px; font-weight: 700; text-decoration: none; }
.auth-home-link:hover { color: #fbf6ea; }
.auth-logo { display: block; width: 144px; text-decoration: none; }
.auth-logo img { display: block; width: 100%; height: auto; }
.auth-account-nav { justify-self: end; display: flex; gap: 8px; }
.auth-top-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #46434e; border-radius: 999px; background: #17171d; color: #fbf6ea; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 #ffffff0b; transition: background .15s, border-color .15s; }
.auth-top-link-primary { border-color: #ffe58a80; background: #ffe58a0a; color: #ffe58a; }
.auth-top-link:hover { background: #25242c; border-color: #b4b0c2; }
.auth-top-link-primary:hover { background: #ffe58a16; border-color: #ffe58a; }
.auth-main { max-width: 468px; margin: 0 auto; padding: 34px 24px 64px; outline: none; }
.auth-page .auth-wrap { width: 100%; max-width: none; margin: 0; padding: 0; }
.auth-page .page-title { margin: 0; color: #fbf6ea; font-family: 'Baloo 2', 'Nunito', sans-serif; font-size: clamp(34px, 6vw, 42px); font-weight: 800; letter-spacing: -.7px; line-height: 1.15; }
.auth-page .page-intro { margin: 12px 0 0; color: #b4b0c2; font-size: 15px; line-height: 1.6; }
.auth-page .eyebrow { color: #bdebd3; }
.auth-page .auth-form, .auth-page .form-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-page .form-stack { display: grid; gap: 20px; }
.auth-page .form-stack > * { margin: 0; }
.auth-page .form-stack label:not(.consent-row) { display: block; margin-bottom: 8px; color: #e8e3f0; font-size: 14px; font-weight: 700; }
.auth-page .form-stack input:not([type=checkbox]):not([type=hidden]):not([type=submit]) { width: 100%; min-height: 52px; border: 1px solid #42404b; border-radius: 16px; padding: 12px 16px; background: #17171d; color: #fbf6ea; font-family: inherit; font-size: 16px; box-shadow: none; }
.auth-page .form-stack input::placeholder { color: #918c9d; }
.auth-page .form-stack input:focus { border-color: #ffe58a; outline: 2px solid #ffe58a33; outline-offset: 2px; }
.auth-page .form-stack .password-visibility-field input { padding-right: 56px; }
.auth-page .password-visibility-button { color: #c8c3d2; background: transparent; border: none; }
.auth-page .password-visibility-button:hover { background: #ffffff0a; color: #ffe58a; }
.auth-page .field-hint { margin-top: 8px; color: #b4b0c2; font-size: 13px; line-height: 1.5; }
.auth-page .consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; color: #b4b0c2; font-size: 13px; line-height: 1.6; }
.auth-page input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #ffe58a; }
.auth-page .button-primary { min-height: 52px; border: 1px solid #ffe58a; border-radius: 999px; padding: 12px 24px; background: #ffe58a; color: #1b2a4a; font-family: inherit; font-size: 15px; font-weight: 800; box-shadow: 0 3px 0 #ffe58a24; cursor: pointer; }
.auth-page .button-primary:hover { background: #f7d66d; }
.auth-page .text-link { color: #d7ccf7; font-weight: 700; text-underline-offset: 4px; }
.auth-page .text-link:hover { color: #fbf6ea; }
.auth-page .text-muted, .auth-page .auth-wrap > p:last-child { color: #b4b0c2; }
.auth-page .flash-banner { margin-bottom: 24px; border: 1px solid #52434b; border-radius: 16px; background: #251a20; color: #ffd8df; box-shadow: none; }
.auth-page .flash-notice { border-color: #345345; background: #14251e; color: #bdebd3; }
@media (max-width: 640px) {
  .auth-site-header { grid-template-columns: 1fr auto; padding: 16px 20px 0; gap: 20px; }
  .auth-home-link { grid-column: 1; grid-row: 1; }
  .auth-account-nav { grid-column: 2; grid-row: 1; }
  .auth-logo { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .auth-top-link { padding: 0 14px; font-size: 13px; }
  .auth-main { padding-top: 36px; }
}

.auth-guest-return { margin-top: 24px; padding: 20px; border: 1px solid #ffe58a66; border-radius: 22px; background: #ffe58a0a; }
.auth-guest-return h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: #ffe58a; }
.auth-guest-return p { margin: 10px 0 16px; color: #c8c3d2; line-height: 1.5; font-size: 14px; }
.auth-guest-return .button-primary { display: flex; align-items: center; justify-content: center; text-align: center; }
.auth-guest-return .field-hint { margin-bottom: 0; }
