/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f4f4f4;
}

.container {
    width: 95%;
    max-width: 400px;
    text-align: center;
}

.logo img {
    max-width: 150px;
    margin-bottom: 10px;
}

.form-box {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
}

.form-slider {
    display: flex;
    width: 200%;
    transition: transform 0.5s ease-in-out;
}

.form {
    width: 50%;
    padding: 40px;
    box-sizing: border-box;
}

h2 {
    font-size: 24px;
    color: #4b0082;
    margin-bottom: 20px;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box input {
    width: 100%;
    padding: 12px;
    padding-left: 35px; /* Espace pour l'icône à gauche */
    padding-right: 30px; /* Espace pour l'icône à droite (oeil) */
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-box i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    z-index: 1;
}

.input-box input:focus {
    border-color: #4b0082;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #ffd700;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6b800;
}

.toggle {
    margin-top: 10px;
    color: #333;
}

.toggle span {
    color: #4b0082;
    cursor: pointer;
    font-weight: bold;
}

/* boite d'alerte */
.custom-alert {
    display: none; /* Masquer par défaut */
    position: fixed; /* Changement pour un positionnement plus fiable */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Toujours au-dessus */
}

.alert-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Pour positionner correctement le bouton de fermeture */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

#alert-ok-btn {
    background: #4b0082; /* Couleur du bouton */
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

#alert-ok-btn:hover {
    background: #45a049;
}

#alert-message {
    margin: 20px 0;
}
/* fin boîte d'alerte */

/* checkbox */
.checkbox-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #333;
    max-width: 100%;
}

.checkbox-box input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: #800080;
}

.checkbox-box label {
    flex: 1;
    line-height: 1.4;
}

.checkbox-box a {
    color: #800080;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-box a:hover {
    text-decoration: underline;
}
/* fin checkbox */

/* Style pour l'oeil de mot de passe */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px; /* Position à droite */
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    z-index: 10; /* Pour être au-dessus de la bordure */
}

.toggle-password:hover {
    color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    .form {
        width: 100%; /* Each form takes full width on smaller screens */
    }
}