/* ══════════════════════════════════════════════════════════
   Auth-pagina's — login (split-layout) + register/reset/verify
   (gecentreerde kaart). Volgt de landing-designtaal: indigo,
   zachte glows, grain op donkere vlakken.
   ══════════════════════════════════════════════════════════ */

/* ── Gecentreerde variant (register, reset, verify, uitnodiging) ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle 480px at 12% 8%, rgba(224, 231, 255, 0.65), transparent 70%),
        radial-gradient(circle 420px at 90% 90%, rgba(221, 214, 254, 0.5), transparent 70%),
        #fafafe;
}

.auth-card {
    width: 100%;
    max-width: 410px;
    background: var(--bg-primary);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(49, 46, 129, 0.1);
}

/* ── Hero-variant (login): gecentreerd op een lichte aurora-achtergrond
      met de landing-tinten (indigo/violet/roze) + subtiele grain ── */
.auth-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
    background: #f6f7fd;
    overflow: hidden;
}

/* Aurora-blobs: groot, zacht en net buiten beeld voor diepte */
.auth-hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    pointer-events: none;
    background:
        radial-gradient(circle 540px at 78% 6%, rgba(199, 210, 254, 0.85), transparent 68%),
        radial-gradient(circle 460px at 6% 24%, rgba(221, 214, 254, 0.7), transparent 68%),
        radial-gradient(circle 420px at 88% 88%, rgba(252, 231, 243, 0.75), transparent 68%),
        radial-gradient(circle 380px at 22% 96%, rgba(224, 231, 255, 0.8), transparent 68%);
    filter: blur(2px);
}

.auth-hero-brand {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b1120;
    text-decoration: none;
}

.auth-hero-brand span {
    color: #4f46e5;
}

.auth-card--hero {
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 20px 60px rgba(49, 46, 129, 0.14);
}

.auth-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-hero-back:hover {
    color: var(--primary);
}

/* ── Split-layout (alternatief, momenteel ongebruikt) ── */
.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 44%) 1fr;
}

/* Merkpaneel links: donkere gradient + glows + grain (lp-grain) */
.auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem 3.25rem;
    background: linear-gradient(135deg, #0f1320 0%, #1e1b4b 55%, #312e81 100%);
    color: #e2e8f0;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle 380px at 85% 15%, rgba(129, 140, 248, 0.22), transparent 70%),
        radial-gradient(circle 320px at 10% 90%, rgba(236, 72, 153, 0.12), transparent 70%);
}

.auth-side-brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    width: fit-content;
}

.auth-side-brand span,
.auth-brand-mobile span {
    color: #818cf8;
}

.auth-side-body {
    max-width: 400px;
}

.auth-side-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

.auth-side-sub {
    margin: 0 0 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #c7d2fe;
}

.auth-side-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-side-points li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: #e0e7ff;
}

.auth-side-check {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(129, 140, 248, 0.22);
    color: #a5b4fc;
}

.auth-side-check svg {
    width: 0.85rem;
    height: 0.85rem;
}

.auth-side-foot {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(199, 210, 254, 0.55);
}

/* Formulierzijde */
.auth-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 2rem 2rem;
    background:
        radial-gradient(circle 420px at 88% 10%, rgba(224, 231, 255, 0.55), transparent 70%),
        #fafafe;
}

.auth-back {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.auth-back:hover {
    color: var(--primary);
}

/* In de split heeft de pagina-achtergrond al diepte — kaart mag licht */
.auth-card--split {
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 10px 34px rgba(49, 46, 129, 0.08);
}

/* Wordmark boven het formulier op mobiel (merkpaneel is dan verborgen) */
.auth-brand-mobile {
    display: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text, #0b1120);
    text-decoration: none;
    margin-bottom: 1.25rem;
}

/* ── Gedeelde kaart-onderdelen ── */
.auth-title {
    margin: 0 0 0.3rem 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0 0 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-error {
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    font-size: 0.9rem;
}

.auth-success {
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 10px;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.auth-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--text, #0b1120);
}

.auth-field input {
    width: 100%;
    padding: 0.68rem 0.85rem;
    font-size: 0.98rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.auth-submit {
    margin-top: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    filter: brightness(1.04);
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

.auth-footer {
    margin: 1.5rem 0 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Icon wrap (verification/reset result pages) */
.auth-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.1rem;
}
.auth-icon-wrap svg { width: 26px; height: 26px; }

.auth-icon-wrap--success { background: #f0fdf4; color: #16a34a; }
.auth-icon-wrap--error   { background: #fef2f2; color: #dc2626; }
.auth-icon-wrap--info    { background: #eff6ff; color: #2563eb; }

.auth-hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-forgot {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
}
.auth-forgot:hover { color: var(--primary); text-decoration: underline; }

/* ── Responsive: merkpaneel weg, wordmark boven de kaart ── */
@media (max-width: 920px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }

    .auth-brand-mobile {
        display: block;
    }

    .auth-main {
        padding: 4.5rem 1.25rem 2rem;
    }

    .auth-back {
        right: 1.25rem;
    }
}
