:root {
    color-scheme: light;
    --auth-navy: #102553;
    --auth-blue: #0866ff;
    --auth-muted: #53627e;
    --auth-border: #dce5f2;
}
* { box-sizing: border-box; }
body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: var(--auth-navy);
    background: radial-gradient(ellipse at 4% 55%, #e8f2ff 0, transparent 57%), #f8faff;
    font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--auth-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #79adff; outline-offset: 4px; }
::selection { background: #c9e0ff; }
.auth-header, .auth-footer { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.snow-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--auth-navy); flex-shrink: 0; }
.snow-brand:hover { text-decoration: none; }
.snow-logo { width: 48px; height: 46px; flex-shrink: 0; }
.snow-brand strong { display: block; font-size: 28px; font-weight: 750; letter-spacing: -1.1px; line-height: 1.15; }
.snow-brand strong span { color: var(--auth-blue); }
.snow-brand small { display: block; font-size: 12px; margin-top: 3px; }
.auth-home-link { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-muted); font-size: 14px; font-weight: 500; }
.auth-home-link:hover { color: var(--auth-blue); }
.auth-shell { width: min(1080px, calc(100% - 80px)); margin: auto; padding: 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 448px); align-items: center; gap: clamp(48px, 7vw, 112px); }
.auth-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: #49658e; }
.auth-brand h1 { margin: 20px 0; font-size: clamp(32px, 2.8vw, 42px); line-height: 1.18; letter-spacing: -1.5px; font-weight: 750; }
.auth-brand h1 span { color: var(--auth-blue); }
.auth-brand > p { max-width: 420px; margin: 0; color: var(--auth-muted); font-size: 17px; line-height: 1.7; }
.auth-trial-details { display: grid; gap: 16px; list-style: none; margin: 30px 0 20px; padding: 0; font-size: 15px; color: var(--auth-muted); }
.auth-trial-details li { display: flex; align-items: flex-start; gap: 12px; }
.auth-trial-details strong { color: var(--auth-navy); font-weight: 600; }
.auth-trial-details .snow-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; padding: 4px; color: var(--auth-blue); background: #dfeeff; border-radius: 50%; }
.auth-brand > .auth-trial-note { font-size: 12px; color: #64748b; }
.auth-card { width: 100%; min-width: 0; padding: 32px; border: 1px solid var(--auth-border); border-radius: 20px; background: #fff; box-shadow: 0 12px 40px #17376609, 0 2px 5px #17376604; }
.form-heading { margin-bottom: 26px; }
.form-heading h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; letter-spacing: -.75px; font-weight: 700; color: var(--auth-navy); }
.form-heading p { margin: 0; color: var(--auth-muted); font-size: 14px; line-height: 1.6; }
.stack-form { display: grid; gap: 18px; }
.stack-form label { display: grid; gap: 7px; color: #243958; font-size: 14px; font-weight: 600; }
.stack-form input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; min-width: 0; height: 48px; border: 1px solid #cbd7e8; border-radius: 9px; padding: 11px 13px; background: #fff; color: var(--auth-navy); caret-color: var(--auth-blue); font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.stack-form input:not([type="checkbox"]):not([type="hidden"]):hover { border-color: #9cb4d4; }
.stack-form input:not([type="checkbox"]):not([type="hidden"]):focus { outline: none; border-color: var(--auth-blue); box-shadow: 0 0 0 3px #0866ff18; }
.stack-form input::placeholder { color: #7a889e; }
.stack-form input:-webkit-autofill { -webkit-text-fill-color: var(--auth-navy); box-shadow: 0 0 0 1000px #f4f8ff inset; }
.stack-form input[aria-invalid="true"] { border-color: #c63737; }
.stack-form .checkbox-row { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.checkbox-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--auth-blue); }
.primary-button { width: 100%; min-height: 48px; padding: 12px 20px; border: 1px solid var(--auth-blue); border-radius: 9px; background: var(--auth-blue); color: #fff; font-size: 15px; font-weight: 650; cursor: pointer; transition: background .15s, box-shadow .15s; }
.primary-button:hover { background: #0055df; border-color: #0055df; box-shadow: 0 3px 9px #0866ff20; }
.primary-button:active { background: #004bc7; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.field-error { color: #b42318; font-size: 12px; line-height: 1.5; font-weight: 400; }
.auth-switch { margin: 20px 0 0; color: var(--auth-muted); font-size: 14px; text-align: center; }
.auth-switch + .auth-switch { margin-top: 10px; }
.auth-switch a { font-weight: 600; }
.validation-summary { margin-bottom: 18px; border: 1px solid #f2c6c3; border-radius: 9px; padding: 12px; background: #fff5f4; color: #b42318; font-size: 14px; }
.stack-form .validation-summary { margin-bottom: 0; }
.validation-summary.is-good { border-color: #b8e3c7; background: #f1faf4; color: #20613a; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; color: #64748b; font-size: 12px; }
.auth-footer nav { display: flex; gap: 22px; }
.auth-footer a { color: inherit; }
@media (min-width: 761px) and (max-height: 850px) {
    .auth-header { padding-block: 20px; }
    .auth-shell { padding-block: 20px; }
    .auth-card { padding: 26px; }
    .form-heading { margin-bottom: 20px; }
    .stack-form { gap: 14px; }
    .stack-form label { gap: 6px; }
    .stack-form input:not([type="checkbox"]):not([type="hidden"]) { height: 44px; }
    .auth-footer { padding-block: 16px; }
}
@media (max-width: 900px) {
    .auth-shell { gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); }
    .auth-brand h1 { font-size: 32px; }
    .auth-trial-details { font-size: 14px; }
}
@media (max-width: 760px) {
    .auth-header, .auth-footer { width: calc(100% - 40px); }
    .auth-header { padding-block: 20px; gap: 14px; }
    .snow-logo { width: 38px; height: 36px; }
    .snow-brand { gap: 9px; }
    .snow-brand strong { font-size: 24px; }
    .snow-brand small { font-size: 10px; }
    .auth-home-link { font-size: 12px; }
    .auth-shell { display: block; width: min(448px, calc(100% - 40px)); padding-block: 20px; }
    .auth-brand { display: none; }
    .auth-card { padding: 28px; border-radius: 16px; }
    .auth-footer { font-size: 11px; }
}
@media (max-width: 380px) {
    .auth-header, .auth-footer { width: calc(100% - 32px); }
    .auth-shell { width: calc(100% - 32px); padding-block: 12px; }
    .auth-home-link { gap: 4px; font-size: 11px; }
    .snow-brand strong { font-size: 21px; }
    .snow-brand small { font-size: 9px; }
    .snow-logo { width: 34px; height: 32px; }
    .auth-card { padding: 24px; }
    .auth-footer { flex-wrap: wrap; justify-content: center; padding-block: 16px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
