/* --- RESET ET BLOCAGE DU SCROLL --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Empêche l'écran blanc au scroll */
    font-family: 'Inter', sans-serif;
    background-color: #050a15; 
}

/* --- LA VIDÉO EN ARRIÈRE-PLAN --- */
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Remplit tout l'écran */
    z-index: 1;
}

/* --- FILTRE SUR LA VIDÉO --- */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(2, 8, 20, 0.7) 0%, rgba(13, 110, 253, 0.2) 100%);
    z-index: 2;
}

/* --- CONTENEUR POUR CENTRER LE FORMULAIRE --- */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    display: flex; /* LA LIGNE QUI TE MANQUAIT POUR CENTRER */
    align-items: center;
    justify-content: center;
}

/* --- DESIGN DU RECTANGLE (GLASSMORPHISM) --- */
.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 20px;
    
    /* L'effet de verre dépoli */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.brand-color {
    color: #48cae4; 
    letter-spacing: 1px;
}

.text-muted { color: rgba(255,255,255,0.6) !important; }

/* --- CHAMPS DE SAISIE --- */
.input-group-text {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: #48cae4;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    color: #ffffff;
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.3); }

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #48cae4;
    box-shadow: 0 0 10px rgba(72, 202, 228, 0.3);
    color: #ffffff;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control { border-color: #48cae4; }

/* --- BOUTON DE CONNEXION --- */
.btn-primary-custom {
    background: linear-gradient(90deg, #0096c7, #0077b6);
    border: none;
    color: white;
    border-radius: 10px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 150, 199, 0.4);
}

.btn-primary-custom:hover {
    background: linear-gradient(90deg, #48cae4, #0096c7);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.6);
    transform: translateY(-2px);
    color: white;
}

/* --- ICÔNE --- */
.icon-container {
    width: 65px;
    height: 65px;
    background: rgba(0, 150, 199, 0.2);
    border: 2px solid #48cae4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #48cae4;
    box-shadow: 0 0 15px rgba(72, 202, 228, 0.3);
}

/* --- ANTI-FOND BLANC AUTOFILL CHROME --- */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(5, 10, 21, 0.8) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}