/* ========================================
   ESTILOS ESPECÍFICOS DE PASSWORD RESET COMPLETE
   ======================================== */

/* Animación del icono de éxito */
.success-icon {
    animation: successBounce 1s ease-in-out;
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0);
        filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.3));
    }
    40% { 
        transform: translateY(-10px);
        filter: drop-shadow(0 0 20px rgba(40, 167, 69, 0.5));
    }
    60% { 
        transform: translateY(-5px);
        filter: drop-shadow(0 0 15px rgba(40, 167, 69, 0.4));
    }
}

/* Animación de pulsación para el emoji */
.message-icon {
    animation: iconPulse 2s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    }
    100% { 
        transform: scale(1.1);
        filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    }
}

/* Efectos especiales para el botón de éxito */
.success-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.success-btn:hover::before {
    left: 100%;
}

.success-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

.success-btn:active {
    transform: translateY(-1px);
}

/* Efectos especiales para las cards de pasos */
.step-card {
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 118, 139, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover .text-4xl {
    animation: bounceEmoji 0.6s ease-in-out;
}

@keyframes bounceEmoji {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Animación de confetti */
@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Animación especial para corazones flotantes */
@keyframes heartFloat {
    0% {
        transform: translateY(-10px) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) scale(0.8);
        opacity: 0;
    }
}

/* Partículas de confetti */
.confetti-particle {
    border-radius: 50%;
    animation-timing-function: ease-out;
}

/* Efecto de gradiente animado para el mensaje de éxito */
.bg-gradient-to-br.from-exito\/5.to-exito\/10 {
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

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

/* Efecto de brillantez para el divisor */
.w-20.h-0\.5.bg-gradient-to-r {
    animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { 
        opacity: 1; 
        transform: scaleX(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scaleX(1.2);
        filter: blur(0.5px);
    }
}

/* Mejoras de hover para el enlace secundario */
.secondary-link {
    position: relative;
    overflow: hidden;
}

.secondary-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C8B39B, #5D768B);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.secondary-link:hover::after {
    width: 80%;
}

/* Animaciones de entrada mejoradas */
.success-message,
.next-steps,
.login-footer {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos de partículas ambiente */
.success-message::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% { 
        transform: translate(50px, -30px) scale(1.2);
        opacity: 0.6;
    }
    66% { 
        transform: translate(-30px, 20px) scale(0.8);
        opacity: 0.4;
    }
}

/* Estados de focus mejorados para accesibilidad */
.success-btn:focus,
.secondary-link:focus {
    outline: 2px solid #5D768B;
    outline-offset: 4px;
    z-index: 10;
    position: relative;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .step-card {
        padding: 1.25rem !important;
    }

    .text-3xl {
        font-size: 1.75rem !important;
    }

    .text-6xl {
        font-size: 3rem !important;
    }

    .success-btn {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 1rem !important;
    }

    .text-3xl {
        font-size: 1.5rem !important;
    }

    .text-lg {
        font-size: 1rem !important;
    }

    .text-6xl {
        font-size: 2.5rem !important;
    }

    .w-14.h-14 {
        width: 3rem !important;
        height: 3rem !important;
    }

    .success-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Modo de contraste alto */
@media (prefers-contrast: high) {
    .success-btn {
        border: 2px solid currentColor !important;
    }
    
    .step-card {
        border-width: 2px !important;
    }
    
    .bg-gradient-to-br {
        background: rgba(40, 167, 69, 0.1) !important;
    }

    .bg-gradient-to-r.from-exito {
        background: #28A745 !important;
    }
}

/* Modo reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .success-icon,
    .message-icon,
    .text-4xl,
    .w-20.h-0\.5.bg-gradient-to-r,
    .bg-gradient-to-br.from-exito\/5.to-exito\/10,
    .success-message::after {
        animation: none !important;
    }

    .step-card:hover {
        transform: none !important;
    }

    .confetti-particle {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Efectos de celebración adicionales */
.celebration-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(40, 167, 69, 0.3);
    border-radius: 50%;
    animation: expandRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes expandRing {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Mejoras visuales para SVG */
svg path {
    transition: fill 0.3s ease;
}

.success-icon:hover svg path {
    fill: #20a03a;
}

/* Efecto de ondas de celebración */
.success-message {
    position: relative;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 3s ease-out infinite;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Estados de éxito para elementos interactivos */
.success-complete {
    animation: successGlow 2s ease-in-out;
}

@keyframes successGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
    50% { box-shadow: 0 0 20px 5px rgba(40, 167, 69, 0.3); }
}