/**
 * Authentication Loading Overlay
 * Frosted glass effect while checking authentication
 */

.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading content container */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Loading spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #2d8998;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading messages container */
.loading-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

/* Individual loading message */
.loading-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 4px 12px;
    opacity: 1;
    transform: translateY(0);
    /* Instant appearance - no animation delay */
}

/* Fade out animation - 1 second */
.loading-message.fade-out {
    animation: messageFadeOut 1s ease forwards;
}

@keyframes messageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auth-loading-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .loading-spinner {
        border-color: rgba(255, 255, 255, 0.2);
        border-top-color: #2d8998;
    }
}

