body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 18% 18%, rgba(121, 223, 163, .14), transparent 30%), radial-gradient(circle at 84% 78%, rgba(255, 255, 255, .1), transparent 28%), linear-gradient(135deg, #1e3345 0%, #315666 52%, #3e6270 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(24rem, 410px) minmax(28rem, 1fr);
    width: min(92vw, 1380px);
    min-height: 620px;
    overflow: hidden;
    border-radius: 1.1rem;
    background: #fff;
}

.login-container { width: 100%; border-radius: 0; }
.login-container .card-body { display: flex; flex-direction: column; justify-content: center; }

.login-logo {
    display: block;
    width: min(190px, 70%);
    height: auto;
    margin: 0 auto 1rem;
    border-radius: .75rem;
}

.login-welcome { margin-bottom: 1.75rem; text-align: center; }
.login-welcome h1 { margin: 0; color: #20394d; font-size: 1.55rem; font-weight: 700; }
.login-welcome p { margin: .35rem 0 0; color: #687b82; font-size: .85rem; }

.login-page .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .15);
}

.login-gallery { position: relative; min-height: 0; height: 100%; overflow: hidden; background: #1e3345; }
.login-gallery .carousel, .login-gallery .carousel-inner, .login-gallery .carousel-item { height: 100%; }
.login-gallery .carousel-item { position: relative; }
.login-gallery .carousel-item::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 39, 54, .05) 25%, rgba(18, 39, 54, .78) 100%); content: ''; }
.login-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-gallery-caption { position: absolute; z-index: 2; right: 2rem; bottom: 2.25rem; left: 2rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.login-gallery-caption p { font-size: 1.45rem; font-weight: 700; }
.login-gallery-caption span { color: #e5f1eb; font-size: .95rem; }
.login-gallery .carousel-control-prev,
.login-gallery .carousel-control-next { width: 3.5rem; height: 3.5rem; top: 50%; margin-top: -1.75rem; border-radius: 50%; background: rgba(18, 39, 54, .24); opacity: .72; }
.login-gallery .carousel-control-prev { left: 1rem; }
.login-gallery .carousel-control-next { right: 1rem; }
.login-gallery .carousel-control-prev:hover,
.login-gallery .carousel-control-next:hover,
.login-gallery .carousel-control-prev:focus-visible,
.login-gallery .carousel-control-next:focus-visible { background: rgba(18, 39, 54, .58); opacity: 1; }
.login-gallery .carousel-indicators { gap: .35rem; margin-bottom: 1.2rem; }
.login-gallery .carousel-indicators button { width: 1.7rem; height: .2rem; margin: 0; border: 0; border-radius: 999px; opacity: .65; }
.login-gallery .carousel-indicators button.active { opacity: 1; }

@media (max-width: 767.98px) {
    body.login-page { align-items: center; padding: 0; overflow: hidden; }
    .login-shell { position: relative; display: flex; width: 100%; min-height: 100dvh; align-items: center; justify-content: center; overflow: visible; border-radius: 0; background: transparent; box-shadow: none !important; }
    .login-container { position: relative; z-index: 2; width: calc(100% - 2rem); max-width: 430px; border: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 1.25rem; background: rgba(255, 255, 255, .62); box-shadow: 0 1.25rem 3rem rgba(11, 31, 43, .3) !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .login-container .card-body { padding: 1.5rem 1.5rem 1.65rem !important; }
    .login-logo { width: min(150px, 62%); margin-bottom: .75rem; }
    .login-welcome { margin-bottom: 1.35rem; }
    .login-welcome h1 { font-size: 1.4rem; }
    .login-welcome p { font-size: .78rem; }
    .login-container form .mb-3 { margin-bottom: .85rem !important; }
    .login-gallery { position: fixed; z-index: 0; inset: 0; width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; }
    .login-container .card-body { display: block; }
    .login-gallery-caption { display: none; }
    .login-gallery .carousel-control-prev,
    .login-gallery .carousel-control-next { width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; }
    .login-gallery .carousel-control-prev { left: .65rem; }
    .login-gallery .carousel-control-next { right: .65rem; }
    .login-gallery .carousel-indicators { margin-bottom: .55rem; }
    .login-gallery .carousel-indicators button { width: 1.15rem; }
}
