/* 🔹 Animation du fond en dégradé dynamique */
body {
    background: linear-gradient(-45deg, #434343, #2b2b2b, #202020, #111);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🔹 Conteneur avec effet verre dépoli et glow */
.login-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔹 Effet lumineux autour du conteneur */
.login-container:hover {
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.3);
}

/* 🔹 Logo */
.login-logo img {
    width: 90px;
    margin-bottom: 15px;
}

/* 🔹 Titre */
.login-container h1 {
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.login-container p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
}

/* 🔹 Champs avec icônes */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    pointer-events: none;
}

/* 🔹 Effet focus amélioré */
.form-control {
    padding-left: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    height: 45px;
    transition: all 0.3s ease-in-out;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #ffcc00;
    box-shadow: 0px 0px 8px rgba(255, 204, 0, 0.6);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 🔹 Champ mot de passe avec œil */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #bbb;
    pointer-events: auto;
}

/* 🔹 Bouton connexion avec effet néon */
.btn-primary {
    background: linear-gradient(45deg, #ff8008, #ffc837);
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(255, 128, 8, 0.5);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff6000, #ffcc00);
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 128, 8, 0.8);
}

/* 🔹 Alertes */
.alert {
    text-align: left;
    border-radius: 10px;
    color: white;
    background: rgba(255, 0, 0, 0.7);
}

/* 🔹 Texte secondaire */
.small-text {
    font-size: 0.9rem;
    color: #ddd;
}

.login-footer {
    margin-top: 15px;
}

.login-footer a {
    color: white;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}
