    .fade-in {
        animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .form-input {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .form-input:focus {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    }
    
    .form-input.error {
        border-color: #EF4444;
        background-color: #FEF2F2;
    }
    
    .btn-login {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn-login:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }
    
    .password-strength {
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        overflow: hidden;
        margin-top: 0.5rem;
    }
    
    .password-strength-bar {
        height: 100%;
        transition: width 0.3s ease;
        border-radius: 2px;
    }
    
    @media (prefers-reduced-motion: reduce) {
        .fade-in, .form-input, .btn-login {
            animation: none;
            transition: none;
        }
    }


    /* ====-- CSS pour le mode sombre --*/
    @media (prefers-color-scheme: dark) {
    .dark-mode {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .dark-mode .bg-white {
        background-color: #2d3748 !important;
        border-color: #4a5568 !important;
    }
    
    .dark-mode .text-gray-900 {
        color: #f7fafc !important;
    }
    
    .dark-mode .text-gray-600 {
        color: #cbd5e0 !important;
    }
    
    .dark-mode .form-input {
        background-color: #4a5568;
        border-color: #6b7280;
        color: #f7fafc;
    }
    
    .dark-mode .form-input:focus {
        border-color: #60a5fa;
        background-color: #374151;
    }
}

.keyboard-navigation *:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}
