/* ===== PAGE LOGIN ILLUM'TOUD ===== */

/* Fond identique à l'accueil */
body {
    background: #112338;
    overflow: hidden;
    height: 100dvh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(16,73,116,0.4), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(16,73,116,0.3), transparent 60%),
                linear-gradient(135deg, #112338, #0c1a2b);
    filter: blur(20px);
    z-index: 0;
}

body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(17,35,56,0.9), rgba(16,73,116,0.7));
    z-index: 1;
}

/* Centrage global */
.site-wrapper {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 420px;
}

/* Logo — même effet lumineux que l'accueil */
.login-logo {
    width: 360px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(240,244,248,0.6));
    animation: float 4s ease-in-out infinite;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.login-content h1 {
    color: white;
    font-size: 1.6rem;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Carte formulaire */
.login-container {
    flex: none;
    background: rgba(255,255,255,0.95);
    padding: 35px 40px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    box-sizing: border-box;
}

.login-container p {
    margin: 0 0 15px;
    text-align: left;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

.login-container input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.login-container button:hover {
    background: #778da9;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Responsive tablette */
@media (max-width: 1000px) {
    .login-logo { width: 300px; }
}

/* Responsive mobile */
@media (max-width: 480px) {
    .login-logo { width: 240px; }
    .login-content h1 { font-size: 1.2rem; }
    .login-container { padding: 25px 20px; }
    .login-container button { font-size: 16px; }
    .login-wrapper { gap: 15px; }
}

/* Message d'erreur */
.login-error {
    background: rgba(239, 71, 111, 0.15);
    border: 1px solid rgba(239, 71, 111, 0.5);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.login-error p {
    margin: 0;
    color: #ef476f;
    font-size: 0.9em;
    font-weight: 500;
}
