/* ===================================
   SWEETALERT2 PERSONALIZADOS PARA LOGIN
   =================================== */

/* Modal personalizado */
.custom-swal-popup {
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

[data-bs-theme="dark"] .custom-swal-popup {
    background: #1a1d20 !important;
    color: #fff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.custom-swal-title {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.custom-swal-content {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Botones personalizados */
.custom-swal-confirm,
.custom-swal-cancel {
    padding: 0.75rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    margin: 0.25rem !important;
}

.custom-swal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.3);
}

/* Animación de checkmark exitoso */
.success-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb543;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb543;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb543;
    fill: none;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.checkmark.animate .checkmark__circle {
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark.animate .checkmark__check {
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Loader personalizado */
.login-loader {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.spinner-grow {
    width: 1rem !important;
    height: 1rem !important;
}

/* Progress bar del timer */
.swal2-timer-progress-bar {
    background: var(--bs-primary) !important;
    height: 4px !important;
}

/* Ícono de error para SweetAlert2 */
.error-icon {
    font-size: 3rem;
    pointer-events: none;
}