.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* Vult scherm minus nav/footer */
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--white) 0%, #f0fff0 100%); /* Zachte groene gloed onderin */
}

/* 2. Tekst & Koppen */
.form-container h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--dark-text);
    letter-spacing: -0.5px;
}

.form-container p {
    color: var(--medium-text);
    margin-bottom: 35px;
    font-size: 1rem;
}

/* 3. Formulier Elementen */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    text-align: left;
}

.input-group i {
    color: var(--dark-text);
}
.full-width {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* 5. Wisselen tussen Login/Register */
.auth-switch {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--medium-text);
}

.auth-switch a {
    color: var(--bright-green);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.auth-switch a:hover {
    border-bottom: 2px solid var(--bright-green);
}

/* 6. Utility Classes */
.hidden {
    display: none;
}

/* 7. Mobiele Aanpassingen */
@media (max-width: 480px) {
    .auth-box {
        padding: 40px 25px;
        box-shadow: none; /* Cleaner op mobiel */
        border: none;
        background: transparent;
    }

    .auth-container {
        background: var(--white);
        align-items: flex-start;
    }
}

/* De container van de taalselectie */
.lang-foldable {
    width: 100%;
    display: block;
}

/* DE CRUCIALE STAP: De lijst mag niet 'zweven' */
.lang-dropdown-list {
    position: relative; /* Dit zorgt ervoor dat de lijst de kaart langer maakt */
    top: 0;
    left: 0;
    width: 100%;
    background: #f9f9f9; /* Lichtgrijze achtergrond voor contrast */
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px;
    box-shadow: none; /* Geen schaduw nodig omdat het in de kaart zit */
    z-index: 1;
}

/* Styling voor de rijen in de lijst */
.lang-option-row {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 5px;
}

.lang-option-row:hover {
    background-color: #f0f0f0;
}

.lang-option-row input[type="radio"] {
    margin-right: 12px;
}

/* Verwijder de standaard animatie van details als die in de weg zit */
details[open] .lang-dropdown-list {
    display: flex;
    flex-direction: column;
}
/* 1. De basis: de body wordt een flex-kolom die minimaal het hele scherm vult */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* 2. De container: flex: 1 zorgt dat deze alle ruimte inneemt en de footer omlaag duwt */
.auth-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 150px;
    min-height: auto;
    background: var(--light-bg);
    box-sizing: border-box;
}
.custom-modal {
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(4px); /* Maakt de achtergrond wazig, erg chic! */
}

/* 3. De kaart: volledig flexibel in hoogte */
.auth-box-centered {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f2f5;
    position: relative;
    height: auto;        /* Laat de kaart groeien bij meer inhoud */
    overflow: visible;   /* CRUCIAAL: laat de dropdown de kaart fysiek groter maken */
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

/* 4. De dropdown: relative zorgt dat hij fysiek ruimte inneemt in de kaart */
.lang-dropdown-list {
    position: relative;  /* DIT DRUKT DE REST VAN DE KAART EN DE PAGINA OMLAAG */
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    z-index: 1;
}

/* 5. De footer: margin-top: auto zorgt dat hij aan de bodem 'plakt' */
.main-footer {
    margin-top: auto;    /* Duwt de footer naar de absolute bodem van de body */
    width: 100%;
    position: relative;
    background: white;
    z-index: 10;
}

/* 6. Animatie voor het soepele verschijnen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-dropdown-list {
    /* ... je bestaande code ... */
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container {
    padding: 50px 40px;
}

.form-container.hidden {
    display: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #f9f9f9;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--bright-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.1);
}

.btn-primary-editorial {
    width: 100%;
    padding: 16px;
    background: var(--bright-green);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary-editorial:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.auth-switch a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

/* De zwevende terugknop */
.back-btn-float {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.back-btn-float:hover {
    transform: translateX(-5px);
}
/* Wachtwoord oogje */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input { padding-right: 45px; }
.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Logout knop styling */
.btn-logout-editorial {
    width: 100%;
    padding: 16px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Error Toast Styling (in global.css) */
.bright-toast.error {
    border-left: 4px solid #ff4757;
    background: #fffafa;
}
/* Wachtwoord wrapper voor het oogje */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px; /* Ruimte voor het oogje */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
}

/* De brede 'Back to Home' knop */
.btn-back-full {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-back-full:hover {
    background: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Logout knop rood accent */
.btn-logout-editorial {
    width: 100%;
    padding: 16px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout-editorial:hover {
    background: #ff2e44;
}
.forgot-password {
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
}

.forgot-password a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #000;
}
.btn-back-minimal {
    background: transparent;
    border: none;
    color: #888;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.btn-back-minimal:hover {
    color: #000;
}

.top-nav-alignment {
    width: 100%;
    max-width: 1200px; /* Match dit met je navigatie-breedte */
    display: flex;
    justify-content: flex-start; /* Knop naar links */
    padding: 0 20px;
    margin: 3rem auto 0 auto;

}

/* De Oude Opmaak: Witte Pill-button met schaduw */
.btn-back-pill {
    background: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* De diepte die je mooi vond */
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-back-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.btn-primary-editorial {
    background: var(--bright-green); /* Jouw variabele uit de CSS */
    color: white;
    border-radius: 50px;
    padding: 16px;
    border: none;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

/* De 'Pill' knop opmaak */
.back-btn-pill {
    background: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.back-btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Zorg dat de navigatie-container de knop links uitlijnt */
.top-nav-alignment {
    display: flex;
    justify-content: flex-start;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.btn-upgrade-premium {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

.btn-upgrade-premium:hover {
    transform: scale(1.02);
}

.status-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.status-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

#upgrade-section p {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
    margin: 15px 0;
}
.status-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    margin: 25px 0;
    border: 1px solid #f0f2f5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    text-align: center;
}

.status-info {
    text-align: center;
    margin-bottom: 20px;
}

.status-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 700;
}
.badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.badge-free {
    background: #f4f6f8;
    color: #555;
    border: 1px solid #e1e4e8;
}

.badge-premium {
    background: linear-gradient(135deg, #fff9db 0%, #fff3bf 100%);
    color: #947600;
    border: 1px solid #ffe066;
    box-shadow: 0 4px 15px rgba(255, 224, 102, 0.3);
}

/* Upgrade Sectie */
.upgrade-promo {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.upgrade-promo p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 15px;
}
.toggle-password {
    cursor: pointer;
    user-select: none; /* Voorkomt dat je de emoji per ongeluk selecteert */
}
.discount-section {
    margin-top: 30px;
    padding: 25px 25px 0 25px;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    border-radius: 20px;
    text-align: center;
}

.promo-input-group {
    display: flex;
    gap: 10px;
    text-align: center;
    max-width: 400px;
    margin: 15px auto;
}

.promo-input-group input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    font-size: 1rem;
}

#apply-promo-btn {
    background: #000;
    width: 100%;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#apply-promo-btn:hover {
    background: var(--bright-green);
    transform: translateY(-2px);
}
.promo-input-group {
    display: flex;
    flex-direction: column; /* Dit zet de knop ONDER het vakje */
    gap: 15px;              /* Ruimte tussen het vakje en de knop */
    max-width: 350px;       /* Iets smaller voor een chique look */
    margin: 20px auto;      /* Centreren in het midden */
}
/* Container styling */
.lang-foldable {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    position: relative;
}

/* De bovenste balk (Summary) */
.lang-foldable summary {
    padding: 14px 20px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

/* Verberg het standaard driehoekje van de browser */
.lang-foldable summary::-webkit-details-marker { display: none; }
.lang-text {
    padding-left: 20px;
}

.lang-option-row {
    display: flex;
    align-items: center;
    padding: 12px 28px 12px 28px;
    cursor: pointer;
    transition: background 0.2s, padding-left 0.2s; /* Subtiele animatie bij hover */
}

/* Verberg de radio-bolletjes voor de nav-look */
.lang-option-row input[type="radio"] {
    display: none;
}

.lang-text {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    text-transform: none; /* Forceert normale tekst (geen hoofdletters) */
}

/* Hover effect: precies zoals in je navigatie */
.lang-option-row:hover {
    background-color: #f5f5f5;
    padding-left: 32px;
}

.lang-option-row:hover .lang-text {
    color: var(--bright-green); /* Of de kleur van je nav-links */
}

/* Geselecteerde staat (optioneel, voor visuele feedback) */
.lang-option-row:has(input:checked) {
    background-color: #fafafa;
}

.lang-option-row:has(input:checked) .lang-text {
    font-weight: 700;
    color: #000;
}
#selected-lang-label {
    text-transform: none;
    font-weight: 500;
}
.btn-cancel {
    width: 100%;
    padding: 16px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.btn-cancel:hover {
    background: #ff4444;
    color: white;
}
