/* Overlay de loading */
.fc-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(89, 13, 23, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.fc-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.fc-loading-overlay.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.fc-loading-box {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.fc-loading-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    animation: fcPulse 1.2s ease-in-out infinite;
}

.fc-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #F9F1E7;
    border-radius: 50%;
    animation: fcSpin 0.75s linear infinite;
}

.fc-loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

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

@keyframes fcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

/* Saída do card de login */
.auth-page.auth-loading #auth-page-wrapper {
    opacity: 0.4;
    transform: scale(0.98);
    filter: blur(2px);
    transition: all 0.35s ease;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fc-spinner,
    .fc-loading-box img {
        animation: none !important;
    }
}
