
.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}
.alert-error {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}


/* 🌌 Mode sombre global */
body {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    padding-top: 0px;
        /* Ajuste selon la hauteur de ta navbar */
    }

    /* Si la navbar est plus grande */
    @media (min-width: 992px) {
        body {
            padding-top: 80px;
        }
    }
/* 📌 Effet Glassmorphism pour les cartes */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-in-out;
}

/* ✨ Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🎨 Champs de saisie */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e0e0;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    border: 1px solid #007bff;
}

/* 🛠 Icônes stylisées */
.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e0e0;
}

/* 🔵 Bouton principal */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

/* 🔴 Bouton de déconnexion */
.btn-danger {
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #b30000;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* 📌 Liens */
.form-text a {
    color: #bbb;
    text-decoration: none;
}

.form-text a:hover {
    text-decoration: underline;
    color: #fff;
}

/* 🔹 Barre de navigation */
.navbar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand, .nav-link {
    color: #e0e0e0 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

/* 📊 Cartes du dashboard */
.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
}

.card-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    color: #e0e0e0;
    transition: transform 0.3s ease-in-out;
}

.card-dashboard:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
/* 🟣 Modal Glassmorphism */
.glass-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

/* ✨ Champs stylisés */
.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e0e0;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    border: 1px solid #007bff;
}

/* 🟢 Animation d'ouverture du modal */
.modal.fade .modal-dialog {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}
/* 🟢 Centrage des cartes */
.login-card,
.glass-card {
    max-width: 400px;
    margin: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

/* 🟢 Boutons larges et modernes */
.btn {
    border-radius: 8px;
}

/* 🛠 Lignes de séparation */
.glass-hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

/* 🔹 Lien "Mot de Passe Oublié ?" */
.form-text a {
    color: #ffc107;
    text-decoration: none;
}

.form-text a:hover {
    text-decoration: underline;
}