/* Iconos y elementos visuales */
.icon-wrapper {
    background-color: #F3E8FF;
    color: #9333EA;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

@media (max-width: 640px) {
    .icon-wrapper {
        width: 40px;
        height: 40px;
    }
}

/* Botones */
.submit-button {
    transition: all 0.3s ease;
}

.submit-button:disabled {
    background-color: #E9D5FF;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Formularios */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #9f7aea;
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.2);
}

.form-input:invalid {
    border-color: #FCA5A5;
}

.form-input:valid {
    border-color: #86EFAC;
}

/* Redes sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.social-icon:active {
    transform: scale(0.95) translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para el banner de cookies */
#cookieConsent {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    z-index: 9999;
}

#cookieConsent.visible {
    transform: translateY(0);
    opacity: 1;
}

/*! LOGIN */
/* Contenedor principal */
.login-steps-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cardContainer {
    position: relative;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#email-step {
    z-index: 2;
}

/* Estilos para el toast */
.toast-enter {
    transform: translateY(100%);
    opacity: 0;
}

.toast-enter-active {
    transform: translateY(0);
    opacity: 1;
}

.toast-exit {
    transform: translateY(0);
    opacity: 1;
}

.toast-exit-active {
    transform: translateY(100%);
    opacity: 0;
}

/* Estilos responsivos */
@media (max-width: 640px) {
    .login-steps-container {
        min-height: auto;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Animaciones para los botones */
.btn-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .space-y-6 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.25rem;
    }

    .p-6 {
        padding: 1.25rem;
    }

    .rounded-xl {
        border-radius: 0.75rem;
    }
}

input[type="checkbox"]:checked + label .checkbox-icon {
    opacity: 1;
}

/* Hover state */
input[type="checkbox"] + label:hover {
    border-color: #9333EA;
}

/* Focus state */
input[type="checkbox"]:focus + label {
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

/* Animaciones para el checkbox */
.checkbox-icon {
    transform-origin: center;
    transition: all 0.2s ease-in-out;
}

input[type="checkbox"]:checked + label .checkbox-icon {
    transform: scale(1);
}

/* Estilos para el botón de contraseña olvidada */
#forgot-password-btn {
    position: relative;
    text-decoration: none;
}

#forgot-password-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

#forgot-password-btn:hover::after {
    transform: scaleX(1);
}

/* Contenedor principal del card */
.bg-white.rounded-2xl {
    position: relative;
    overflow: hidden;
}

/* Posición inicial */
#password-step {
    transform: translateX(100%);
}

/* Animación de la mano saludando */
.waving-hand {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(9deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Botón de login con animación de carga */
.loading-button {
    position: relative;
    overflow: hidden;
}

.loading-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from { left: -100%; }
    to { left: 100%; }
}

.success-button {
    background-color: #10B981 !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Contenedor principal del card */
#cardContainer {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 200px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#email-step,
#password-step {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    /* padding: 2rem; */
    background: white;
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible;
}

.space-y-6 {
    margin-bottom: 0;
}

/* Ajustar el contenedor principal */
.flex-grow.flex {
    min-height: 100vh;
    padding: 2rem;
}

.max-w-md {
    width: 100%;
    max-width: 28rem;
}

#password-step {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

#email-step.slide-left {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

#password-step.slide-in {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.form-content {
    position: relative;
    width: 100%;
}

.text-red-500 {
    position: absolute;
    bottom: -20px;
    left: 0;
}

/* .relative {
    margin-bottom: 24px;
} */

.animate-spin {
    animation: spin 1s linear infinite;
 }

 @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
 }

 .animate-bounce {
    animation: bounce 0.6s ease-in-out;
 }

 @keyframes bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
 }

 .animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
 }

 @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
 }