.adm-auth-mobile-brand {
    display: none;
}

@media (max-width: 991.98px) {
    .adm-auth-split {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Form first */
    .adm-auth-main {
        order: 1;
        flex: 1 0 auto;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 20px 20px 32px;
    }

    .adm-auth-main:has(.adm-auth-form-narrow) {
        justify-content: flex-start;
    }

    .adm-auth-form.adm-auth-form-narrow {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .adm-auth-mobile-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--adm-line, #f0e3e3);
    }

    .adm-auth-mobile-brand img {
        height: 40px;
        width: auto;
    }

    .adm-auth-mobile-brand span {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--adm-red-600, #d7141a);
    }

    /* The logo is already at the top – no second "Admin portal" pill on phones */
    .adm-auth-main .adm-auth-eyebrow {
        display: none;
    }
    .adm-auth-title {
        font-size: 28px;
        margin-bottom: 6px;
    }
    .adm-auth-text {
        margin-bottom: 20px;
    }

    /* Brand panel below the form, compact */
    .adm-auth-side {
        order: 2;
        gap: 16px;
        padding: 24px 20px 28px;
        border-right: 0;
        border-bottom: 0;
        border-top: 1px solid var(--adm-line, #f0e3e3);
    }

    .adm-auth-side::after {
        display: none;
    }
    .adm-auth-side .adm-auth-brand {
        display: none;
    }

    .adm-auth-features {
        gap: 12px;
        margin: 0;
    }
    .adm-auth-features li > span {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .adm-auth-features strong {
        font-size: 14px;
    }
    .adm-auth-features small {
        font-size: 12.5px;
    }

    /* Keep the security reminder on phones */
    .adm-auth-tip {
        display: flex !important;
        font-size: 12.5px;
    }

    /* Inputs at 16 px so iPhone doesn't zoom into the field */
    .adm-auth .form-control,
    .adm-auth .form-select {
        font-size: 16px;
    }
}
