/* =====================================================================
   AUTH.CSS — login.php
   Split-screen login: branding panel + form panel, both on the graphite
   palette (no light-mode carve-out). See redesign strategy §8.
===================================================================== */

html, body { height: 100%; }

.auth-page {
    min-height: 100vh;
    display: flex;
}

/* ── LEFT: BRANDING PANEL ───────────────────────────────────────── */
.auth-branding {
    flex: 1;
    background: var(--surface-sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
    border-right: 1px solid var(--border-subtle);
}

.auth-branding-logo {
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-raised);
    margin-bottom: 24px;
}

.auth-branding-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-branding-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.auth-branding-tagline {
    margin-top: 10px;
    max-width: 320px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── RIGHT: FORM PANEL ──────────────────────────────────────────── */
.auth-form-panel {
    flex: 1;
    background: var(--surface-base);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 120, 120, 0.12);
    border: 1px solid rgba(217, 120, 120, 0.3);
    color: var(--status-danger);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
    margin-top: 4px;
}

/* ── MOBILE: stack, branding collapses to a compact header band ──── */
@media (max-width: 768px) {
    .auth-page { flex-direction: column; }

    .auth-branding {
        flex: none;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .auth-branding-logo {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .auth-branding-title { font-size: 20px; }
    .auth-branding-tagline { display: none; }

    .auth-form-panel { flex: 1; padding: 24px; }
}
