/* Style global */
body { 
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #232526, #414345);
    margin: 0;
    color: #333;
}

/* Conteneur principal de connexion */
.login-container {
    background: white;
    padding: 40px;
    width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

/* Logo agrandi */
.logo {
    width: 400px; /* Taille agrandie */
    margin-bottom: 20px;
}

/* Recentrer les champs input */
.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ajustement des champs */
input {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Bouton de connexion */
button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Responsivité */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }

    .logo {
        width: 300px; /* Ajustement pour les petits écrans */
    }
}

/* Titres */
h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Lien discret "Mot de passe oublié ?" */
.forgot-password-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-align: center;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #666;
    text-decoration: underline;
}

/* Message d'erreur en rouge */
.error-message {
    color: red;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}


/* ========== Visualiser le mot de passe ========== */

/* Conteneur du champ de mot de passe */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Assurer la même taille pour tous les champs */
.password-container input,
input[type="text"] {
    width: 100%;
    height: 40px; /* Assurer la même hauteur */
    padding: 10px;
    padding-right: 40px; /* Espace pour l'icône */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Évite que le padding change la taille */
}

/* Icône œil bien positionnée */
.toggle-password {
    position: absolute;
    right: 10px; /* Ajuster l'alignement à droite */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #333;
}
