:root {
    --primary: #d4af37; /* Couleur dorée Bokoko */
    --dark: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.95);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.form-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo img {
    width: 80px;
    margin-bottom: -20px;
}

h2 { color: var(--dark); margin-bottom: 5px; font-weight: 600; }
.subtitle { color: #777; font-size: 0.9em; margin-bottom: 30px; }

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i:not(.toggle-password) {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}

.input-group input:focus {
    border-bottom-color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: #999;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--primary);
    transform: scale(1.02);
}

.footer-links { margin-top: 25px; font-size: 0.9em; color: #555; }
.footer-links a { color: var(--primary); text-decoration: none; font-weight: 600; }

.input-group select{
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}



/*LANGUAGE*/

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: 0.3s;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-switcher i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 14px;
}

.language-switcher select {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none; /* Cache la flèche par défaut */
}

/* Style pour les options (le fond dépend du navigateur) */
.language-switcher select option {
    background: #333;
    color: white;
}


.btn-submit {
    position: relative;
    min-height: 50px; /* Évite que le bouton change de taille */
}

.loader {
    font-size: 20px;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}


/* L'arrière-plan de la modale */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

/* La boîte de dialogue */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    transition: 0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active { display: flex; }
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-icon { font-size: 50px; color: #e74c3c; margin-bottom: 15px; }
.modal-content h3 { margin: 0 0 10px 0; color: #333; }
.modal-content p { color: #666; margin-bottom: 20px; }

.btn-modal {
    background: var(--dark);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-modal:hover { background: var(--primary); }