:root {
    color-scheme: dark;
    --auth-bg: #07101d;
    --auth-panel: #0d1929;
    --auth-panel-strong: #101f33;
    --auth-border: #21324a;
    --auth-text: #f4f8fc;
    --auth-muted: #9aaac0;
    --auth-accent: #2aabee;
    --auth-accent-hover: #4bbcf3;
    --auth-danger: #ff7b86;
    --auth-success: #52d69b;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--auth-bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--auth-text); background: radial-gradient(circle at 14% 14%, rgba(42,171,238,.12), transparent 32rem), var(--auth-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
a { color: var(--auth-accent); text-underline-offset: 3px; }
a:hover { color: var(--auth-accent-hover); }
:focus-visible { outline: 3px solid rgba(75,188,243,.7); outline-offset: 2px; }
.auth-layout { width: min(1120px, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: clamp(1.25rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.auth-layout-compact { min-height: 100dvh; }
.auth-intro { max-width: 36rem; }
.brand-mark { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 1rem; color: white; background: linear-gradient(145deg, var(--auth-accent), #2585d5); box-shadow: 0 14px 34px rgba(42,171,238,.2); }
.brand-mark svg { width: 1.7rem; height: 1.7rem; }
.eyebrow { margin: 1.5rem 0 .65rem; color: var(--auth-accent); font-size: .82rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.auth-intro h1 { margin: 0; max-width: 12ch; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.auth-intro > p:last-of-type { max-width: 34rem; margin: 1.3rem 0 0; color: var(--auth-muted); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; }
.auth-benefits { margin: 1.8rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; color: #c6d3e3; }
.auth-benefits li { display: flex; align-items: center; gap: .75rem; }
.auth-benefits li::before { content: "✓"; width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border-radius: 50%; color: var(--auth-success); background: rgba(82,214,155,.1); font-size: .78rem; font-weight: 800; }
.auth-card { width: 100%; padding: clamp(1.35rem, 4vw, 2.2rem); border: 1px solid var(--auth-border); border-radius: 1.4rem; background: rgba(13,25,41,.92); box-shadow: 0 28px 70px -42px #000; backdrop-filter: blur(18px); }
.auth-card-header .eyebrow { margin-top: 0; }
.auth-card-header h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.025em; }
.auth-card-header > p:last-child { margin: .65rem 0 0; color: var(--auth-muted); line-height: 1.55; }
.auth-form { display: grid; gap: 1.15rem; margin-top: 1.7rem; }
.field label { display: block; margin: 0 0 .5rem; font-size: .9rem; font-weight: 700; }
.field input { width: 100%; min-height: 3rem; padding: .75rem .9rem; border: 1px solid var(--auth-border); border-radius: .75rem; color: var(--auth-text); background: #091522; transition: border-color .16s, box-shadow .16s; }
.field input:hover { border-color: #334964; }
.field input:focus { outline: 0; border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgba(42,171,238,.15); }
.field-help { margin: .45rem 0 0; color: var(--auth-muted); font-size: .78rem; }
.password-field { position: relative; }
.password-field input { padding-right: 5rem; }
.password-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); min-height: 2.1rem; padding: 0 .6rem; border: 0; border-radius: .5rem; color: var(--auth-accent); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 700; }
.password-toggle:hover { background: rgba(42,171,238,.1); }
.auth-submit { width: 100%; min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center; margin-top: .35rem; padding: .75rem 1rem; border: 0; border-radius: .8rem; color: white; background: var(--auth-accent); cursor: pointer; font-weight: 750; text-decoration: none; transition: background .16s, transform .16s; }
.auth-submit:hover { color: white; background: var(--auth-accent-hover); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { cursor: wait; opacity: .72; }
.auth-link-button { margin-top: 1.2rem; }
.auth-footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--auth-border); color: var(--auth-muted); font-size: .9rem; text-align: center; }
.auth-footer p { margin: 0; }
.auth-footer .auth-help { margin-top: .75rem; font-size: .78rem; line-height: 1.5; }
.auth-notice { margin-top: 1.25rem; padding: .85rem 1rem; border-radius: .7rem; border: 1px solid; font-size: .9rem; line-height: 1.45; }
.auth-notice-error { color: #ffd0d4; border-color: rgba(255,123,134,.35); background: rgba(255,123,134,.09); }
.auth-notice-info { color: #cbeeff; border-color: rgba(42,171,238,.32); background: rgba(42,171,238,.08); }
.auth-success { margin-top: 1.6rem; text-align: center; }
.auth-success h3 { margin: 1rem 0 .5rem; }
.auth-success p { margin: 0; color: var(--auth-muted); line-height: 1.6; }
.success-mark { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: var(--auth-success); background: rgba(82,214,155,.11); font-size: 1.35rem; font-weight: 800; }
@media (max-width: 800px) { .auth-layout { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; align-content: start; } .auth-intro { display: flex; align-items: center; gap: .8rem; padding-top: .5rem; } .brand-mark { width: 2.8rem; height: 2.8rem; border-radius: .8rem; } .brand-mark svg { width: 1.4rem; height: 1.4rem; } .auth-intro .eyebrow { margin: 0; } .auth-intro h1, .auth-intro > p:last-of-type, .auth-benefits { display: none; } .auth-card { max-width: 32rem; } }
@media (max-width: 420px) { .auth-layout { padding: 1rem; } .auth-card { padding: 1.2rem; border-radius: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
