/* Animacions i estils personalitzats per la pàgina de login */

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

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

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

.login-container {
    animation: fadeIn 0.6s ease-out;
}

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

.login-form {
    animation: fadeInUp 0.8s ease-out;
}

.login-footer {
    animation: fadeIn 1.2s ease-out;
}

/* Efecte de brillantor al botó */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.btn-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Efecte de parpelleig per indicadors de seguretat */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.security-indicator {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Hover effect per inputs */
.input-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Gradient animat per al fons */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}
