/* Bahwan Loader */
.bahwan-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #f8fbff 0%, #edf4ff 40%, #e5eefc 100%);

    .loader-content {
        text-align: center;
    }

    .logo-ring {
        position: relative;
        width: 260px;
        height: 260px;
        margin: 0 auto 25px;
    }

    .ring {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: conic-gradient(from 0deg, transparent 0deg, #2f80ff 300deg, #00c6ff 360deg);
        animation: rotateRing 1.6s linear infinite;

        &::before {
            content: "";
            position: absolute;
            inset: 12px;
            background: #f7faff;
            border-radius: 50%;
        }
    }

    .logo-wrapper {
        position: absolute;
        inset: 35px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 20px 50px rgba(0, 55, 127, .12), inset 0 2px 10px rgba(255, 255, 255, .8);
        z-index: 2;
    }

    .loader-logo {
        width: 140px;
        height: 140px;
        object-fit: contain;
        animation: pulseLogo 2s ease infinite;
    }

    h2 {
        margin: 0;
        font-size: 42px;
        font-weight: 800;
        color: #00377f;
    }

    span {
        display: block;
        letter-spacing: 8px;
        font-size: 14px;
        color: #5b6b8c;
        margin-bottom: 25px;
    }

    .loading-bar {
        width: 240px;
        height: 6px;
        margin: 0 auto 15px;
        border-radius: 50px;
        background: rgba(0, 55, 127, .08);
        overflow: hidden;

        span {
            display: block;
            height: 100%;
            width: 40%;
            border-radius: 50px;
            background: linear-gradient(90deg, #4f7cff, #00c6ff);
            animation: loadingBar 1.5s infinite ease-in-out;
        }
    }

    p {
        color: #64748b;
        font-size: 15px;
        margin: 0;
    }
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes loadingBar {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(350%);
    }
}