:root {
    color-scheme: light dark;
    --auth-bg: #0f172a;
    --auth-card: #1e293b;
    --auth-text: #e2e8f0;
    --auth-muted: #94a3b8;
    --auth-accent: #38bdf8;
    --auth-error: #f87171;
    --auth-success: #4ade80;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: var(--auth-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
    font-size: 1.25rem;
    margin: 0 0 1.5rem;
}

.auth-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.85rem;
    color: var(--auth-muted);
}

.auth-field input {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: var(--auth-text);
    font-size: 1rem;
}

.auth-submit {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: none;
    background: var(--auth-accent);
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.auth-message.is-error {
    color: var(--auth-error);
}

.auth-message.is-success {
    color: var(--auth-success);
}

.auth-links {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}