:root { color-scheme: light; --ink: #1f2937; --muted: #556477; --brand: #203674; font: 16px system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 24px; color: var(--ink); background: #f1f5f9; }
.auth-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(100%, 980px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px #0f172a1c; }
.auth-form-side { padding: clamp(24px, 5vw, 52px); }
.auth-logo { display: block; width: min(190px, 100%); height: auto; margin-bottom: 28px; }
h1 { margin: 0 0 8px; font-size: clamp(25px, 3.6vw, 34px); line-height: 1.15; color: var(--brand); }
.auth-intro, .auth-hint { color: var(--muted); line-height: 1.5; margin: 0 0 18px; }
.auth-hint { font-size: 14px; margin: 0; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; display: grid; gap: 14px; }
[hidden] { display: none !important; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
input:not([type=checkbox]) { width: 100%; min-width: 0; border: 1px solid #aebcd0; border-radius: 6px; padding: 10px 12px; font: inherit; color: inherit; }
.auth-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-options, .auth-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; font-size: 14px; }
.auth-checkbox { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; }
a { color: var(--brand); text-underline-offset: 3px; }
button { padding: 11px 15px; border: 0; border-radius: 6px; font: inherit; font-weight: 650; color: #fff; background: var(--brand); cursor: pointer; }
button:disabled { opacity: .6; cursor: progress; }
:focus-visible { outline: 2px solid #285ed8; outline-offset: 3px; }
.auth-links { margin-top: 18px; }
.auth-message { margin: 16px 0 0; color: #166534; line-height: 1.5; }
.auth-message:empty { margin: 0; }
.auth-message.is-error { color: #b91c1c; }
.auth-visual { background: #24396a url('/img/4.png') center / cover no-repeat; }
[data-auth-screen=register] .auth-visual { background-image: url('/img/1.png'); }
@media (max-width: 720px) {
    body { padding: 14px; }
    .auth-container { width: min(100%, 500px); grid-template-columns: minmax(0, 1fr); }
    .auth-visual { display: none; }
}
