@import url("/css/site.css");

:root {
    --auth-ink: var(--color-text);
    --auth-muted: var(--color-text-muted);
    --auth-line: var(--color-border);
    --auth-accent: var(--color-primary);
}

*, *::before, *::after { box-sizing: border-box; }
body.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 2.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, var(--color-primary-soft) 0, var(--color-surface-subtle) 48rem);
    color: var(--auth-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.auth-shell { width: min(100%, 28rem); text-align: center; }
.auth-brand { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; position: relative; }
.auth-brand::after { content: ""; position: absolute; width: 2.5rem; height: .2rem; border-radius: 99px; background: var(--auth-accent); bottom: -.55rem; opacity: .75; }
.auth-brand img { display: block; width: auto; max-width: min(12rem, 70vw); max-height: 3.5rem; object-fit: contain; }
.auth-slogan { margin: .75rem 0 1.75rem; color: var(--auth-muted); line-height: 1.5; }
.auth-card { padding: clamp(1.5rem, 5vw, 2.25rem); border: 1px solid var(--auth-line); border-top: 3px solid var(--auth-accent); border-radius: .75rem; background: var(--color-surface); text-align: left; box-shadow: 0 1rem 2.5rem rgb(var(--color-text-rgb) / 7%); }
.auth-card h1 { margin: 0 0 1.5rem; font-size: 1.65rem; font-weight: 650; letter-spacing: -.025em; }
.auth-card .form-label { margin-bottom: .45rem; font-weight: 600; }
.auth-card .form-control { min-height: 2.9rem; border-color: var(--color-border-strong); }
.auth-card .form-control:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 .2rem rgb(var(--color-primary-rgb) / 15%); }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .25rem 0 1.25rem; font-size: .925rem; }
.auth-options .form-check { display: flex; align-items: center; gap: .5rem; margin: 0; }
.auth-submit { width: 100%; min-height: 2.9rem; font-weight: 650; background: var(--auth-accent); border-color: var(--auth-accent); }
.auth-submit:hover, .auth-submit:focus-visible { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.auth-switch { margin: 1.25rem 0 0; text-align: center; color: var(--auth-muted); }
.auth-policy { margin: 1.25rem 0 0; color: var(--auth-muted); font-size: .875rem; line-height: 1.6; text-align: center; }
.auth-footer { display: flex; justify-content: center; gap: .65rem; margin-top: 1.5rem; color: var(--auth-muted); font-size: .9rem; }
.auth-validation:empty, .auth-field-error:empty { display: none; }
.auth-validation, .auth-field-error { display: block; color: var(--color-danger); font-size: .9rem; }
.auth-validation { margin-bottom: 1rem; }
.auth-status { margin: 1rem 0 0; color: var(--color-success); }
a { color: var(--auth-accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--color-primary-focus); outline-offset: 2px; }
@media (max-width: 360px) { body.auth-page { padding: 1.25rem .75rem; } .auth-options { align-items: flex-start; flex-direction: column; } }
