:root {
    --primary: #007bff;
    --secondary: #00c6ff;
    --dark-bg: #0f172a;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

/* --- MODIFICATION DU BODY POUR ENLEVER LE FONCÉ --- */
body, html {
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* On remplace le radial-gradient sombre par une couleur plus unie ou plus claire */
    background: #1e293b; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* SHAPES AGRANDIES */
.shape { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(100px); /* Un flou plus large pour accompagner la taille */
    opacity: 0.2;        /* Légèrement plus visible */
    z-index: -1; 
}

.shape-1 { 
    width: 650px;        /* Augmenté (était ~400px) */
    height: 650px; 
    background: #007bff; /* Ta couleur primary */
    top: -200px; 
    left: -150px; 
}

.shape-2 { 
    width: 550px;        /* Augmenté (était ~300px) */
    height: 550px; 
    background: #00c6ff; /* Ta couleur secondary */
    bottom: -150px; 
    right: -100px; 
}


/* La carte reste inchangée pour garder son effet de verre */
.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 25px 45px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Logo plus petit */
.brand-logo { text-align: center; margin-bottom: 12px; }
.brand-logo img { width: 80px; filter: drop-shadow(0 0 10px rgba(0,123,255,0.4)); }

/* Titre réduit */
.login-title { text-align: center; color: white; margin-bottom: 15px; }
.login-title h2 { font-weight: 700; font-size: 1.8rem; margin: 0; }
.login-title p { font-size: 0.85rem; opacity: 0.6; margin-top: 5px; }
.brand-logo img {
    transform: translateY(15px); /* Déplace le logo de 15px vers le bas */
    width: clamp(70px, 9vh, 95px);
    filter: drop-shadow(0 0 10px rgba(0,123,255,0.4));
}

/* Sélecteur de rôle compact */
.select-role { display: flex; gap: 12px; margin-bottom: 15px; }
.role-option { flex: 1; position: relative; }
.role-option input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.role-label {
    display: flex; flex-direction: column; align-items: center; padding: 12px;
    background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px; color: white; transition: 0.3s; font-size: 0.9rem;
}
.role-label i { font-size: 1.3rem; margin-bottom: 5px; }

#admin:checked + .role-label { background: rgba(40, 167, 69, 0.15); border-color: #28a745; color: #28a745; }
#user:checked + .role-label { background: rgba(253, 126, 20, 0.15); border-color: #fd7e14; color: #fd7e14; }

/* Champs de saisie */
.input-group { position: relative; margin-bottom: 12px; }
.input-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.form-control {
    width: 100%; padding: 12px 15px 12px 48px; background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-size: 0.95rem;
}

/* --- MODIFICATIONS CIBLÉES POUR LES OPTIONS ET LE BOUTON --- */
/* Empilement vertical des options */
.options-row {
    display: flex;
    flex-direction: column; /* Force l'affichage l'un sous l'autre */
    gap: 12px;              /* Espace entre les deux lignes */
    margin-bottom: 25px;
    align-items: flex-start; /* Aligne à gauche */
}

/* Style de la ligne "Se souvenir" */
.remember-me {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Style de la ligne "Mot de passe oublié" */
.forgot-link a {
    color: #00c6ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.forgot-link a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.options-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: rgba(255,255,255,0.7); 
    font-size: 0.85rem; 
    margin-bottom: 20px; /* Espace équilibré avant le bouton */
    width: 100%;
}

.options-row label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre la case et le texte */
}

/* Style de la case à cocher (checkbox) */
.options-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary); /* Donne la couleur bleue du thème à la case */
    cursor: pointer;
}

.options-row a { 
    color: var(--secondary); 
    text-decoration: none; 
    transition: 0.3s;
}

.options-row a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}
/* --- Bloc Options (Empilement vertical) --- */
.options-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    padding-left: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: #00c6ff; /* Couleur de la case */
}

.forgot-link a {
    color: #00c6ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.forgot-link a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* --- Bouton --- */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
}


/* BOUTON RECENTRÉ ET PROPRE */
.btn-login {
    display: block;
    width: 80%; /* Largeur un peu plus grande pour l'équilibre */
    max-width: 320px;
    margin: 0 auto; /* Centre le bouton parfaitement */
    padding: 14px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.btn-login:hover { 
    transform: translateY(-2px); 
    filter: brightness(1.1);
    box-shadow: 0 12px 25px rgba(0,123,255,0.4);
}

/* Ajustement pour les icônes à l'intérieur du bouton */
.btn-login i {
    margin-left: 8px;
    font-size: 0.9rem;
}


/* Footer Copyright discret */
.footer-copyright { text-align: center; margin-top: 15px; color: rgba(255,255,255,0.3); font-size: 0.7rem; line-height: 1.3; }
.footer-copyright span { color: var(--secondary); font-weight: 500; }
