/* Modification du body pour le centrage global */
body { 
    font-family: Arial, Helvetica, sans-serif;
    background: url('images/login3.png') no-repeat center center fixed; 
    background-size: cover;
    margin: 0; 
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Conteneur blanc */
.auth-container { 
    width: 90%;
    max-width: 400px; 
    /* Passage à 0.75 pour plus de transparence */
    background: rgba(255, 255, 255, 0.5); 
    
    /* Effet de flou sur l'image derrière le formulaire */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    padding: 40px; 
    border-radius: 15px; /* Arrondi plus doux */
    /* Bordure subtile pour simuler l'épaisseur du verre */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

.auth-container h2 { 
    text-align: center; 
    margin-top: 10px; 
    color: #333;
}

/* Formulaire */
.auth-container form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Champs de texte corrigés */
.auth-container input { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border-radius: 6px; 
    /* Fond blanc très transparent */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.auth-container input:focus {
    /* Devient plus opaque quand on clique dedans pour la lisibilité */
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    border-color: #34495e;
}

/* Bouton corrigé */
.auth-container button { 
    width: 100%; 
    padding: 12px; 
    background: #34495e; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    background: rgba(52, 73, 94, 0.9);
}

.auth-container button:hover {
    background: rgba(52, 73, 94, 1); /* Devient opaque au survol */
}

.auth-container .error { 
    color: red; 
    text-align: center; 
}

.auth-container a { 
    color: #34495e; 
    text-decoration: none; 
}

/* Styles pour le header (si utilisé sur d'autres pages) */
header { 
    background: #34495e; 
    color: white; 
    padding: 1rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logout-btn { 
    color: white; 
    text-decoration: none; 
    background: #e74c3c; 
    padding: 5px 10px; 
    border-radius: 4px; 
}

main { 
    padding: 1rem; 
}

/* ===== LOGO ===== */
.logo {
    display: flex;           /* Flexbox pour centrer horizontalement */
    justify-content: center;
    margin-bottom: 25px;
}

.logo img {
    width: 60%;        /* prend 40% de la largeur du conteneur */
    max-width: 250px;  /* jamais plus grand que 180px */
    min-width: 120px;  /* jamais plus petit que 100px */
    height: auto;      /* garde les proportions */
}

