/* RP Prime Review — split-screen login page */

.auth-body {
    min-height: 100vh;
    background: var(--navy);
}

/* ===== split container ===== */
.auth-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
}

/* ===== left hero panel ===== */
.auth-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(11, 61, 145, 0.35) 0%, rgba(10, 31, 68, 0) 60%),
        linear-gradient(160deg, #0a1830 0%, #0a1f44 45%, #070f22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-5);
}
/* subtle "bookshelf" texture using layered gradients (no image asset needed) */
.auth-hero-overlay {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0 1px, transparent 1px 40px);
    opacity: 0.5;
    pointer-events: none;
}
.auth-hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.hero-shield { color: var(--gold); margin-bottom: var(--space-4); }

.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.05;
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
    margin: 0 0 var(--space-3);
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}
.hero-tagline {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    margin: 0 auto var(--space-4);
    max-width: 30ch;
    text-transform: uppercase;
}

.hero-divider {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-3);
    margin: var(--space-4) auto var(--space-5);
    max-width: 320px;
}
.hero-divider::before, .hero-divider::after {
    content: ""; height: 2px; flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-star { color: var(--gold); font-size: 1.1rem; }

.hero-features {
    list-style: none; margin: 0 0 var(--space-5); padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
}
.hero-features li { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.hf-icon { color: var(--gold); }
.hf-text {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
    line-height: 1.35; color: #dbe4f3;
}

.hero-motto {
    border: 1px solid rgba(242, 169, 0, 0.5);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-4);
}
.hero-motto-line {
    margin: 0 0 var(--space-2);
    font-weight: 700; letter-spacing: 0.04em; font-size: 0.85rem;
    color: var(--white);
}
.hero-motto-em {
    margin: 0; color: var(--gold);
    font-style: italic; font-weight: 600; font-size: 1.05rem;
    font-family: var(--font-head);
}

/* ===== right form panel ===== */
.auth-panel {
    background: #f7f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-5);
    overflow-y: auto;
}
.auth-panel-inner { width: 100%; max-width: 420px; }

.auth-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.auth-brand-logo { height: 52px; width: auto; }
.auth-brand-name {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.4rem; color: var(--navy);
}

.auth-heading {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.5rem; color: var(--navy); margin: 0 0 4px;
}
.auth-subheading { color: var(--slate); font-size: 0.9rem; margin: 0 0 var(--space-4); }

.auth-form { margin-top: var(--space-3); }

.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.link-muted { color: var(--police-blue); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

/* input with leading icon + optional trailing button */
.input-affix { position: relative; }
.input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--muted); display: inline-flex; pointer-events: none;
}
.form-input.has-icon { padding-left: 40px; }
.form-input.has-suffix { padding-right: 42px; }
.input-suffix {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; color: var(--muted);
    padding: 6px; border-radius: var(--radius-sm); display: inline-flex;
}
.input-suffix:hover { color: var(--navy); background: var(--mist); }

.remember {
    display: flex; align-items: center; gap: var(--space-2);
    margin: var(--space-3) 0 var(--space-4);
    color: var(--slate); font-size: 0.88rem; cursor: pointer;
}
.remember input { width: 16px; height: 16px; accent-color: var(--police-blue); }

/* navy CTA button */
.btn-navy {
    background: var(--navy); color: var(--white);
}
.btn-navy:hover { background: #0c2a5c; }
.auth-submit { margin-top: var(--space-2); }

.auth-motivation { text-align: center; margin: var(--space-5) 0 var(--space-4); }
.auth-star { color: var(--gold); font-size: 1.1rem; }
.am-strong { margin: var(--space-2) 0 0; font-weight: 700; color: var(--navy); letter-spacing: 0.03em; }
.am-gold { margin: 0; font-weight: 700; color: var(--gold); letter-spacing: 0.03em; }
.am-em { margin: 2px 0 0; font-style: italic; color: var(--navy); font-family: var(--font-head); }

.auth-notice {
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0 0 var(--space-3);
}
.auth-legal {
    display: flex; justify-content: center; gap: var(--space-5);
}
.auth-legal a {
    color: var(--muted); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.06em; text-decoration: none;
}
.auth-legal a:hover { color: var(--navy); }

/* ===== responsive: stack, hide hero on small screens ===== */
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-panel { min-height: 100vh; }
}

/* ===== error pages reuse this stylesheet ===== */
.login-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6) var(--space-5);
    border-top: 4px solid var(--gold);
    margin: var(--space-6) auto;
}
.error-card { text-align: center; }
.error-code { font-size: 3.5rem; color: var(--gold); margin-bottom: var(--space-2); }
.error-message { color: var(--slate); margin-bottom: var(--space-4); }
