* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

/* Image de fond par défaut (Pinterest) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/1200x/47/da/2d/47da2d09a9bb2394dd764adc789ab193.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.05);
    z-index: -1;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    padding: 20px;
}

/* --- STYLE DU LOGO --- */
.logo-corner {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 180px;
    height: auto;
    z-index: 1000;
}

@media (max-width: 768px) {
    .logo-corner {
        width: 120px;
        top: 20px;
        left: 20px;
    }
}
/* -------------------- */

.login-container {
    width: 100%;
    max-width: 480px;
    background: rgba(30, 38, 51, 0.85);
    color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative; /* Pour gérer le z-index par rapport au logo si besoin */
    z-index: 1;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bff;
    display: inline-block;
}

.description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

/* Icônes de gauche (enveloppe, cadenas) */
.input-group i:not(.toggle-password) {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 16px;
    pointer-events: none;
}

/* Icône de droite (Oeil) */
.input-group i.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}
.input-group i.toggle-password:hover {
    color: #fff;
}

.input-group .fa-check-circle {
    right: 15px;
    left: auto;
    color: #28a745;
    display: none;
}

.input-field {
    width: 100%;
    padding: 14px 20px 14px 45px; /* Padding standard */
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #555555;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Padding spécifique pour le mot de passe pour éviter l'oeil */
#password {
    padding-right: 45px; 
}

.input-field::placeholder { color: #999999; }

.input-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #cccccc;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
    accent-color: #007bff;
}

.btn-primary {
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover { background: #0056b3; }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999999;
    margin-bottom: 25px;
    font-size: 14px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #555555;
}

.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }

.links {
    text-align: center;
    font-size: 14px;
}

.links a { color: #cccccc; text-decoration: none; }
.links a:hover { text-decoration: underline; }

.links .contact-admin { margin-top: 20px; color: #999999; }
.links .contact-admin a { color: #ffffff; font-weight: 500; }

/* Masquer la flèche par défaut de la datalist */
input::-webkit-calendar-picker-indicator { display: none !important; }

      * { margin: 0; padding: 0; box-sizing: border-box; }
        body, html { height: 100%; }

        /* IMAGE DE FOND PAR DÉFAUT (Montagne Pinterest) */
        body::before {
            content: "";
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-image: url('https://i.pinimg.com/1200x/47/da/2d/47da2d09a9bb2394dd764adc789ab193.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            filter: blur(2px);
            transform: scale(1.05);
            z-index: -2; 
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: 'Inter', sans-serif;
            height: 100vh;
            padding: 20px;
        }

        /* --- STYLE DU LOGO CORRIGÉ --- */
        .logo-corner {
            position: fixed;
            top: 30px;
            left: 30px;
            width: 180px; /* J'ai légèrement agrandi pour la lisibilité */
            height: auto;
            z-index: 1000;
        }

        @media (max-width: 768px) {
            .logo-corner {
                width: 120px;
                top: 20px;
                left: 20px;
            }
        }
        /* ------------------------------- */

        .login-container {
            width: 100%;
            max-width: 480px;
            background: rgba(30, 38, 51, 0.85);
            color: #fff;
            border-radius: 20px;
            padding: 40px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative;
            z-index: 1;
        }

        .title-container { text-align: center; margin-bottom: 30px; }

        .login-container h1 {
            font-size: 26px;
            font-weight: 700;
            padding-bottom: 10px;
            border-bottom: 3px solid #007bff;
            display: inline-block;
        }

        .input-group { position: relative; margin-bottom: 20px; }
        
        .input-group i.fa-user, 
        .input-group i.fa-envelope, 
        .input-group i.fa-lock { 
            position: absolute; 
            left: 15px; 
            top: 50%; 
            transform: translateY(-50%); 
            color: #999; 
            font-size: 16px; 
            pointer-events: none;
        }

        .input-group i.toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 16px;
            cursor: pointer;
            z-index: 10;
        }
        .input-group i.toggle-password:hover { color: #fff; }

        .input-field {
            width: 100%;
            padding: 14px 45px 14px 45px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid #555;
            border-radius: 8px;
            color: #fff;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .input-field::placeholder { color: #999; }
        .input-field:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.25); }

        .password-hint {
            display: block;
            font-size: 12px;
            color: #aaa;
            margin-top: -15px;
            margin-bottom: 10px;
            padding-left: 5px;
            line-height: 1.4;
        }

        .strength-meter {
            height: 5px;
            width: 100%;
            background: #333;
            margin-top: 5px;
            margin-bottom: 15px;
            border-radius: 5px;
            overflow: hidden;
            display: none;
        }
        .strength-bar {
            height: 100%;
            width: 0%;
            transition: all 0.3s ease;
        }

        .error-message {
            color: #ffadad;
            font-size: 13px;
            text-align: left;
            margin-top: -5px;
            margin-bottom: 15px;
            display: none;
            font-weight: 500;
        }

        .btn-primary {
            background: #007bff;
            color: #fff;
            border: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s;
            width: 100%;
            margin-top: 10px;
        }
        .btn-primary:hover { background: #0056b3; }

        .links {
            text-align: center;
            font-size: 14px;
            margin-top: 25px;
        }
        .links a { color: #ccc; text-decoration: none; font-weight: 500; }
        .links a:hover { text-decoration: underline; }
        .links p { color: #999; }

        input::-webkit-calendar-picker-indicator { display: none !important; }