/* Login page background slideshow (on top of static/portal/css/auth.css). */

.outer-container .container-image.login-slideshow {
    position: relative;
    overflow: hidden;
    background: #002561;
}

.login-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.login-slideshow .slide.active {
    opacity: 1;
}

/* Same dark overlay as the default banner in auth.css. */
.login-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}


/* ---- Brand identity ---------------------------------------------------------------------------------------------- */

/* Left panel: the default photo; the Garuda blue gradient (darker at the bottom, where the text sits) is the ::after layer below. */
.outer-container .container-image.login-brand {
    position: relative;
    background-image: url("../images/login-banner.317218902b79.webp");
    background-size: cover;
    background-position: 62% center; /* keeps the Garuda lettering and the nose in view on a tall panel */
}

.login-brand .brand-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: #fff;
}

.login-brand .brand-logo { height: 40px; width: auto; align-self: flex-start; }
.login-brand .brand-foot { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }

@media (min-width: 1200px) { .login-brand .brand-inner { padding: 60px; } }

/* Form side: a larger logo, a stronger title and a short welcome line. */
.outer-container .container-body .container-box .logo-wrapper { height: 56px; }
@media (min-width: 768px) { .outer-container .container-body .container-box .logo-wrapper { height: 64px; } }

.outer-container .container-body .container-box .card-wrapper .card-title h2 { color: #002561; font-weight: 700; font-size: 1.9rem; }
.card-wrapper .login-lead { margin: 0; color: #6c757d; }

/* Inputs: Garuda blue focus ring. */
.outer-container .container-body .container-box .card-wrapper input:focus {
    outline: none;
    border-color: #4B77BE;
    box-shadow: 0 0 0 .2rem rgba(75, 119, 190, .2);
}

.card-wrapper .login-help { margin: 0; padding-top: .25rem; font-size: .8rem; line-height: 1.45; color: #6c757d; }
.card-wrapper .login-help i { color: #4B77BE; }

/* The form rises in on load; off for people who ask for less motion. */
@keyframes login-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.outer-container .card-wrapper { animation: login-rise .5s ease both; }
@media (prefers-reduced-motion: reduce) { .outer-container .card-wrapper { animation: none; } }

/* Slides (Admin > Login Slides) lie between the panel photo and its text; the blue gradient of .login-brand::after stays on top. */
.login-brand .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 62% center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.login-brand .slide.active { opacity: 1; }
.outer-container .container-image.login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 37, 97, .55) 0%, rgba(0, 37, 97, .35) 40%, rgba(0, 24, 64, .92) 100%);
}
.login-brand .brand-inner { z-index: 1; }
.outer-container .container-image.login-brand.has-slides { background-image: none; background-color: #002561; }
