/* Ajout Ethan :  */

/* Ajout Ethan : Revu complète du css */

/* Ajout Ethan :   */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img[alt="Logo"] {
    margin: 20px auto;
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; 
    color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #ffffff; 
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e0e0e0; 
}

/* Titre */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #2c3e50; 
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50; 
}

/* Champs de saisie */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 5px;
    background-color: #ffffff; 
    color: #2c3e50; 
    font-size: 1rem;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #2c3e50; 
    outline: none;
}

/* Bouton de connexion */
button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #2c3e50; 
    border: none;
    border-radius: 5px;
    color: #ffffff; 
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #1a1a2e; 
}

.error-message {
    background-color: #e94560; 
    color: #ffffff; 
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 30px;
    }

    h1 {
        font-size: 1.8rem;
    }

    label {
        font-size: 0.9rem;
    }

    input[type="email"],
    input[type="password"] {
        font-size: 0.9rem;
        padding: 8px;
    }

    button[type="submit"] {
        font-size: 0.9rem;
        padding: 8px;
    }

    .error-message {
        font-size: 0.8rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    label {
        font-size: 0.8rem;
    }

    input[type="email"],
    input[type="password"] {
        font-size: 0.8rem;
        padding: 6px;
    }

    button[type="submit"] {
        font-size: 0.8rem;
        padding: 6px;
    }

    .error-message {
        font-size: 0.7rem;
        padding: 6px;
    }
}