/* --- Styles de la page de connexion --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #333;
}

/* Conteneur principal */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre */
.login-container h1 {
    margin-bottom: 1rem;
    color: #2E7D32;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Message d'erreur */
.error-message {
    background: #FFCDD2;
    color: #C62828;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Champs de formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

label {
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    color: #333;
}

/* Champs de saisie */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
    outline: none;
}

/* Bouton de connexion */
button {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #4CAF50, #388E3C);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(90deg, #45A049, #2E7D32);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Bouton en état actif */
button:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
