/* style_login.css */

body, html {
    margin: 0; 
    padding: 0; 
    height: 100vh; 
    width: 100vw;
    /* Verwijder hier de background: url(...) regel als je wilt dat hij overal transparant kan zijn */
    font-family: 'Century Gothic', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* De verduisterde achtergrond met blur */
.login-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
background: rgba(0, 0, 0, 0.4); /* Iets lichter zodat tiles beter zichtbaar zijn */    backdrop-filter: blur(15px);
backdrop-filter: blur(15px);    display: flex; 
-webkit-backdrop-filter: blur(15px);
    align-items: center; 
    justify-content: center;
}

/* De login box */
.login-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    width: 400px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    position: relative; /* Zorgt dat het icoon binnen de box blijft */
}

.login-box i.main-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

h2 { 
    margin-bottom: 30px; 
    font-weight: normal; 
    letter-spacing: 1px; 
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

label i {
    margin-right: 5px;
}

/* REPARATIE: Alle invoervelden nu met glassmorphism en font-inherit */
input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: 0.3s;
}

/* Zorg dat het kalender-icoon wit is */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.btn-login {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    font-family: inherit; /* VOEG DEZE REGEL TOE */
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.error-msg {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Dropdown opties leesbaar maken */
select option {
    background: #333; 
    color: white;
}

/* Textarea styling */
textarea {
    resize: none;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.input-group label i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001; /* Hoger dan de toast (9999) en de blocker (9998) */
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s;
}

.close-icon:hover {
    color: white;
    transform: scale(1.1);
}

/* Stijl voor ongeldige velden */
.input-error {
    border-color: rgba(231, 76, 60, 0.8) !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
    background: rgba(231, 76, 60, 0.1) !important;
}

/* Optioneel: animatie om de aandacht te trekken */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.2s ease-in-out 0s 2;
}

.success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Vierkant ontwerp */
    width: 250px;
    height: 250px;
    
    /* Glassmorphism & Kleur */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Centreren van icoon en tekst */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 9999;
}

/* Het icoon met de animatie */
.success-toast i {
    color: white !important;
    font-size: 60px;
    margin-bottom: 20px;
    
    /* Animatie uitsluitend op het icoon */
    animation: popInAnim 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.5);
}

/* De tekst binnen de toast */
.success-toast p {
    margin: 0;
    font-weight: bold;
    color: white;
    font-size: 16px;
    line-height: 1.4;
}

@keyframes popInAnim {
    from { 
        opacity: 0; 
        transform: scale(0.5); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Zorg dat de blocker interactie stopt voor het formulier, maar niet voor de hele pagina */
.form-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998; 
    background: transparent;
}

.error-field {
    border: 1px solid #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}