/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.loading-logo {
    width: 150px;
    height: 150px;
    animation: logoPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(10, 196, 224, 0.4));
    position: relative;
    z-index: 2;
}

.loading-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -90px;
    border: 4px solid transparent;
    border-top-color: rgba(11, 45, 114, 0.8);
    border-right-color: rgba(9, 146, 194, 0.6);
    border-radius: 50%;
    animation: spinRing 2s linear infinite;
    z-index: 1;
}

.loading-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-bottom-color: rgba(9, 146, 194, 0.5);
    border-left-color: rgba(10, 196, 224, 0.4);
    border-radius: 50%;
    animation: spinRingReverse 3s linear infinite;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    margin-top: 1rem;
    color: #0B2D72;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 3px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 10px 30px rgba(10, 196, 224, 0.4));
    }
    50% { 
        transform: scale(1.15) translateY(-10px);
        filter: drop-shadow(0 20px 40px rgba(10, 196, 224, 0.6));
    }
}

@keyframes textPulse {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.6;
    }
}

/* Loading Bar */
.loading-bar {
    width: 250px;
    height: 6px;
    background: rgba(11, 45, 114, 0.1);
    border-radius: 3px;
    margin-top: 2rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0B2D72 0%, #0992C2 50%, #0AC4E0 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loadProgress 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(9, 146, 194, 0.4);
}

@keyframes loadProgress {
    0% { 
        width: 0%;
        background-position: 0% 50%;
    }
    50% { 
        width: 70%;
        background-position: 100% 50%;
    }
    100% { 
        width: 100%;
        background-position: 200% 50%;
    }
}

@media (max-width: 768px) {
    .loading-logo-container {
        width: 160px;
        height: 160px;
    }
    
    .loading-logo {
        width: 120px;
        height: 120px;
    }
    
    .loading-ring {
        width: 150px;
        height: 150px;
        margin-top: -75px;
        margin-left: -75px;
        border-width: 3px;
    }
    
    .loading-ring::before {
        border-width: 3px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }
    
    .loading-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .loading-bar {
        width: 200px;
    }
}
