@media (max-width:767px) {
html, body { min-height:100%; height:auto; }
.top-content, .inner-bg, .bgoffsetbg { min-height:100vh; }
.bgoffsetbg { position:relative; z-index:1; }
.loginbg, .loginbg .form-bottom, .loginbg form { position:relative; z-index:3; pointer-events:auto; }
.loginbg input, .loginbg button, .loginbg a { touch-action:manipulation; }
.text-wrap { height:auto; min-height:260px; }
}

/* The login banner shares the form width, including on narrow screens. */
.loginbg .form-top .logowidth > img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

.admin-login-links,
.admin-login-destinations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
}

.admin-login-links { justify-content: space-between; }
.admin-login-links a.forgot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin-top: 0;
}
