/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    /* background: url("../assets/background.jpg") no-repeat center center fixed; */
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ===== LOGO EN HAUT À GAUCHE ===== */
.logo-top-left {
    position: absolute;
    top: 20px;
    left: 30px;
}

.logo-top-left img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* ===== CONTENEUR ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

/* ===== CARTE DE CONNEXION ===== */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    padding: 40px 35px;
    text-align: center;
}

/* ===== IMAGE CENTRALE ===== */
.login-image img {
    width: 280px;
    height: auto;
    margin-bottom: 25px;
}

/* ===== CHAMPS DE SAISIE ===== */
.form-group {
    margin-bottom: 18px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #555;
    font-size: 14px;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    font-family: "Courier New", monospace;
}

/* ===== BOUTON LOGIN ===== */
.login-btn {
    width: 100%;
    background-color: #7ec242;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background-color: #5ba22f;
}

/* ===== MESSAGES D'ERREUR ===== */
.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.error-message ul {
    list-style: none;
    text-align: left;
}

.error-message li {
    margin-bottom: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-card {
        max-width: 320px;
        padding: 30px 25px;
    }

    .login-image img {
        width: 240px;
    }

    .logo-top-left img {
        width: 60px;
    }
}

/* ===== ANIMATION ===== */
.login-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}