/* ===== PAGE LOGIN - PLEIN ÉCRAN ===== */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Gradients animés de fond (comme sur le reste du site) */
.login-page::before,
.login-page::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.login-page::before {
    background: radial-gradient(circle, rgb(0, 71, 177), #00ccff);
    top: -200px;
    left: -200px;
    animation: float1 20s ease-in-out infinite;
}

.login-page::after {
    background: radial-gradient(circle, rgb(0, 45, 136), #0088ff);
    bottom: -200px;
    right: -200px;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 60px) scale(1.15); }
    66% { transform: translate(60px, -80px) scale(0.95); }
}

/* ===== CONTAINER ===== */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(100, 120, 150, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* ===== LOGO ===== */
.logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.3));
}

/* ===== MESSAGES ===== */
.error,
.success,
.warning {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.warning {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

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

/* ===== SECTIONS FORMULAIRE ===== */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== TITRE ===== */
.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 600;
    color: #e0f2fe;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GROUPES DE FORMULAIRE ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Conseil de sécurité discret */
.security-tip {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    opacity: 0.8;
}

/* ===== INPUTS ===== */
.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 120, 150, 0.3);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-input::placeholder {
    color: #64748b;
}

/* ===== INDICATEUR DE FORCE MOT DE PASSE ===== */
.password-requirements {
    margin-top: 8px;
    font-size: 12px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    color: #94a3b8;
    transition: color 0.2s;
}

.requirement.valid {
    color: #4ade80;
}

.requirement.invalid {
    color: #f87171;
}

.requirement-icon {
    width: 14px;
    height: 14px;
}

/* ===== BOUTONS ===== */
.form-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.form-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.form-button:active:not(:disabled) {
    transform: translateY(0);
}

.form-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== TOGGLE ===== */
.form-toggle {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 14px;
}

.form-toggle a {
    color: #38bdf8;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.form-toggle a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .login-container {
        max-width: 90%;
        padding: 30px 24px;
    }

    .login-logo {
        width: 100px;
    }

    .form-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .login-logo {
        width: 90px;
        margin-bottom: 24px;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 13px;
    }

    .security-tip {
        font-size: 11px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 12px;
    }

    .form-button {
        padding: 10px 16px;
        font-size: 12px;
    }
}