/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f0f0f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Buitenste wrapper (vervangt .logo + .container) ── */
.auth-wrapper {
    display: flex;
    width: min(1000px, 96vw);
    min-height: 580px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(90, 40, 180, 0.18), 0 4px 16px rgba(0,0,0,0.10);
}

/* ── Afbeelding paneel (links) ── */
.image-panel {
    position: relative;
    flex: 1.1;
    display: none;
}

.image-panel .side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-panel .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(80, 20, 160, 0.30) 0%,
        rgba(30,  0,  80, 0.80) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 36px;
    color: #fff;
}

.image-panel .overlay .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    width: fit-content;
}

.image-panel .overlay h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.image-panel .overlay p {
    font-size: 0.9rem;
    opacity: 0.82;
    line-height: 1.6;
}

/* ── Formulier paneel (rechts) ── */
.form-panel {
    flex: 1;
    padding: 48px 52px;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Logo bovenin formulierpaneel ── */
.form-logo {
    margin-bottom: 28px;
}

.form-logo img {
    height: 56px;
    width: auto;
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    background: #f3f4f8;
    border-radius: 50px;
    padding: 5px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    color: #888;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}

.tab.active {
    background: #fff;
    color: #6d28d9;
    box-shadow: 0 2px 10px rgba(109,40,217,0.15);
}

.tab:not(.active):hover {
    color: #6d28d9;
}

/* ── Koppen & subtekst ── */
.form-panel h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #18181b;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-intro {
    font-size: 0.875rem;
    color: #71717a;
    line-height: 1.55;
    margin-bottom: 4px;
}

.form-intro strong {
    color: #6d28d9;
    font-weight: 600;
}

/* ── Scheidingslijn ── */
.form-divider {
    border: none;
    border-top: 1.5px solid #f0f0f5;
    margin: 20px 0;
}

/* ── Formuliervelden ── */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.register-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3f3f46;
    margin-bottom: 6px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.input-icon-wrap input {
    padding-left: 40px;
}

.register-form input {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #e4e4e7;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #18181b;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.register-form input:focus {
    border-color: #6d28d9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(109,40,217,0.10);
}

.register-form input::placeholder {
    color: #a1a1aa;
}

/* ── Wachtwoord toggle ── */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    color: #a1a1aa;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.password-wrapper .toggle-password:hover {
    color: #6d28d9;
}

/* ── Submit knop ── */
.btn-register {
    margin-top: 6px;
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(109,40,217,0.30);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(109,40,217,0.38);
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(109,40,217,0.25);
}

/* ── Melding banners ── */
.melding-succes {
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 11px 15px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.melding-fout {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 11px 15px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Responsive ── */
@media (min-width: 700px) {
    .image-panel { display: block; }
}

@media (max-width: 699px) {
    .auth-wrapper {
        border-radius: 20px;
        min-height: unset;
    }
    .form-panel {
        padding: 36px 28px;
    }
}

/* ── Legacy: .container en .logo (fallback) ── */
.logo { display: none; }
.container { display: contents; }
