﻿:root {
    --green: #00865f;
    --deep-green: #004b38;
    --mint: #dff9f0;
    --text: #09251d;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at 15% 15%, rgba(0, 134, 95, .18), transparent 32%), radial-gradient(circle at 85% 80%, rgba(45, 230, 177, .20), transparent 35%), linear-gradient(135deg, #f7fffc 0%, #e7faf3 52%, #d0f7e9 100%);
}

.ambient {
    position: fixed;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(0, 134, 95, .12);
    border-radius: 50%;
    animation: orbit 12s linear infinite;
    pointer-events: none;
}

    .ambient::before,
    .ambient::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(0, 134, 95, .10);
        border-radius: 50%;
    }

    .ambient::before {
        inset: 28px;
    }

    .ambient::after {
        inset: 58px;
    }

    .ambient.one {
        top: -180px;
        left: -150px;
    }

    .ambient.two {
        width: 440px;
        height: 440px;
        bottom: -260px;
        right: -180px;
        animation-direction: reverse;
    }

.loader-card {
    position: relative;
    width: min(440px, calc(100vw - 36px));
    padding: 42px 30px 32px;
    text-align: center;
    border: 1px solid rgba(0, 134, 95, .20);
    border-radius: 28px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 24px 70px rgba(0, 76, 55, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: appear .7s cubic-bezier(.2, .8, .2, 1) both;
}

.logo-wrap {
    width: 108px;
    height: 108px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(145deg, #00a975, #004c38);
    box-shadow: 0 12px 28px rgba(0, 120, 83, .23);
    animation: float 2.4s ease-in-out infinite;
}

    .logo-wrap img {
        display: block;
        width: 88px;
        max-height: 80px;
        object-fit: contain;
        filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .18));
    }

.wordmark {
    display: none;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 0 #003c2b;
}

h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: .5px;
    font-weight: 800;
}

.tagline {
    margin: 8px 0 26px;
    color: #477568;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #24584a;
    font-size: 13px;
    font-weight: 600;
}

.spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #bdebdc;
    border-top-color: var(--green);
    border-right-color: var(--green);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.progress-track {
    height: 6px;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 20px;
    background: #d9f1e8;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #007b57, #2de6b1);
    box-shadow: 0 0 14px rgba(0, 177, 125, .35);
    animation: progress 3s ease-in-out forwards;
}

.footer {
    margin: 17px 0 0;
    color: #72978b;
    font-size: 11px;
    letter-spacing: .4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }

    35% {
        width: 42%;
    }

    70% {
        width: 76%;
    }

    100% {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .loader-card {
        padding: 34px 22px 28px;
    }

    .logo-wrap {
        width: 96px;
        height: 96px;
    }

    h1 {
        font-size: 24px;
    }

    .tagline {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}