.logo-link img {
    opacity: 0.88;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.logo-link img:hover {
    opacity: 1;
}

.bi {
    font-size: 1rem;
}

html,
body,
#react-entry-point {
    height: 100%;
    margin: 0;
    background: #f4f6f8;
}

body {
    min-height: 100vh;
}

._dash-loading {
    position: fixed;
    inset: 0;
    display: block;
    background: transparent;

    color: transparent;
    font-size: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

._dash-loading::after {
    display: none;
    content: none;
}

/* Delete the ucranian flag from map */
.leaflet-attribution-flag {
    display: none !important;
}

.app-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98)),
        linear-gradient(135deg, #08111f, #0f172a 55%, #172554);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.app-loading-screen--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-loading-screen__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    width: 100%;
}

.geoskop-logo {
    display: block;
    height: 175px;
    width: auto;
    max-width: min(100%, 340px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.esa-logo {
    display: block;
    height: 175px;
    width: auto;
    max-width: min(100%, 240px);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.geoskop-logo-mark,
.esa-logo-mark {
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    color: transparent;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.geoskop-logo-mark {
    width: clamp(400px, 24vw, 600px);
    aspect-ratio: 3.7 / 1;
    background-image: url("/assets/logos/geoskop.png");
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.45));
}

.geoskop-logo-mark--loading {
    width: clamp(280px, 32vw, 460px);
}

.esa-logo-mark {
    width: clamp(300px, 24vw, 500px);
    aspect-ratio: 3.25 / 1;
    background-image: url("/assets/logos/esa_logo_white.png");
    filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.45));
}

.image-preload {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.image-preload img {
    width: 1px;
    height: 1px;
}

.login-background {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background-color: #0f172a;
    background-image:
        radial-gradient(circle at top, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.96)),
        linear-gradient(135deg, #08111f, #0f172a 55%, #172554);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-background__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            180deg,
            rgba(7, 11, 22, 0.18) 0%,
            rgba(7, 11, 22, 0.28) 45%,
            rgba(7, 11, 22, 0.42) 100%
        );
    pointer-events: none;
}

.login-bg-slide {
    position: absolute;
    inset: -2%;
    opacity: 0;
    transform: scale(1.04) translate3d(0, 0, 0);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: opacity, transform;
    animation-name: loginSlideVisibility, loginSlideMotion;
    animation-duration: 36s, 12s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-delay: var(--slide-delay), 0s;
    animation-fill-mode: both, both;
    animation-play-state: paused, paused;
}

body.app-ready .login-bg-slide {
    animation-play-state: running, running;
}

.login-bg-slide-1 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        url("/assets/backgrounds/bg1.jpg");
}

.login-bg-slide-2 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
        url("/assets/backgrounds/bg2.jpg");
}

.login-bg-slide-3 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
        url("/assets/backgrounds/bg3.jpg");
}

.login-bg-slide-4 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
        url("/assets/backgrounds/bg4.jpg");
}

.login-bg-slide-5 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("/assets/backgrounds/bg5.jpg");
}

.login-bg-slide-6 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("/assets/backgrounds/bg6.jpg");
}

.login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex: 1 0 auto;
    padding: 40px 48px;
}

.top-branding {
    display: flex;
    align-items: flex-start;
    min-height: 180px;
    flex: 1 1 auto;
}

.top-login {
    display: flex;
    justify-content: flex-end;
    width: min(100%, 560px);
}

.login-card {
    width: min(100%, 560px);
    border: 0;
    border-radius: 18px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 6px 14px rgba(0, 0, 0, 0.18);
}

.login-card .card-body {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.login-title {
    margin: 0 0 0.25rem;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.9rem, 2.8vw, 2.3rem);
    color: #1f1f1f;
}

.login-subtitle {
    margin: 0 0 1.8rem;
    text-align: center;
    font-size: 0.95rem;
    color: #5f6c75;
}

.login-card .input-group {
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f7f9;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.login-card .input-group:focus-within {
    box-shadow:
        inset 0 0 0 1px rgba(22, 163, 74, 0.22),
        0 0 0 3px rgba(22, 163, 74, 0.12);
}

.login-card .input-group-text {
    background-color: transparent;
    border: none;
    color: #6b7280;
    padding: 0 14px;
}

.login-card .form-control {
    border: none;
    font-size: 0.95rem;
    padding: 12px 14px;
    background-color: transparent;
    color: #0f172a;
}

.login-card .form-control:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.eye-button {
    background: transparent;
    border: none;
    padding: 0 14px;
    color: #6b7280;
}

.eye-button:hover {
    color: #111;
    cursor: pointer;
}

.login-card .btn-success,
button.btn-success {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.login-card .btn-link {
    color: #475569;
    text-decoration: none;
}

.login-card .btn-link:hover {
    color: #0f172a;
}


.esa-logo-mark {
    display: block;

    width: 300px;       /* SAME as footer */
    height: 150px;       /* tune to taste */

    background-image: url("/assets/logos/esa_logo_white.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}



.login-footer {
    position: absolute;
    bottom: 28px;
    left: 48px;

    display: flex;
    flex-direction: column;
    align-items: flex-start; /* key */

    gap: 14px;
    width: 300px;

    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.login-legal {
    width: 300px;
    line-height: 1.65;
}

.login-footer a {
    color: inherit;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}


.asset-item-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.asset-light-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    line-height: 1;
    font-size: 1rem;
    overflow: visible;
    vertical-align: middle;
}

@keyframes loginSlideVisibility {
    0%,
    2% {
        opacity: 0;
    }
    7%,
    16% {
        opacity: 1;
    }
    21%,
    100% {
        opacity: 0;
    }
}

@keyframes loginSlideMotion {
    0% {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.08) translate3d(0, -2%, 0);
    }
    100% {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
}

/* @media (max-width: 991.98px) {
    .login-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .top-branding,
    .top-login {
        justify-content: center;
        width: 100%;
    }

    .top-branding {
        min-height: auto;
    }

    .login-footer {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .login-top-bar {
        padding: 1.5rem 1rem 1rem;
    }

    .login-footer {
        padding: 1rem 1rem 1.5rem;
    }

    .geoskop-logo-mark {
        width: min(280px, 82vw);
    }

    .geoskop-logo-mark--loading {
        width: min(340px, 88vw);
    }

    .geoskop-logo {
        height: auto;
        width: min(280px, 82vw);
    }

    .esa-logo {
        height: auto;
        width: min(220px, 72vw);
    }
} */

/* @media (prefers-reduced-motion: reduce) {
    .app-loading-screen,
    .login-bg-slide,
    .logo-link img {
        transition: none;
        animation: none;
    }

    .login-bg-slide {
        opacity: 0;
        transform: none;
    }

    .login-bg-slide:first-child {
        opacity: 1;
    }
} */
