/* =========================================================
   GLSMI PREMIUM GLOBAL LOADER
========================================================= */


/* =========================================================
   MAIN OVERLAY
========================================================= */

#globalLoader {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    background:
        radial-gradient(
            circle at center,
            rgba(37,99,235,.16),
            rgba(15,23,42,.82) 55%,
            rgba(2,6,23,.94)
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .30s ease,
        visibility .30s ease;

    z-index: 9999999999;

}


/* =========================================================
   ACTIVE
========================================================= */

#globalLoader.glsmi-loader-active {

    opacity: 1;

    visibility: visible;

    pointer-events: all;

}


/* =========================================================
   BACKGROUND LIGHT EFFECTS
========================================================= */

#globalLoader::before {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,.20),
            transparent 68%
        );

    filter:
        blur(20px);

    animation:
        glsmiLoaderGlow 3s ease-in-out infinite;

}


#globalLoader::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.18),
            transparent 68%
        );

    filter:
        blur(25px);

    animation:
        glsmiLoaderGlowReverse 3.5s ease-in-out infinite;

}


/* =========================================================
   DARK GLASS LOADER BOX
========================================================= */

.glsmi-loader-box {

    width: 280px;

    min-height: 300px;

    padding: 34px 28px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    position: relative;

    z-index: 5;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.92),
            rgba(30,41,59,.82)
        );

    border:
        1px solid
        rgba(255,255,255,.16);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:

        0 35px 100px
        rgba(0,0,0,.55),

        0 0 70px
        rgba(37,99,235,.18),

        inset 0 1px 0
        rgba(255,255,255,.12),

        inset 0 -1px 0
        rgba(0,0,0,.25);

    overflow: visible;

}


/* =========================================================
   LOGO WHITE CENTER
========================================================= */

.glsmi-loader-logo {

    width: 155px;

    height: 155px;

    display: flex;

    justify-content: center;

    align-items: center;

    position: relative;

    margin-bottom: 18px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #ffffff 0%,
            #ffffff 72%,
            #f8fafc 100%
        );

    box-shadow:

        0 10px 30px
        rgba(0,0,0,.30),

        0 0 35px
        rgba(255,255,255,.20);

}


/* =========================================================
   OUTER ROTATING RING
========================================================= */

.glsmi-loader-logo::before {

    content: "";

    position: absolute;

    inset: -17px;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            #2563eb,
            #7c3aed,
            #ec4899,
            #2563eb
        );

    -webkit-mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 4px),
            #000 0
        );

    mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 4px),
            #000 0
        );

    animation:
        glsmiOuterRotate
        2.2s
        linear
        infinite;

    filter:
        drop-shadow(
            0 0 8px
            rgba(37,99,235,.65)
        );

}


/* =========================================================
   SECOND ROTATING RING
========================================================= */

.glsmi-loader-logo::after {

    content: "";

    position: absolute;

    inset: -8px;

    border-radius: 50%;

    border:
        2px dashed
        rgba(37,99,235,.50);

    animation:
        glsmiInnerRotate
        3s
        linear
        infinite;

}


/* =========================================================
   LOGO IMAGE
========================================================= */

.glsmi-loader-logo img {

    width: 135px;

    height: auto;

    max-height: 100px;

    display: block;

    object-fit: contain;

    position: relative;

    z-index: 3;

    animation:
        glsmiLogoPulse
        2s
        ease-in-out
        infinite;

    filter:
        drop-shadow(
            0 5px 12px
            rgba(0,0,0,.18)
        );

}


/* =========================================================
   LOGO WHITE CIRCLE
========================================================= */

.glsmi-loader-logo {

    background:
        radial-gradient(
            circle,
            #ffffff 0%,
            #ffffff 68%,
            rgba(255,255,255,.88) 100%
        );

    border-radius: 50%;

    box-shadow:

        0 10px 30px
        rgba(15,23,42,.18),

        0 0 30px
        rgba(37,99,235,.20);

}


/* =========================================================
   ORBIT DOT
========================================================= */

.glsmi-loader-box {

    --orbit-size: 190px;

}


.glsmi-loader-box::before {

    content: "";

    position: absolute;

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background:
        #2563eb;

    box-shadow:

        0 0 10px
        #2563eb,

        0 0 20px
        rgba(37,99,235,.8);

    top:
        calc(50% - 110px);

    left:
        calc(50% - 5px);

    transform-origin:
        5px 110px;

    animation:
        glsmiOrbit
        2s
        linear
        infinite;

}


/* =========================================================
   LOADING TEXT
========================================================= */

.glsmi-loader-text {

    margin-top: 15px;

    font-family:
        Poppins,
        Arial,
        sans-serif;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: .3px;

    color:
        #334155;

    text-align: center;

}


/* =========================================================
   LOADING DOTS
========================================================= */

.glsmi-loader-text::after {

    content: "...";

    display: inline-block;

    width: 20px;

    overflow: hidden;

    vertical-align: bottom;

    animation:
        glsmiDots
        1.4s
        steps(4,end)
        infinite;

}


/* =========================================================
   SMALL SUBTEXT
========================================================= */

.glsmi-loader-text::before {

    content:
        "GLSMI";

    display: block;

    margin-bottom: 5px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed,
            #ec4899
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


/* =========================================================
   ANIMATIONS
========================================================= */


/* Outer ring */

@keyframes glsmiOuterRotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/* Inner ring */

@keyframes glsmiInnerRotate {

    from {

        transform:
            rotate(360deg);

    }

    to {

        transform:
            rotate(0deg);

    }

}


/* Logo pulse */

@keyframes glsmiLogoPulse {

    0%,
    100% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.045);

    }

}


/* Orbit */

@keyframes glsmiOrbit {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/* Background glow */

@keyframes glsmiLoaderGlow {

    0%,
    100% {

        transform:
            scale(.85);

        opacity:
            .45;

    }

    50% {

        transform:
            scale(1.15);

        opacity:
            .80;

    }

}


@keyframes glsmiLoaderGlowReverse {

    0%,
    100% {

        transform:
            scale(1.1);

        opacity:
            .35;

    }

    50% {

        transform:
            scale(.80);

        opacity:
            .70;

    }

}


/* Dots */

@keyframes glsmiDots {

    0% {

        width: 0;

    }

    25% {

        width: 5px;

    }

    50% {

        width: 10px;

    }

    75% {

        width: 15px;

    }

    100% {

        width: 20px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px) {

    .glsmi-loader-box {

        width: 235px;

        min-height: 270px;

        padding: 30px 20px;

        border-radius: 26px;

    }


    .glsmi-loader-logo {

        width: 130px;

        height: 130px;

    }


    .glsmi-loader-logo img {

        width: 115px;

        max-height: 85px;

    }


    .glsmi-loader-logo::before {

        inset: -14px;

    }


    .glsmi-loader-logo::after {

        inset: -7px;

    }


    .glsmi-loader-text {

        font-size: 14px;

    }


    #globalLoader::before {

        width: 300px;

        height: 300px;

    }


    #globalLoader::after {

        width: 220px;

        height: 220px;

    }

}