/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #4a4a4a, #111);
    color: #fff;
}

/* Style du conteneur du formulaire */
.container {
    background: rgba(34, 34, 34, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
    width: 400px;
    text-align: center; /* Centre le texte */
}

/* Animation pour le fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style du titre */
h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #f1f1f1;
}

/* Style des champs de texte */
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 5px;
    outline: none;
    font-size: 1em;
    transition: background 0.3s ease;
}

input[type="email"]:focus, 
input[type="password"]:focus {
    background: #444;
    box-shadow: 0 0 8px 0 rgba(255, 215, 0, 0.7);
}

/* Style du bouton */
button {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 5px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: linear-gradient(135deg, #b8860b, #f5e79e);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

button:active {
    transform: translateY(0);
}



/* Style des labels */
label {
    display: block;
    text-align: left;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #bbb;
}

/* Style des messages d'alerte */
.alert {
    background-color: #ff4c4c; /* Couleur d'arrière-plan rouge */
    color: white; /* Couleur du texte blanc */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Style du footer */
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #f5e79e;
}

/* Amélioration pour petits écrans */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }
}
