/* Full-screen loading overlay shown while redirecting to the external
   Entra sign-in page (Login / Register / Logout). See js/auth-nav.js. */
#ama-auth-loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#ama-auth-loading.is-visible {
    display: flex;
}

#ama-auth-loading .ama-auth-loading__spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    animation: ama-auth-spin 0.8s linear infinite;
}

#ama-auth-loading .ama-auth-loading__text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 0 1rem;
}

@keyframes ama-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #ama-auth-loading .ama-auth-loading__spinner {
        animation-duration: 2s;
    }
}
