/*
 * ASSET Copilot - Authentication Page Styles
 *
 * Animations and styles for the login page.
 */

/* =============================================================================
   Gradient Background
   ============================================================================= */

.bg-gradient-animated {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary, #6366f1) 10%, white),
        color-mix(in srgb, var(--color-secondary, #f472b6) 10%, white),
        color-mix(in srgb, var(--color-accent, #22d3ee) 10%, white)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================================================
   Floating Animations
   ============================================================================= */

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float-slow {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* =============================================================================
   Twinkle Animation (for stars)
   ============================================================================= */

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.animate-twinkle {
    animation: twinkle 2s ease-in-out infinite;
}

/* =============================================================================
   Pulse Animation (slow)
   ============================================================================= */

@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 6s ease-in-out infinite;
}

/* =============================================================================
   Bounce Gentle
   ============================================================================= */

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

.animate-bounce-gentle {
    animation: bounceGentle 2s ease-in-out infinite;
}

/* =============================================================================
   Fade In Animations
   ============================================================================= */

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Gradient text animation */
@keyframes gradientX {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradientX 3s ease infinite;
}

/* =============================================================================
   Shake Animation (for errors)
   ============================================================================= */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

/* =============================================================================
   Animation Delays
   ============================================================================= */

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* =============================================================================
   Input Focus Glow
   ============================================================================= */

.input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #6366f1) 20%, transparent);
}

/* =============================================================================
   Button Hover Effects
   ============================================================================= */

.btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary, #6366f1) 40%, transparent);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* =============================================================================
   Alpine.js Cloak
   ============================================================================= */

[x-cloak] {
    display: none !important;
}
