body {
    /*background: url("../../images/boxed-bg-dark.png") repeat fixed;*/
    /*background-color: #0f1419;*/
    /*background-color: #121212;*/
    background-color: #0a1e2a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}


/* Styles généraux */
body.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
}

/* Conteneur du formulaire */
.login-container {
    background: #181a1b;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 350px; /* moins large */
    text-align: center;
    margin: 250px auto 0 auto; /* 250px depuis le haut, centré horizontalement */
}

/* Titre */
.login-container h2 {
    margin-bottom: 30px;
    color: #f1f5f9;
    font-size: 1.8em;
    font-weight: 600;
}

/* Champ du formulaire */
.login-container input {
    width: 100%;
    max-width: 280px; /* limite largeur du fond */
    margin: 0 auto 15px auto;
    padding: 12px 15px;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    background: #f5f7fb; /* couleur rappelant le dashboard */
    transition: border 0.2s, box-shadow 0.2s;
    display: block;
}

.login-container input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 5px rgba(56,189,248,0.5);
}

/* Bouton de connexion */
.login-container button {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    background: #38bdf8;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: block;
    margin: 0 auto;
}

.login-container button:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
}

/* Message d'erreur */
.login-container .error-message {
    color: #f87171;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
}

/* Logo au-dessus du formulaire */
.login-logo {
    width: 150px;              /* Taille du logo */
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 5px rgba(56,189,248,0.3));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

/* ===================================
 * ------ MESSAGES FLOTTANTS ---------
 * =================================== */
.floating-messages-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* Conteneur du message flottant */
.floating-message {
    margin: 10px 0;
    padding: 14px 50px 14px 22px; /* on ajoute un padding-right pour la croix */
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeInDown 0.4s ease-in-out;
}

/* Bouton de fermeture */
.floating-message .close-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 1.4em;                 /* croix plus grande */
    font-weight: 700;                 /* plus épaisse */
    color: rgba(0, 0, 0, 0.4);        /* couleur par défaut, lisible */
    background: rgba(255, 255, 255, 0.6); /* fond clair visible sur toute couleur */
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.floating-message .close-btn:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

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

.floating-message.success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.floating-message.error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.floating-message.info { background: #e0f2fe; color: #075985; border-left: 4px solid #3b82f6; }
.floating-message.warning { background: #fef9c3; color: #92400e; border-left: 4px solid #f59e0b; }