/* ===================================================
   ENSA Connect - Landing Page
=================================================== */

/* ==========================
   SPLASH SCREEN
========================== */

.splash {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
    overflow: hidden;
}

/* ==========================
   ANIMATED BACKGROUND CIRCLES
========================== */

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 350px;
    height: 350px;
    background: #6082B6;
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: #94A3B8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ==========================
   CONTENT
========================== */

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================
   LOGO
========================== */

.logo-wrapper {
    margin-bottom: 30px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--primary), #4A6FA5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 20px 60px rgba(96, 130, 182, 0.3);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

/* ==========================
   TITLES
========================== */

.splash-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-content p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* ==========================
   LOADING - CLEAN & AESTHETIC
========================== */

.loading {
    width: 320px;
    margin: 0 auto;
}

.loading-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #94A3B8);
    border-radius: 4px;
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.loading-dots span {
    animation: dotPulse 1.4s ease-in-out infinite;
    display: inline-block;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-percent {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-left: 6px;
    min-width: 36px;
    text-align: left;
}

/* ==========================
   ANIMATIONS
========================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.2;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {
    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        border-radius: 18px;
    }

    .splash-content h1 {
        font-size: 2rem;
    }

    .splash-content p {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }

    .loading {
        width: 90%;
        max-width: 320px;
    }

    .bg-circle {
        display: none;
    }
}