/* Auth page styles — light-mode defaults with dark-mode override */

:root {
    color-scheme: light;
}

body.auth-light {
    background: var(--surface);
    color: var(--text);
}

body.auth-light .auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

body.auth-light .auth-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--surface);
}

body.auth-light .auth-video-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

body.auth-light .auth-video-overlay {
    background: transparent;
}

body.auth-light .auth-card {
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    border-color: var(--border);
}

body.auth-light .auth-card input {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

body.auth-light .muted,
body.auth-light .auth-link {
    color: var(--muted);
}

/* Registration completion state replaces the form after a successful signup. */
body.auth-light .auth-confirmation {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 12px;
    background: rgba(236, 253, 245, 0.86);
    color: #0f172a;
    text-align: center;
}

body.auth-light .auth-confirmation-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 22px;
}

body.auth-light .auth-confirmation h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #064e3b;
}

body.auth-light .auth-confirmation p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

body.auth-light .auth-confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

body.auth-light .auth-confirmation-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

body.auth-light .auth-confirmation-primary {
    background: #2563eb;
    color: #ffffff;
}

body.auth-light .auth-confirmation-secondary {
    background: #ffffff;
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.24);
}

[data-theme="dark"] body.auth-light,
body.auth-light[data-theme="dark"] {
    background: var(--surface);
    color: var(--text);
}

[data-theme="dark"] body.auth-light .auth-video {
    background: var(--surface);
}

[data-theme="dark"] body.auth-light .auth-card {
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    border-color: var(--border);
}

[data-theme="dark"] body.auth-light .auth-card input {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}

@media (max-width: 480px) {
    body.auth-light .auth-confirmation {
        padding: 18px;
    }

    body.auth-light .auth-confirmation-actions {
        display: grid;
    }
}
