:root {
    --font-family: 'Outfit', sans-serif;
    --primary-color: #0c74ff;
    --primary-hover: #006ce8;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --input-border: #e1e1e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #fff;
    height: 100vh;
    overflow: hidden; /* Voorkom dubbele scrollbars op desktop */
}

.split-screen {
    display: flex;
    height: 100%;
    width: 100%;
}

/* --- LINKER KANT (Visual) --- */
.left-pane {
    flex: 0 0 50%; /* Vaste breedte 40% */
    background: linear-gradient(-45deg, #001932, #0c74ff, #0051b3, #001021);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.white-logo {
    height: 25px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.pane-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

/* De tekst "Integreert naadloos met:" */
.pane-footer span {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 16px;
    font-weight: 500;
}

.partner-icons {
    display: flex;
    flex-wrap: wrap; /* Zorgt dat ze niet buiten beeld vallen op kleine schermen */
    gap: 24px;      /* Iets minder ruimte tussen iconen omdat het er meer zijn */
    font-size: 28px;
    opacity: 0.8;
}

/* Optioneel: Hover effectje voor de iconen */
.partner-icons i {
    transition: opacity 0.2s, transform 0.2s;
}

.partner-icons i:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* --- RECHTER KANT (Formulier) --- */
.right-pane {
    flex: 1; /* Neemt de rest van de ruimte (60%) */
    background-color: #ffffff;
    overflow-y: auto; /* Scrollbaar als het scherm te laag is */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 480px; /* Zorgt dat inputs niet belachelijk breed worden */
    margin: auto;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Inputs Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-family);
    transition: all 0.2s;
    background-color: #fcfcfc;
}

.form-group input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(12, 116, 255, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* Password Toggle */
.password-input-container {
    position: relative;
}

.password-input-container button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-light);
}

.form-check input {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check a {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 500;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

.form-footer-link {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
}

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

.highlight-plan {
    color: var(--primary-color);
}

.alert-error {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* --- PASSWORD STRENGTH METER --- */
.password-strength-container {
    /* Start verborgen */
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0 12px; /* Wel horizontale padding, geen verticale */
    overflow: hidden;
    border: 1px solid #eee; /* Geen border als hij dicht is */
    
    /* Standaard styling */
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    
    /* Soepele animatie voor open/dicht */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* De actieve staat (wordt via JS toegevoegd) */
.password-strength-container.visible {
    max-height: 150px; /* Hoog genoeg voor de content */
    opacity: 1;
    padding: 12px;
}

/* De voortgangsbalk achtergrond */
.strength-bar-bg {
    height: 6px;
    width: 100%;
    background-color: #e1e1e1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* De voortgangsbalk vulling (geanimeerd) */
.strength-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #ff4d4d; /* Start rood */
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* Checklist layout */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.password-requirements li {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.password-requirements li i {
    font-size: 10px;
    opacity: 0; /* Icoon onzichtbaar tot validatie */
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- STATUSSEN (Toegevoegd via JS) --- */

/* Validatie gehaald */
.password-requirements li.valid {
    color: var(--text-dark);
    font-weight: 500;
}

.password-requirements li.valid i {
    opacity: 1;
    transform: scale(1);
    color: #10b981; /* Succes groen */
}

/* Kleuren voor de balk */
.strength-weak { background-color: #ef4444; }   /* Rood */
.strength-fair { background-color: #f59e0b; }   /* Oranje */
.strength-good { background-color: #10b981; }   /* Groen */
.strength-strong { background-color: #059669; } /* Donkergroen */

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    body {
        overflow: auto; /* Scrollen toestaan op mobiel */
        height: auto;
    }

    .split-screen {
        flex-direction: column;
    }

    .left-pane {
        flex: none;
        width: 100%;
        min-height: 200px; /* Kleinere header op mobiel */
        padding: 32px;
    }

    /* Verberg de grote tekst op mobiel om ruimte te besparen, behoud logo */
    .pane-content p, 
    .pane-footer {
        display: none;
    }
    
    .pane-content {
        margin-bottom: 0;
    }
    
    .pane-content h1 {
        font-size: 24px;
        margin-bottom: 0;
    }

    .right-pane {
        flex: none;
        width: 100%;
        padding: 32px 20px;
        height: auto;
    }
}