@font-face { font-family: "Golos Text"; src: url("/auth-font.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
:root { color-scheme: light; --surface: #fff; --text: #15233b; --muted: #52627a; --accent: #2457d6; --border: #d8e0ea; --control-border: #7d8ca1; --error: #a3231f; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: "Golos Text", "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #1744b2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p { margin: 0 0 16px; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; }
.auth-page { min-height: 100dvh; display: flex; flex-direction: column; padding: 32px 48px 24px; }
.brand-mark { align-self: flex-start; color: var(--text); font-size: 1.25rem; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); flex: 1; width: min(1120px, 100%); margin: 40px auto; }
.auth-context { display: flex; flex-direction: column; padding: 36px 48px 28px 0; border-right: 1px solid var(--border); }
.context-copy h2 { font-size: 2.5rem; line-height: 1.16; }
.context-lead { max-width: 32ch; margin-top: 20px; color: var(--muted); font-size: 1.0625rem; }
.auth-art { flex: 1; min-height: 300px; max-height: 400px; margin: 8px 12px 12px 0; }
.context-note { margin: 0; color: var(--muted); font-size: .875rem; }
.auth-panel { display: flex; align-items: center; min-width: 0; padding: 36px 0 36px 56px; }
.auth-panel-inner { width: 100%; max-width: 400px; margin: auto; }
.form-heading { margin-bottom: 28px; }
.form-heading h1 { margin-bottom: 14px; font-size: 1.75rem; }
.form-heading > p { margin: 0; color: var(--muted); }
.auth-form { display: grid; gap: 20px; }
.field-group { display: grid; gap: 8px; }
.field-group label { font-size: .875rem; }
.field-control { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid var(--control-border); border-radius: 5px; }
.field-control:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.field-control-error { border-color: var(--error); }
.field-control > svg, .password-toggle svg, .form-alert > svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.field-control > svg { color: var(--muted); }
.field-control input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.password-toggle { display: grid; place-items: center; flex-shrink: 0; width: 44px; min-height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--accent); }
.eye-closed, .password-toggle[data-visible="true"] .eye-open { display: none; }
.password-toggle[data-visible="true"] .eye-closed { display: block; }
.field-help, .field-error { margin: 0; font-size: .8125rem; overflow-wrap: anywhere; }
.field-help { color: var(--muted); }
.field-error { color: var(--error); }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.primary-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 11px 20px; border: 1px solid transparent; border-radius: 5px; color: white; background: var(--accent); font-size: .9375rem; font-weight: 500; cursor: pointer; }
.primary-action:hover:not(:disabled) { background: #1744b2; }
.primary-action:disabled { cursor: default; opacity: .58; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-action[data-loading="true"] .button-spinner { display: block; }
.primary-action[data-loading="true"] .button-arrow { display: none; }
.form-switch { margin: 24px 0 0; color: var(--muted); font-size: .875rem; text-align: center; }
.form-alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--error); border-radius: 5px; color: var(--error); font-size: .875rem; overflow-wrap: anywhere; }
.form-alert strong { font-weight: 600; }
.form-alert ul { margin: 8px 0 0; padding-left: 20px; }
.auth-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: .8125rem; }
.auth-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 961px) { .auth-art { background: url("/auth-artwork.webp") center / contain no-repeat; } }
@media (max-width: 960px) {
    .auth-page { padding: 24px; }
    .auth-shell { display: block; width: min(440px, 100%); margin: 40px auto; }
    .auth-context { display: none; }
    .auth-panel { padding: 0; }
}
@media (max-width: 540px) { .form-heading h1 { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .button-spinner { animation: none; } }

.verification-note { margin-top:16px;color:var(--muted);font-size:.875rem; }
.verification-email { overflow-wrap:anywhere; }
.auth-secondary-action { min-height:44px;padding:8px;border:0;background:transparent;color:var(--accent);text-decoration:underline;cursor:pointer; }
