/* ========================================
   Estilos para Loading de Verificação de Sessão
   ======================================== */

/* Overlay de loading discreto no box de login */
#session-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.625rem;
}

#session-loading-overlay.show {
    opacity: 1 !important;
}

/* Container do loading */
#session-loading-overlay > div {
    text-align: center;
    animation: fadeInUp 0.4s ease;
    padding: 20px;
}

/* Spinner de loading */
#session-loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Texto principal do loading */
#session-loading-overlay .loading-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Subtexto do loading */
#session-loading-overlay .loading-subtext {
    color: #666;
    font-size: 12px;
}

/* ========================================
   Estilos para Loading de Redirecionamento
   ======================================== */

/* Overlay full page para redirecionamento */
#redirect-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Container do loading de redirecionamento */
#redirect-loading-overlay > div {
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

/* Spinner do redirecionamento */
#redirect-loading-overlay .loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Texto do redirecionamento */
#redirect-loading-overlay .loading-text {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Subtexto do redirecionamento */
#redirect-loading-overlay .loading-subtext {
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Animações
   ======================================== */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

