/* ============================================
   CocheServices Login - Custom Animations
   ============================================ */

/* Floating animation for background shapes */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

.bg-shape {
    animation: float 20s ease-in-out infinite;
}

.bg-shape-1 {
    animation-delay: 0s;
}

.bg-shape-2 {
    animation-delay: -5s;
}

.bg-shape-3 {
    animation-delay: -10s;
}

/* Slide up animation for card entrance */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out;
}

/* Shake animation for error alerts */
@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-4px); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(4px); 
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-shape {
        animation: none;
    }
}
