/* ========================================
   صفحة التحميل - CSS معزول
   ======================================== */

/* Container رئيسي - معزول تماماً */
.auth-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-loading-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
}

/* Logo */
.auth-loading-container .auth-logo {
    margin-bottom: 30px;
}

.auth-loading-container .auth-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Spinner Animation */
.auth-loading-container .auth-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto;
}

.auth-loading-container .spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: auth-spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.auth-loading-container .spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #764ba2;
    animation-delay: -0.5s;
}

.auth-loading-container .spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #f093fb;
    animation-delay: -1s;
}

@keyframes auth-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Message */
.auth-loading-container .auth-message {
    margin: 30px 0;
}

.auth-loading-container .auth-message h2 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    direction: rtl;
}

.auth-loading-container .auth-message p {
    color: #718096;
    font-size: 16px;
    margin: 0;
    direction: rtl;
}

/* Progress Dots */
.auth-loading-container .auth-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.auth-loading-container .dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: auth-bounce 1.4s infinite ease-in-out both;
}

.auth-loading-container .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.auth-loading-container .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes auth-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-loading-content {
        padding: 30px 20px;
    }
    
    .auth-loading-container .auth-logo img {
        max-width: 140px;
    }
    
    .auth-loading-container .auth-spinner {
        width: 90px;
        height: 90px;
    }
    
    .auth-loading-container .auth-message h2 {
        font-size: 20px;
    }
    
    .auth-loading-container .auth-message p {
        font-size: 14px;
    }
}