body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    /* AdminLTE's .login-page sets height:100vh. Combined with align-items:center
       that clips the top of the card once the form is taller than the viewport
       (a 320x568 phone), and the clipped part can't be scrolled to. */
    height: auto;
    min-height: 100vh;
    padding: 16px;
    /* Room for the pinned footer (general.css .main-footer), so the bottom of the
       card can always be scrolled clear of it on a short phone. */
    padding-bottom: calc(16px + var(--app-footer-h));
}

.login-wrapper {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    /* alpha .45 was tuned for a dark ground; the page is #e9ecef, where it read
       as a smudge — most visibly under the 900px card on a laptop. */
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.11);
}

.login-image-panel {
    background: #E4F2FF;
    width: 100%;
    height: 100%;
    /* was 220px — a third of a 568px screen before the form even starts, which
       pushed the submit button below the fold. */
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.login-image-panel img {
    width: auto;
    max-width: 100%;
    /* height, not width — it is what decides whether the button clears the fold */
    max-height: 88px;
    display: block;
}

.login-form-box {
    padding: 24px 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.login-title {
    /* was #007bff — Bootstrap's default blue, next to the button's #2563eb.
       Two blues in one card; the app's own blue wins. */
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.login-subtitle {
    color: #5b6472;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 20px;
}

.login-hint {
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.45;
    margin: 12px 0 0;
}

.btn-login {
    background: #2563eb;
    color: #fff;
    /* sole owner of this value — general.css also set margin-top at the same
       specificity, so load order was deciding it. */
    margin-top: 1rem;
}

.btn-login:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-login:active {
    transform: scale(0.99);
}

.btn-login:disabled {
    background: #93b4f5;
    cursor: default;
}

@media (min-width: 576px) {
    .login-wrapper {
        max-width: 500px;
    }

    .login-image-panel {
        padding: 24px;
    }

    .login-image-panel img {
        max-height: 132px;
    }

    .login-form-box {
        padding: 32px 28px 36px;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        margin-bottom: 24px;
    }
}

@media (min-width: 768px) {
    body.login-page {
        padding: 24px;
    }

    .login-wrapper {
        max-width: 860px;
        border-radius: 28px;
    }

    /* No min-height here. The panel used to be pinned to 520/580px, which forced
       the whole card taller than its own content — the art is a 466x291 SVG, so
       it rendered 250px tall and left 250px of empty blue. The column stretches
       to the form's height on its own. */
    .login-image-panel {
        padding: 36px;
    }

    .login-image-panel img {
        width: 100%;
        max-height: none;
    }

    .login-form-box {
        padding: 44px 40px;
    }

    .login-title {
        font-size: 1.6rem;
        text-align: left;
    }

    .login-subtitle,
    .login-hint {
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .login-wrapper {
        /* 960 gave a 384px field floating in a 480px column */
        max-width: 900px;
    }

    .login-image-panel {
        padding: 44px;
    }

    .login-form-box {
        padding: 52px 48px;
    }

    .login-title {
        /* stayed at 1.6rem from 768px up while the card kept growing */
        font-size: 1.9rem;
    }
}
