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

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

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

.reset-submit-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.reset-submit-btn:active {
    transform: translateY(0);
}

.reset-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.reset-submit-btn:disabled::before {
    display: none;
}

/* Efecto de línea de enfoque para el input */
.input-focus-line {
    transform-origin: center;
}

/* Estados de validación para el input de email */
input:invalid:not(:placeholder-shown) {
    border-color: #DC3545 !important;
    animation: shake 0.5s ease-in-out;
}

input:valid:not(:placeholder-shown) {
    border-color: #28A745 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Animación para mensajes de error */
@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideInError {
    animation: slideInError 0.4s ease-out;
}

/* Efecto de pulsación para el icono */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Spinner de carga */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mejoras de hover para elementos interactivos */
input:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 118, 139, 0.1);
}

input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 118, 139, 0.15);
}

/* Efecto de gradiente animado para el divisor superior */
.bg-gradient-to-r.from-secundario.to-principal {
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

/* Efectos para los enlaces */
a[href*="login"]:hover {
    text-decoration: none;
    transform: translateX(-2px);
}

/* Mejoras de transición para todos los elementos interactivos */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de focus mejorados para accesibilidad */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #5D768B;
    outline-offset: 2px;
    z-index: 10;
    position: relative;
}

/* Efectos especiales para el contenedor de ayuda */
.bg-blue-50 {
    position: relative;
    overflow: hidden;
}

.bg-blue-50::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(23, 162, 184, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bg-blue-50:hover::before {
    opacity: 1;
}

/* Animaciones de entrada personalizadas */
.form-field-group,
.form-submit-section {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .reset-submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .reset-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .w-15.h-15 {
        width: 3rem !important;
        height: 3rem !important;
    }
}

/* Modo de contraste alto */
@media (prefers-contrast: high) {
    input {
        border-width: 3px !important;
    }
    
    .reset-submit-btn {
        border: 2px solid currentColor !important;
    }
    
    .bg-gradient-to-r {
        background: #5D768B !important;
    }
}

/* Modo reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-iconPulse {
        animation: none !important;
    }
}

/* Mejoras de estado de loading */
.reset-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.reset-submit-btn.loading::before {
    display: none;
}

/* Efectos de éxito para cuando se envía el formulario */
.success-sent {
    background: linear-gradient(135deg, #28A745, #20C997) !important;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.animate-iconPulse:hover svg path {
    fill: #4a6375;
}

/* Efectos de hover para el divisor con texto */
.relative.bg-blanco {
    transition: all 0.3s ease;
}

.relative.bg-blanco:hover {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
}

/* Animación sutil para el gradiente del divisor superior */
.w-20.h-0\.5.bg-gradient-to-r {
    animation: pulseGradient 2s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}