.auth-page { background: #fff; }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page main { display: grid; align-content: center; min-height: calc(100svh - 76px); max-width: none; margin: 0; padding: 40px 24px; }
.auth-surface { width: 100%; max-width: 420px; margin: auto; }
.auth-heading { margin-bottom: 28px; }
.auth-emblem { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff0f0; border-radius: 8px; margin-bottom: 18px; }
.auth-emblem .icon { filter: invert(15%) sepia(87%) saturate(5689%) hue-rotate(358deg) brightness(79%) contrast(117%); }
.auth-heading h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.auth-form { display: grid; gap: 18px; }
.auth-field { min-width: 0; }
.auth-field label { margin: 0 0 8px; font-size: 14px; color: #343a42; font-weight: 700; }
.auth-field input { height: 46px; padding: 12px; border: 1px solid #cbd0d7; font-size: 16px; border-radius: 6px; background: #fff; color: var(--ink); }
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #fff0f0; }
.auth-field input[aria-invalid="true"] { border-color: var(--brand-dark); }
.auth-password { position: relative; }
.auth-password input { padding-right: 52px; }
.auth-password .password-toggle { display: grid; place-items: center; position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; padding: 8px; background: transparent; border: 0; border-radius: 4px; }
@media (hover: hover) { .auth-password .password-toggle:hover { background: #ffeaea; } }
.auth-field-error { margin: 7px 0 0; color: var(--brand-dark); font-size: 13px; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 46px; font-size: 15px; margin-top: 4px; }
.auth-switch { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); line-height: 1.8; }
.auth-switch a { color: var(--brand-dark); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 540px) {
    .auth-page main { min-height: auto; padding: 32px 20px; }
    .auth-heading { margin-bottom: 24px; }
    .auth-heading h1 { font-size: 26px; }
}
