/* Style général de la page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Conteneur du formulaire de connexion */
.container {
    position: absolute;
    top: 10px; /* Distance du haut de l'écran */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Titre du formulaire */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Message d'erreur */
.error {
    color: #d9534f;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Style du champ de saisie */
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

/* Style du bouton de soumission */
button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Amélioration de l'accessibilité */
input[type="password"]:focus, button:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Style mobile responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 90%;
    }

    h1 {
        font-size: 20px;
    }

    button {
        font-size: 14px;
    }
}
