:root {
    color-scheme: light;
    --auth-navy: #102a43;
    --auth-blue: #1769aa;
    --auth-blue-dark: #125387;
    --auth-border: #d6dee8;
    --auth-muted: #526579;
    --auth-background: #eef3f8;
    --auth-error: #9b1c1c;
    --auth-error-background: #fff0f0;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-navy);
    background: var(--auth-background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(100%, 26rem);
    padding: 2rem;
    border: 1px solid var(--auth-border);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgb(16 42 67 / 8%);
}

.auth-brand {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 0.55rem;
    color: #fff;
    background: var(--auth-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.auth-product {
    margin: 1rem 0 0.25rem;
    color: var(--auth-blue);
    font-weight: 700;
}

.auth-card h1 { margin: 0; font-size: 1.65rem; line-height: 1.25; }
.auth-intro { margin: 0.75rem 0 1.5rem; color: var(--auth-muted); }

.auth-error {
    margin-bottom: 1.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #efb7b7;
    border-radius: 0.45rem;
    color: var(--auth-error);
    background: var(--auth-error-background);
}

.auth-form { display: grid; gap: 0.65rem; }
.auth-form label { margin-top: 0.35rem; font-weight: 650; }

.auth-form input {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #9caebe;
    border-radius: 0.4rem;
    color: var(--auth-navy);
    background: #fff;
    font: inherit;
}

.auth-form button {
    min-height: 2.85rem;
    margin-top: 0.75rem;
    border: 0;
    border-radius: 0.4rem;
    color: #fff;
    background: var(--auth-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-form button:hover { background: var(--auth-blue-dark); }

.auth-form input:focus-visible,
.auth-form button:focus-visible {
    outline: 3px solid #79b8e8;
    outline-offset: 2px;
}

@media (max-width: 30rem) {
    .auth-card { padding: 1.5rem; }
}
