:root {
    --auth-ink: #111820;
    --auth-ink-soft: #394655;
    --auth-muted: #687688;
    --auth-canvas: #f3f5f7;
    --auth-surface: #ffffff;
    --auth-surface-soft: #eef1f4;
    --auth-line: rgba(17, 24, 32, .15);
    --auth-line-strong: rgba(17, 24, 32, .28);
    --auth-accent: #c8202c;
    --auth-accent-deep: #961720;
    --auth-accent-soft: #fcebed;
    --auth-positive: #14734a;
    --auth-display: Georgia, "Times New Roman", serif;
    --auth-sans: Inter, Aptos, system-ui, -apple-system, "Segoe UI", sans-serif;
    --auth-shadow: 0 24px 70px rgba(17, 24, 32, .12);
}

* { box-sizing: border-box; }
html { background: var(--auth-canvas); scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: var(--auth-accent); }

.auth-body { background: var(--auth-canvas); color: var(--auth-ink); font-family: var(--auth-sans); min-height: 100vh; min-height: 100svh; }
.auth-body[data-theme="dark"] {
    --auth-ink: #edf2f7;
    --auth-ink-soft: #c7d0db;
    --auth-muted: #9ba8b7;
    --auth-canvas: #090d12;
    --auth-surface: #111820;
    --auth-surface-soft: #18222d;
    --auth-line: rgba(255, 255, 255, .13);
    --auth-line-strong: rgba(255, 255, 255, .28);
    --auth-accent: #ff6b75;
    --auth-accent-deep: #ff8990;
    --auth-accent-soft: #32171c;
    --auth-positive: #70d3a5;
    --auth-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.auth-skip-link { background: var(--auth-surface); border: 1px solid var(--auth-line); left: 1rem; padding: .7rem 1rem; position: fixed; top: -5rem; z-index: 20; }
.auth-skip-link:focus { top: 1rem; }
.auth-shell { display: grid; grid-template-columns: minmax(360px, 46%) minmax(0, 54%); min-height: 100vh; min-height: 100svh; }

.auth-story { background: #111820; color: #fff; isolation: isolate; overflow: hidden; position: relative; }
.auth-story::before { background: radial-gradient(circle at 20% 18%, rgba(200, 32, 44, .34), transparent 34%), linear-gradient(130deg, transparent 52%, rgba(255, 255, 255, .035) 52%); content: ""; inset: 0; position: absolute; z-index: -2; }
.auth-story::after { border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; content: ""; height: min(56vw, 720px); position: absolute; right: max(-28vw, -390px); top: 10%; width: min(56vw, 720px); z-index: -1; }
.auth-story__inner { display: flex; flex-direction: column; gap: clamp(2rem, 5vh, 4.5rem); justify-content: space-between; min-height: 100%; padding: clamp(2rem, 5vw, 5.5rem); }
.auth-brand { align-items: center; display: inline-flex; width: fit-content; }
.auth-brand img { display: block; height: auto; max-width: 154px; object-fit: contain; }
.auth-brand--inverse { background: #fff; border-radius: .3rem; padding: .45rem .65rem; }
.auth-brand--mobile { display: none; }
.auth-story__copy { max-width: 40rem; }
.auth-eyebrow { color: #ff8990; display: block; font-size: .7rem; font-weight: 850; letter-spacing: .12em; margin-bottom: 1rem; text-transform: uppercase; }
.auth-story__title { color: #fff !important; font-family: var(--auth-display); font-size: clamp(2.8rem, 5.2vw, 5.7rem) !important; letter-spacing: -.055em; line-height: .97 !important; margin: 0 !important; max-width: 11ch !important; text-wrap: balance; }
.auth-story__copy p:not(.auth-story__title) { color: rgba(255, 255, 255, .7); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.7; margin: 1.5rem 0 0; max-width: 38rem; }
.auth-benefits { border-top: 1px solid rgba(255, 255, 255, .14); display: grid; list-style: none; margin: 0; max-width: 40rem; padding: 0; }
.auth-benefits li { align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 1rem; grid-template-columns: 2rem minmax(0, 1fr); padding: .9rem 0; }
.auth-benefits span { color: #ff8990; font-size: .68rem; font-weight: 850; }
.auth-benefits strong { font-size: .82rem; font-weight: 680; }
.auth-story__note { color: rgba(255, 255, 255, .52); font-size: .72rem; letter-spacing: .035em; margin: 0; }

.auth-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100vh; min-height: 100svh; }
.auth-main__header { align-items: center; display: flex; gap: 1rem; justify-content: flex-end; padding: 1.5rem clamp(1.25rem, 4vw, 4rem); }
.auth-back-link { color: var(--auth-muted); font-size: .78rem; font-weight: 750; text-decoration: none; }
.auth-back-link:hover, .auth-back-link:focus-visible { color: var(--auth-accent); }
.auth-theme-toggle { align-items: center; background: var(--auth-surface); border: 1px solid var(--auth-line); border-radius: 50%; color: var(--auth-ink); cursor: pointer; display: inline-flex; height: 40px; justify-content: center; width: 40px; }
.auth-theme-toggle:hover, .auth-theme-toggle:focus-visible { border-color: var(--auth-accent); color: var(--auth-accent); }
.auth-main__body { align-items: center; display: flex; justify-content: center; padding: clamp(1rem, 4vw, 4rem); }
.auth-card { background: var(--auth-surface); border: 1px solid var(--auth-line); border-radius: 1rem; box-shadow: var(--auth-shadow); padding: clamp(1.5rem, 4vw, 3.25rem); width: min(100%, 520px); }
.auth-card__header { margin-bottom: 1.75rem; }
.auth-card__header h1 { color: var(--auth-ink); font-family: var(--auth-display); font-size: clamp(2.15rem, 4vw, 3.15rem); letter-spacing: -.045em; line-height: 1.05; margin: .4rem 0 .75rem; text-wrap: balance; }
.auth-card__header p { color: var(--auth-muted); font-size: .86rem; line-height: 1.6; margin: 0; }
.auth-form { display: grid; gap: 1rem; }
.auth-field { display: grid; gap: .45rem; min-width: 0; }
.auth-field label { color: var(--auth-ink); font-size: .78rem; font-weight: 800; }
.auth-field label span { color: var(--auth-muted); font-size: .7rem; font-weight: 500; }
.auth-field :is(input, select) { background: var(--auth-canvas); border: 1px solid var(--auth-line-strong); border-radius: .42rem; color: var(--auth-ink); min-height: 50px; padding: .72rem .85rem; width: 100%; }
.auth-field :is(input, select)::placeholder { color: var(--auth-muted); opacity: .78; }
.auth-field :is(input, select):focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 16%, transparent); outline: none; }
.auth-field :is(input, select)[aria-invalid="true"], .auth-field .is-invalid { border-color: var(--auth-accent); }
.auth-field__error { color: var(--auth-accent); font-size: .72rem; font-weight: 700; }
.auth-password-control { position: relative; }
.auth-password-control input { padding-right: 4.75rem; }
.auth-password-toggle { align-items: center; background: transparent; border: 0; border-left: 1px solid var(--auth-line); border-radius: 0 .36rem .36rem 0; color: var(--auth-accent); cursor: pointer; display: inline-flex; font-size: .72rem; font-weight: 850; height: 44px; justify-content: center; min-width: 4rem; padding: 0 .7rem; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }
.auth-password-toggle:hover { background: var(--auth-surface-soft); }
.auth-password-toggle:focus-visible { background: var(--auth-surface-soft); box-shadow: 0 0 0 2px var(--auth-accent); outline: none; }
.auth-form__row { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.auth-check { align-items: start; color: var(--auth-ink-soft); cursor: pointer; display: inline-flex; font-size: .76rem; gap: .55rem; line-height: 1.45; }
.auth-check input { accent-color: var(--auth-accent); height: 1rem; margin: .1rem 0 0; width: 1rem; }
.auth-form__link { font-size: .76rem; font-weight: 800; text-decoration: none; }
.auth-button { align-items: center; background: var(--auth-accent); border: 1px solid var(--auth-accent); border-radius: .42rem; color: #fff; cursor: pointer; display: inline-flex; font-size: .82rem; font-weight: 850; justify-content: center; min-height: 48px; padding: .7rem 1rem; text-decoration: none; width: 100%; }
.auth-button:hover, .auth-button:focus-visible { background: var(--auth-accent-deep); border-color: var(--auth-accent-deep); color: #fff; }
.auth-button--secondary { background: transparent; border-color: var(--auth-line-strong); color: var(--auth-ink); }
.auth-button--secondary:hover, .auth-button--secondary:focus-visible { background: var(--auth-surface-soft); border-color: var(--auth-ink); color: var(--auth-ink); }
.auth-divider { align-items: center; color: var(--auth-muted); display: grid; font-size: .68rem; gap: .75rem; grid-template-columns: 1fr auto 1fr; margin: 1.25rem 0; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { background: var(--auth-line); content: ""; height: 1px; }
.auth-socials { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.auth-social-link { align-items: center; background: var(--auth-surface); border: 1px solid var(--auth-line); border-radius: .42rem; color: var(--auth-ink); display: flex; font-size: .75rem; font-weight: 800; justify-content: center; min-height: 44px; padding: .55rem; text-decoration: none; }
.auth-social-link:hover, .auth-social-link:focus-visible { background: var(--auth-surface-soft); border-color: var(--auth-line-strong); color: var(--auth-accent); }
.auth-switch { color: var(--auth-muted); font-size: .78rem; line-height: 1.5; margin: 1.35rem 0 0; text-align: center; }
.auth-switch a { font-weight: 850; text-decoration: none; }
.auth-notice { border: 1px solid; border-radius: .42rem; font-size: .78rem; line-height: 1.5; margin-bottom: 1.2rem; padding: .8rem .9rem; }
.auth-notice p { margin: 0; }
.auth-notice ul { margin: .35rem 0 0; padding-left: 1.15rem; }
.auth-notice--error { background: var(--auth-accent-soft); border-color: color-mix(in srgb, var(--auth-accent) 45%, var(--auth-line)); color: var(--auth-accent-deep); }
.auth-notice--success { background: color-mix(in srgb, var(--auth-positive) 10%, var(--auth-surface)); border-color: color-mix(in srgb, var(--auth-positive) 45%, var(--auth-line)); color: var(--auth-positive); }
.auth-flash .alert { border: 1px solid var(--auth-line); border-radius: .42rem; color: var(--auth-ink); font-size: .78rem; margin: 0 0 1.2rem; padding: .8rem .9rem; }
.auth-flash .close, .auth-flash .btn-close { display: none; }
.auth-password-hint { color: var(--auth-muted); font-size: .7rem; line-height: 1.45; margin: -.2rem 0 0; }
.auth-success-mark { align-items: center; background: color-mix(in srgb, var(--auth-positive) 14%, var(--auth-surface)); border-radius: 50%; color: var(--auth-positive); display: flex; font-size: 1.6rem; height: 64px; justify-content: center; margin-bottom: 1.25rem; width: 64px; }
.auth-actions { display: grid; gap: .65rem; margin-top: 1.5rem; }
.auth-footer { align-items: center; color: var(--auth-muted); display: flex; font-size: .68rem; gap: 1rem; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 4vw, 4rem); }
.auth-footer nav { display: flex; gap: 1rem; }
.auth-footer a { color: inherit; text-decoration: none; }
.auth-footer a:hover, .auth-footer a:focus-visible { color: var(--auth-accent); }
.captcha-div { color: var(--auth-muted); font-size: .72rem; }
.captcha-div > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.captcha-div br { display: none; }
.captcha-div img { border: 1px solid var(--auth-line); border-radius: .35rem; height: auto; max-width: 100%; }
.captcha-div .form-control { background: var(--auth-canvas); border: 1px solid var(--auth-line-strong); border-radius: .42rem; color: var(--auth-ink); min-height: 46px; padding: .65rem .8rem; }
.captcha-div .btn { align-items: center; background: var(--auth-accent); border: 0; border-radius: .35rem; color: #fff; cursor: pointer; display: inline-flex; min-height: 42px; padding: .5rem .7rem; }
.hide { display: none !important; }

@media (max-width: 959.98px) {
    .auth-shell { grid-template-columns: minmax(300px, 40%) minmax(0, 60%); }
    .auth-story__inner { padding: 2.25rem; }
    .auth-story__title { font-size: clamp(2.5rem, 6vw, 4rem) !important; }
    .auth-benefits { display: none; }
}

@media (max-width: 719.98px) {
    .auth-shell { display: block; }
    .auth-story { min-height: auto; }
    .auth-story__inner { display: block; min-height: auto; padding: 1.25rem; }
    .auth-brand--inverse, .auth-story__copy p:not(.auth-story__title), .auth-story__note { display: none; }
    .auth-story__copy { max-width: none; }
    .auth-story__copy .auth-eyebrow { margin-bottom: .45rem; }
    .auth-story__title { font-size: clamp(1.7rem, 8vw, 2.35rem) !important; line-height: 1.05 !important; max-width: 16ch !important; }
    .auth-main { min-height: calc(100svh - 128px); }
    .auth-main__header { justify-content: space-between; padding: 1rem 1.25rem; }
    .auth-brand--mobile { display: inline-flex; }
    .auth-back-link { display: none; }
    .auth-main__body { align-items: start; padding: 1rem 1rem 2.5rem; }
    .auth-card { border-radius: .75rem; padding: 1.4rem; }
    .auth-footer { align-items: start; flex-direction: column; padding: 1.25rem; }
}

@media (max-width: 419.98px) {
    .auth-socials { grid-template-columns: 1fr; }
    .auth-form__row { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.auth-help{border-top:1px solid var(--auth-line);margin-top:2rem;padding-top:1.25rem;font-size:.82rem;line-height:1.65;color:var(--auth-muted)}
.auth-help strong{color:var(--auth-ink)}.auth-help p{margin:.4rem 0 0}.auth-help a{text-underline-offset:.2em}
.auth-form input:autofill{border-color:var(--auth-accent)}
.auth-notice:focus{outline:2px solid var(--auth-accent);outline-offset:4px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
