:root {

    --primary-color: #1a2a1f;

    --secondary-color: #4CAF50;

    --accent-color: #8BC34A;

    --text-color: #E8F5E9;

    --background-color: #0a0f0c;

    --sidebar-width: 250px;

}



body {

    font-family: 'Comfortaa', cursive;

    margin: 0;

    padding: 0;

    color: var(--text-color);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}



#content {

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    padding: 40px;

    margin-left: var(--sidebar-width);
    position: relative;

}



.main-title {

    font-size: 36px;

    color: var(--text-color);

    margin-bottom: 40px;

    text-align: center;

}



.auth-container {

    width: 100%;

    max-width: 400px;

}



.auth-toggle {

    display: flex;

    justify-content: center;

    margin-bottom: 20px;

}



.toggle-btn {

    display: flex;

    background-color: var(--primary-color);

    font-family: 'Comfortaa', cursive;

    color: var(--text-color);

    border: none;

    padding: 10px 20px;

    font-size: 16px;

    cursor: pointer;

    transition: background-color 0.3s ease;

    border-radius: 5px;

    margin-right: 5px;

    margin-left: 5px;

    border: 1px solid #1a2a1f;

    border-bottom: 4px solid #636363;

    transition: 0.3s;

    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);

}



.toggle-btn:hover {

    box-shadow: 0 0 rgba(0, 0, 0, 0.4);

    border-bottom-width: 2px;

    transform: translateY(2px);

}



.toggle-btn.active {

    background-color: var(--secondary-color);

    color: var(--primary-color);

    transition: background-color 0.3s ease;

    border: 1px solid #1a2a1f;

    border-bottom: 4px solid #005c1c;

    transition: 0.3s;

    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);

    transform: translateY(2px);

}



.auth-form {

    background-color: rgba(26, 42, 31, 0.95);

    padding: 40px;

    border-radius: 15px;

    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.1);

    display: none;

    border: 1px solid rgba(76, 175, 80, 0.2);

}



.auth-form.active {

    display: block;

}



.auth-form h2 {

    color: var(--secondary-color);

    font-size: 24px;

    margin-bottom: 20px;

    text-align: center;

}



.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    margin-bottom: 5px;

    color: var(--text-color);

}



.form-group input {

    width: 100%;

    padding: 10px;

    border: 1px solid var(--accent-color);

    background-color: rgba(255, 255, 255, 0.1);

    color: var(--text-color);

    border-radius: 5px;

}



.form-group input:focus {

    outline: none;

    border-color: var(--secondary-color);

}



.submit-btn {

    font-family: 'Comfortaa', cursive;

    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));

    color: var(--primary-color);

    padding: 10px 20px;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

    transition: all 0.3s ease;

    width: 100%;

}



.submit-btn:hover {

    opacity: 0.9;

}

.forgot-btn {

    font-family: 'Comfortaa', cursive;

    background: linear-gradient(135deg, #FF6F61, #FFA500);

    color: var(--primary-color);

    margin-top: 15px;
    ;

    padding: 10px 20px;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

    transition: all 0.3s ease;

    width: 100%;

}



.forgot-btn:hover {

    opacity: 0.9;

}





/* Notification existante succès ou erreur enregistrement */

.error {

    color: #721c24;

    background-color: #f8d7da;

    border: 1px solid #f5c6cb;

    padding: 10px;

    margin-bottom: 15px;

    border-radius: 4px;

}



.success {

    color: #155724;

    background-color: #d4edda;

    border: 1px solid #c3e6cb;

    padding: 10px;

    margin-bottom: 15px;

    border-radius: 4px;

}



/* Positionner le bouton "œil" à droite de l'input sans toucher à la structure HTML */

.form-group {

    position: relative;
    /* Positionner l'icône par rapport à ce conteneur */

}



#login-password {

    width: 100%;

    padding-right: 40px;
    /* Laisser de la place pour l'icône */

}



/* Appliquer le style à tous les champs de mot de passe */

.password-input {

    width: 100%;

    padding-right: 40px;
    /* Laisser de la place pour l'icône */

}



.toggle-password {

    position: absolute;

    right: 10px;

    top: 72%;

    transform: translateY(-50%);

    background: none;

    border: none;

    cursor: pointer;

    color: var(--text-color);
    /* Utilise votre palette de couleurs existante */

    font-size: 18px;

    padding: 0;

    z-index: 10;
    /* S'assure que l'icône est au-dessus de l'input */

}



/* Appliquer le style à tous les champs de mot de passe */

.password-input {

    width: 100%;

    padding-right: 40px;
    /* Laisser de la place pour l'icône */

}



input {

    font-family: 'Comfortaa', cursive;

}



/* Adapter le style de la checkbox sur la page d'inscription */

.form-group input[type="checkbox"] {

    display: none;

}

/* Réinitialisation des styles pour les liens */
a {
    color: #8bc34a;
    text-decoration: underline;
    cursor: pointer;
}

a:hover {
    color: #7cb342;
    text-decoration: underline;
    cursor: pointer;
}

.form-group .checkbox-container {

    display: inline-block;

    width: 20px;

    height: 20px;

    background-color: var(--primary-color);

    border: 2px solid var(--secondary-color);

    border-radius: 4px;

    cursor: pointer;

    position: relative;

    transition: all 0.3s ease;

}



.form-group .checkbox-container:hover {

    background-color: rgba(76, 175, 80, 0.1);

}



/* Style lorsque la case est cochée */

.form-group input[type="checkbox"]:checked+.checkbox-container {

    background-color: var(--secondary-color);

}



.form-group input[type="checkbox"]:checked+.checkbox-container::after {

    content: '\2714';
    /* Symbole de coche */

    font-size: 14px;

    color: var(--primary-color);

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

}

/*//////////////////////////////////////////////// NOTIFICATION PERSONNALISE //////////////////////////////*/

.custom-notification {

    right: 0;

    bottom: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 1001;

    transition: opacity 0.3s ease, visibility 0.3s ease;

    opacity: 0;

    visibility: hidden;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}



.custom-notification.show {

    opacity: 1;

    visibility: visible;

}



.notification-content {

    background-color: #1a2a1f;

    border-radius: 8px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    padding: 20px;

    max-width: 80%;

    width: 400px;

    position: relative;

    font-family: 'Comfortaa', sans-serif;

    border: 1px solid rgba(76, 175, 80, 0.2);

    /*display: flex;

    justify-content: center;*/
    border-top: 4px solid #f44336;

    border-bottom: 4px solid #f44336;

    border-left: 4px solid #f44336;

    border-right: 4px solid #f44336;

    text-align: center;

}



.notification-content i {

    margin-right: 10px;

    font-size: 20px;

    color: #ffffff;

}



.notification p {

    margin: 0;

    padding-right: 20px;

    color: #ffffff;

    font-size: 16px;

    text-align: center;

}



.custom-notification button {

    background: transparent;

    border: none;

    color: #999;

    font-size: 24px;

    font-weight: bold;

    position: absolute;

    right: 10px;

    top: 10px;

    cursor: pointer;

    transition: color 0.3s ease;

}



.custom-notification button:hover {

    color: #333;

}

/* Overlay qui couvre toute la page */
.custom-overlay {
    display: none; /* Caché par défaut */
    position: fixed; /* Couvre toute la page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 1000;
}

/* Lorsque la notification s'affiche, on montre aussi l'overlay */
.custom-overlay.show {
    display: block;
}


/*//////////////////////////////// FIN NOTIF //////////////////////////*/



@media (max-width: 768px) {

    .auth-container {

        width: 90%;

    }

    #content {

        margin-left: 0;

    }

}