/* ============================================================
   FILE: flash.css
   PROFESSIONAL SHORT OPENING SPLASH
   ============================================================

   PUT HERE:
   public_html/account/assets/css/flash.css
   ============================================================ */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.splash-body {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.splash-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background: #ffffff;

    opacity: 1;
    transform: scale(1);

    transition:
        opacity 320ms ease,
        transform 320ms ease;
}

.splash-center {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;
    text-align: center;
}

.cinematic-splash-logo {
    width: 145px;
    max-width: 44vw;
    height: auto;

    display: block;
    object-fit: contain;

    opacity: 0;
    transform: scale(.90);
    filter: blur(3px);

    animation:
        splashLogoEnter
        1.10s
        cubic-bezier(.22,.80,.35,1)
        forwards;
}

@keyframes splashLogoEnter {
    0% {
        opacity: 0;
        transform: scale(.90);
        filter: blur(3px);
    }

    35% {
        opacity: .72;
        filter: blur(1px);
    }

    70% {
        opacity: 1;
        transform: scale(1.015);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.splash-loader {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;
    min-height: 14px;
    margin-top: 22px;

    opacity: 0;

    animation:
        splashLoaderShow
        .24s
        ease
        .68s
        forwards;
}

.splash-loader span {
    width: 5px;
    height: 5px;

    display: block;

    border-radius: 50%;
    background: #f15a00;

    animation:
        splashDotMove
        .76s
        ease-in-out
        infinite;
}

.splash-loader span:nth-child(2) {
    animation-delay: .11s;
}

.splash-loader span:nth-child(3) {
    animation-delay: .22s;
}

@keyframes splashLoaderShow {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes splashDotMove {
    0%,
    100% {
        opacity: .30;
        transform: translateY(0) scale(.82);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) scale(1);
    }
}

.splash-page.splash-leaving {
    opacity: 0;
    transform: scale(1.01);
}

@media (max-width: 480px) {
    .cinematic-splash-logo {
        width: 125px;
        max-width: 42vw;
    }

    .splash-loader {
        margin-top: 20px;
    }
}

@media (max-width: 350px) {
    .cinematic-splash-logo {
        width: 112px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .splash-center {
        padding: 16px;
    }

    .cinematic-splash-logo {
        width: 100px;
        max-width: 28vw;
    }

    .splash-loader {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-splash-logo,
    .splash-loader,
    .splash-loader span {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .splash-page {
        transition: opacity 120ms linear;
    }
}
