/* Ajout Ethan :  */

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

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

img[alt="Logo"] {
    margin: 24px auto 16px auto;
    max-width: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.10);
    display: block;
    background: #fff;
    padding: 8px;
}

/* Harmonisation avec le style général du projet */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #eaf6fb 0%, #0f3460 100%);
    color: #222831;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background 0.5s;
}

body.standalone {
    background: linear-gradient(120deg, #eaf6fb 0%, #0f3460 100%);
}

body.standalone, html.standalone {
    overflow-x: hidden !important;
}

.container {
    background-color: #fff;
    padding: 48px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(15, 52, 96, 0.12), 0 2px 8px rgba(34, 40, 49, 0.05);
    width: 100%;
    max-width: 400px;
    border: none;
    animation: fadeInUp 0.7s cubic-bezier(.39,.575,.565,1.000);
    transition: box-shadow 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre */
h1 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 2.2rem;
    color: #0f3460;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0f3460;
    letter-spacing: 0.5px;
}

/* Champs de saisie */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 22px;
    border: 1px solid #0f3460;
    border-radius: 8px;
    background-color: #f5faff;
    color: #222831;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.05);
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px #1976d2;
}

/* Bouton de connexion */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #1976d2 0%, #0f3460 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.10);
    transition: background 0.3s, box-shadow 0.3s;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #0f3460 0%, #1976d2 100%);
    box-shadow: 0 4px 16px rgba(15, 52, 96, 0.15);
}

.error-message {
    background-color: #1976d2;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 22px;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.08);
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 24px 12px;
    }
    h1 {
        font-size: 1.7rem;
    }
    label {
        font-size: 1rem;
    }
    input[type="email"],
    input[type="password"] {
        font-size: 1rem;
        padding: 10px;
    }
    button[type="submit"] {
        font-size: 1rem;
        padding: 10px;
    }
    .error-message {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 12px 4px;
    }
    h1 {
        font-size: 1.3rem;
    }
    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;
    }
}