.vision-2030-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--surface-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.vision-2030-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.vision-logo {
    width: 300px;
    height: auto;
    animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color, #333);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

body.loading .login-wrapper,
body.loading nav {
    opacity: 0;
    visibility: hidden;
}

body:not(.loading) .login-wrapper,
body:not(.loading) nav {
    animation: fadeInContent 0.6s ease forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .vision-logo {
        width: 220px;
    }
}