:root {
    --auth-primary: #1d4ed8;
    --auth-primary-deep: #1e40af;
    --auth-ink: #0f172a;
    --auth-muted: #475569;
    --auth-border: #cbd5e1;
    --auth-surface: #ffffff;
}
* { box-sizing: border-box; }
body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    overflow-x: hidden;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(29, 78, 216, .08), transparent 35%),
        radial-gradient(circle at 88% 88%, rgba(15, 23, 42, .06), transparent 30%),
        #f8fafc;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
.auth-shell {
    width: min(980px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: var(--auth-surface);
    box-shadow: 0 32px 80px -42px rgba(15, 23, 42, .35), 0 12px 30px -20px rgba(15, 23, 42, .18);
}
.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #0f172a 0%, #1e40af 60%, #1d4ed8 100%);
}
.auth-showcase::before, .auth-showcase::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-showcase::before { width: 320px; height: 320px; right: -145px; top: -125px; }
.auth-showcase::after { width: 240px; height: 240px; left: -115px; bottom: -105px; }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; }
.auth-brand-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.14); box-shadow: inset 0 1px rgba(255,255,255,.2); font-size: 1.15rem; backdrop-filter: blur(8px); }
.auth-brand-name { font: 750 1.35rem/1 Outfit, sans-serif; letter-spacing: -.025em; }
.auth-showcase-copy { position: relative; z-index: 1; margin-block: auto; padding-block: 48px; }
.auth-kicker { display: block; margin-bottom: 14px; color: #93c5fd; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-showcase h2 { max-width: 330px; margin: 0; font: 700 clamp(1.8rem, 3vw, 2.45rem)/1.08 Outfit, sans-serif; letter-spacing: -.035em; }
.auth-showcase p { max-width: 340px; margin: 17px 0 0; color: rgba(255,255,255,.82); font-size: .91rem; line-height: 1.65; }
.auth-trust { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.8); font-size: .75rem; }
.auth-trust i { color: #4ade80; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 52px; }
.auth-content { width: 100%; max-width: 420px; }
.auth-mobile-brand { display: none; margin-bottom: 34px; color: var(--auth-ink); }
.auth-mobile-brand .auth-brand-mark { color: #fff; border: 0; background: linear-gradient(135deg, var(--auth-primary-deep), var(--auth-primary)); box-shadow: 0 10px 22px rgba(29,78,216,.25); }
.auth-header { margin-bottom: 30px; }
.auth-header h1 { margin: 0; color: var(--auth-ink); font: 700 1.75rem/1.15 Outfit, sans-serif; letter-spacing: -.025em; }
.auth-header p { margin: 10px 0 0; color: var(--auth-muted); font-size: .9rem; line-height: 1.55; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 13px 14px; border: 1px solid; border-radius: 12px; font-size: .82rem; line-height: 1.45; text-align: left; }
.auth-alert i { margin-top: 2px; }
.auth-alert-error { border-color: #fecaca; background: #fff1f2; color: #9f1239; }
.auth-alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.auth-form { display: grid; gap: 19px; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .auth-field-row { grid-template-columns: 1fr; } }
.auth-field { display: grid; gap: 8px; text-align: left; }
.auth-field label { color: #334155; font-size: .72rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.auth-input { position: relative; }
.auth-input > i:first-child { position: absolute; top: 50%; left: 15px; color: #94a3b8; font-size: .9rem; transform: translateY(-50%); pointer-events: none; transition: color .18s; }
.auth-input input { width: 100%; min-height: 50px; padding: 12px 42px 12px 43px; border: 1px solid var(--auth-border); border-radius: 12px; outline: 0; background: #f8fafc; color: var(--auth-ink); font: 500 .92rem Inter, sans-serif; transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-input input::placeholder { color: #94a3b8; }
.auth-input input:hover { border-color: #94a3b8; }
.auth-input input:focus { border-color: var(--auth-primary); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.auth-input input:focus + i, .auth-input:focus-within > i:first-child { color: var(--auth-primary); }
.auth-password-toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); background: none; border: none; padding: 6px 8px; color: #94a3b8; cursor: pointer; border-radius: 6px; font-size: .9rem; transition: color .18s, background-color .18s; }
.auth-password-toggle:hover { color: var(--auth-ink); background-color: #e2e8f0; }
.auth-hint { margin: -1px 0 0; color: var(--auth-muted); font-size: .72rem; line-height: 1.45; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; margin-top: 3px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--auth-primary-deep), var(--auth-primary)); color: #fff; font: 750 .9rem Inter, sans-serif; box-shadow: 0 12px 24px -14px rgba(29,78,216,.75); cursor: pointer; transition: transform .18s, box-shadow .18s, filter .18s; }
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 28px -14px rgba(29,78,216,.85); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible, .auth-link:focus-visible { outline: 3px solid rgba(29,78,216,.22); outline-offset: 3px; }
.auth-footer { display: flex; align-items: center; justify-content: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.auth-link { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-primary-deep); font-size: .8rem; font-weight: 650; text-decoration: none; transition: color .18s; }
.auth-link:hover { color: var(--auth-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .auth-submit, .auth-input input { transition: none; } }
@media (max-width: 760px) {
    body.auth-page { display: block; padding: 0; background: #fff; }
    .auth-shell { min-height: 100dvh; display: block; border: 0; border-radius: 0; box-shadow: none; }
    .auth-showcase { display: none; }
    .auth-panel { min-height: 100dvh; padding: 38px 24px; }
    .auth-mobile-brand { display: inline-flex; }
}
@media (max-width: 380px) { .auth-panel { padding-inline: 19px; } .auth-header h1 { font-size: 1.55rem; } }
.auth-consent { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 10px; color: var(--auth-muted); font-size: .75rem; line-height: 1.5; cursor: pointer; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.auth-consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--auth-primary); }
a.auth-submit { text-decoration: none; }
.auth-footer { gap: 16px; flex-wrap: wrap; }
.auth-completion { text-align: center; }
.auth-completion-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 20px; background: linear-gradient(135deg, #e0f7f2, #e9f8ff); color: var(--auth-primary-deep); font-size: 1.55rem; box-shadow: inset 0 0 0 1px rgba(8,120,168,.1); }
.auth-completion .auth-header { margin-bottom: 22px; }
.auth-completion-status { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #166534; text-align: left; }
.auth-completion-status > i { margin-top: 3px; }
.auth-completion-status strong { display: block; margin-bottom: 3px; font-size: .82rem; }
.auth-completion-status p { margin: 0; font-size: .76rem; line-height: 1.5; }
.auth-completion-help { margin: 15px 2px 24px; color: var(--auth-muted); font-size: .75rem; line-height: 1.55; }
.auth-completion-actions { display: grid; gap: 17px; }
.auth-completion-actions .auth-link { justify-content: center; }
