/* ===========================================
   TELA DE CARREGAMENTO - INTERNACIONAL MARÍTIMA
   =========================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    max-width: 300px;
    width: 80%;
    height: auto;
    margin-bottom: 2rem;
    animation: logoFadeIn 1.5s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-title {
    font-family: 'Helvetica Now Display', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: textFadeIn 1s ease-out 0.5s forwards;
}

.loading-subtitle {
    font-family: 'Helvetica Now Text', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: textFadeIn 1s ease-out 0.8s forwards;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spinRotate 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-progress {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    border-radius: 2px;
    animation: progressFill 3s ease-out forwards;
    transform: translateX(-100%);
}

/* Animações */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dotPulse {
    0%, 20% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes progressFill {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .loading-logo {
        max-width: 250px;
        margin-bottom: 1.5rem;
    }
    
    .loading-title {
        font-size: 1.6rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 150px;
        bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        max-width: 200px;
        margin-bottom: 1rem;
    }
    
    .loading-title {
        font-size: 1.4rem;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Ocultar o conteúdo principal durante o carregamento */
body.loading .main-content {
    visibility: hidden;
}

body.loading {
    overflow: hidden;
} 