:root {
    --mo-blue-950: #04263f;
    --mo-blue-900: #063e7b;
    --mo-blue-700: #075e9e;
    --mo-blue-600: #0872b8;
    --mo-blue-500: #0b86c9;
    --mo-blue-400: #17a5e2;
    --mo-blue-300: #48c2f2;
    --mo-blue-50: #eef6fd;

    --mo-green-700: #158a3b;
    --mo-green-600: #27a838;
    --mo-green-500: #3fc029;
    --mo-green-400: #5ed83a;
    --mo-green-300: #8ce95a;

    --mo-white: #ffffff;
    --mo-bg: #f8fafc;
    --mo-text: #0a2b4f;
    --mo-muted: #5f7290;
    --mo-border: #dbe4ee;
    --mo-danger: #b3261e;

    --mo-radius-card: 20px;
    --mo-radius-field: 12px;
    --mo-shadow-card: 0 12px 34px rgba(4, 38, 63, 0.07);
    --mo-shadow-soft: 0 6px 18px rgba(4, 38, 63, 0.06);

    --mo-font: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body.auth-page {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--mo-font);
    color: var(--mo-text);
    background: var(--mo-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.auth-page img {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------
   Barra de versiculo (topo) - mantida em todos os tamanhos
--------------------------------------------- */
.auth-verse-bar {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px clamp(12px, 3vw, 40px);
    color: #ffffff;
    background: linear-gradient(
        90deg,
        var(--mo-blue-950) 0%,
        var(--mo-blue-600) 48%,
        var(--mo-green-700) 100%
    );
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    font-weight: 600;
    text-align: center;
}

.auth-verse-track {
    width: 100%;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.auth-verse-track i {
    color: var(--mo-green-300);
}

.auth-verse-reference {
    opacity: 0.82;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------------------------------------------
   Shell: duas colunas sem faixas brancas laterais
--------------------------------------------- */
.auth-shell {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
}

/* ---------------------------------------------
   Painel institucional
--------------------------------------------- */
.auth-brand-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            115deg,
            rgba(4, 38, 63, 0.94) 0%,
            rgba(6, 76, 134, 0.78) 46%,
            rgba(21, 138, 59, 0.62) 100%
        ),
        url("../img/painel-desktop-login.81773a56a589.webp?v=20260929") center / cover no-repeat;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(72, 194, 242, 0.2), transparent 42%),
        radial-gradient(circle at 88% 86%, rgba(94, 216, 58, 0.18), transparent 45%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 880px;
    margin-inline: auto;
    padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.2vh, 26px);
    text-align: center;
    overflow-y: auto;
}

.auth-brand-logo {
    align-self: center;
    display: inline-flex;
    padding: 0;
}

.auth-brand-logo img {
    display: block;
    width: clamp(116px, 10vw, 168px);
    height: auto;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45)) drop-shadow(0 8px 22px rgba(2, 20, 38, 0.3));
}

.auth-brand-copy {
    max-width: 660px;
    margin-inline: auto;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 13px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-brand-badge i {
    color: var(--mo-green-300);
}

.auth-brand-title {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 2.8vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.auth-brand-title strong {
    color: var(--mo-green-400);
}

.auth-brand-text {
    margin: 0 auto;
    max-width: 560px;
    font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

/* Modulos em itens discretos (sem cards brancos pesados) */
.auth-feature-grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.auth-feature {
    padding: 13px 10px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    color: #ffffff;
    box-shadow: none;
}

.auth-feature i {
    display: block;
    margin-bottom: 6px;
    font-size: 1.15rem;
    color: var(--mo-blue-300);
}

.auth-feature:nth-child(even) i {
    color: var(--mo-green-300);
}

.auth-feature strong {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.auth-feature small {
    display: block;
    margin-top: 3px;
    font-size: 0.68rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.76);
}

/* Versiculo ancorado no rodapé da area azul/verde */
.auth-verse-quote {
    margin: auto auto 0;
    max-width: 560px;
    padding-top: clamp(8px, 2vh, 20px);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.auth-verse-quote i {
    font-size: 1.7rem;
    color: var(--mo-green-300);
}

.auth-verse-quote div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-verse-quote strong {
    font-style: italic;
    font-size: clamp(0.85rem, 1vw, 0.98rem);
}

.auth-verse-quote span {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* ---------------------------------------------
   Painel de login
--------------------------------------------- */
.auth-login-panel {
    min-width: 0;
    min-height: 0;
    padding: clamp(24px, 4vh, 48px) clamp(22px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vh, 22px);
    background: var(--mo-bg);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: clamp(24px, 3vw, 34px);
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: var(--mo-radius-card);
    box-shadow: var(--mo-shadow-card);
}

.auth-card-header {
    margin-bottom: clamp(16px, 2.2vh, 22px);
    text-align: left;
}

.auth-restricted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 13px;
    border-radius: 99px;
    color: var(--mo-blue-950);
    background: linear-gradient(90deg, #daf8b3, #c6f7dd);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-card-title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 1.6vw, 1.62rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: var(--mo-green-600);
}

.auth-card-title .auth-title-brand {
    color: var(--mo-blue-700);
}

.auth-card-subtitle {
    margin: 0;
    color: var(--mo-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-sub-mobile {
    display: none;
}

.auth-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-alert {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.auth-alert--error {
    color: #8a1d16;
    background: #fdecec;
    border-color: #f6c9c6;
}

.auth-alert--success {
    color: #12602c;
    background: #eafaf0;
    border-color: #bfe9cf;
}

.auth-alert--info {
    color: #0a4a75;
    background: #eaf5ff;
    border-color: #c6e2f8;
}

.auth-alert--warning {
    color: #7a4c07;
    background: #fff6e5;
    border-color: #f5dfb3;
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: clamp(12px, 1.6vh, 16px);
}

.auth-card .form-control {
    min-height: 46px;
    border-radius: var(--mo-radius-field);
    border: 1px solid var(--mo-border);
}

.auth-card .form-control:focus {
    border-color: var(--mo-blue-500);
    box-shadow: 0 0 0 4px rgba(11, 134, 201, 0.12);
}

.auth-field .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mo-text);
}

.auth-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--mo-border);
    border-radius: var(--mo-radius-field);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input-group:focus-within {
    border-color: var(--mo-blue-500);
    box-shadow: 0 0 0 4px rgba(11, 134, 201, 0.12);
}

.auth-input-icon {
    width: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mo-blue-600);
    font-size: 1rem;
    background: #f2f7fc;
    border-right: 1px solid #eef2f7;
}

.auth-input-group .form-control,
.auth-input-group .mo-control {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mo-text);
    font-size: 0.95rem;
}

.auth-input-group .form-control:focus,
.auth-input-group .mo-control:focus {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.auth-input-group .form-control::placeholder {
    color: #93a4b8;
}

.auth-password-toggle {
    width: 46px;
    flex: 0 0 46px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.02rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover {
    color: var(--mo-blue-600);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--mo-blue-500);
    outline-offset: -2px;
}

.auth-field .errorlist,
.auth-field .invalid-feedback,
.auth-field-error {
    display: block;
    margin-top: 6px;
    padding: 0;
    color: var(--mo-danger);
    font-size: 0.78rem;
    list-style: none;
}

/* Manter conectado */
.auth-remember-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 clamp(14px, 1.8vh, 18px);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.auth-remember-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.auth-remember-switch {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 5px;
    background: #ffffff;
    border: 1.5px solid #c3d0de;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.auth-remember-switch::after {
    content: none;
}

.auth-remember-switch .bi {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
    color: transparent;
    z-index: 1;
}

.auth-remember-toggle input:checked + .auth-remember-switch {
    background: var(--mo-blue-600);
    border-color: var(--mo-blue-600);
}

.auth-remember-toggle input:checked + .auth-remember-switch .bi {
    color: #ffffff;
}

.auth-remember-toggle input:focus-visible + .auth-remember-switch {
    box-shadow: 0 0 0 4px rgba(11, 134, 201, 0.18);
}

/* Botao principal: centralizado e com largura contida */
.auth-login-button {
    width: min(100%, 300px);
    min-height: 48px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(
        100deg,
        var(--mo-blue-700) 0%,
        var(--mo-blue-500) 46%,
        var(--mo-green-500) 100%
    );
    box-shadow: 0 10px 24px rgba(7, 94, 158, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-login-button:hover,
.auth-login-button:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(7, 94, 158, 0.26);
}

.auth-login-button:active {
    transform: translateY(0);
}

.auth-login-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mo-blue-700);
    background: #ffffff;
}

.auth-login-icon .bi {
    font-size: 0.88rem;
}

.auth-link {
    display: block;
    width: fit-content;
    margin: clamp(12px, 1.6vh, 16px) auto 0;
    color: var(--mo-blue-900);
    font-size: 0.86rem;
    text-align: center;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: var(--mo-blue-600);
    text-decoration: underline;
}

/* Aviso de ambiente seguro: discreto */
.auth-security {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    margin-top: clamp(14px, 2vh, 20px);
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

.auth-security-icon {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mo-green-600);
    background: transparent;
    font-size: 0.95rem;
    box-shadow: none;
}

.auth-security-text {
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 6px;
}

.auth-security-text strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mo-text);
}

.auth-security-text span {
    color: var(--mo-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

/* Rodape do painel de login */
.auth-footer {
    flex: 0 0 auto;
    margin: 0;
    max-width: 560px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 8px;
    color: #64748b;
    font-size: 0.76rem;
    text-align: center;
}

.auth-footer strong {
    color: var(--mo-green-700);
}

.auth-footer-site {
    color: var(--mo-blue-700);
    text-decoration: none;
}

.auth-footer-site:hover,
.auth-footer-site:focus {
    text-decoration: underline;
}

/* Versiculo do rodape no mobile (somente login) */
.auth-mobile-verse {
    display: none;
    margin: 0;
    max-width: 440px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--mo-muted);
}

.auth-mobile-verse-text {
    display: block;
    font-style: italic;
}

.auth-mobile-verse-reference {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--mo-green-700);
}

/* ---------------------------------------------
   Demais telas de autenticacao (recuperacao, selecao)
--------------------------------------------- */
.auth-title {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    line-height: 1.2;
}

.auth-subtitle {
    margin: 0 0 18px;
    color: var(--mo-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.auth-note {
    margin: -8px 0 18px;
    color: var(--mo-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-choice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    color: var(--mo-text);
    background: #ffffff;
    border: 1px solid var(--mo-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-choice:hover,
.auth-choice:focus {
    border-color: var(--mo-blue-400);
    box-shadow: var(--mo-shadow-soft);
}

.auth-choice small {
    display: block;
    color: var(--mo-muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.auth-choice i {
    color: var(--mo-blue-500);
    font-size: 1.2rem;
}

.mo-btn-split {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--mo-radius-field);
    color: #ffffff;
    background: var(--mo-blue-700);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.mo-btn-split:hover,
.mo-btn-split:focus {
    color: #ffffff;
    filter: brightness(1.07);
    text-decoration: none;
}

.mo-btn-split.mo-btn-primary {
    background: linear-gradient(100deg, var(--mo-blue-700), var(--mo-blue-500));
    box-shadow: 0 10px 22px rgba(7, 94, 158, 0.2);
}

.mo-btn-split-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-card .btn {
    min-height: 46px;
    border-radius: var(--mo-radius-field);
    font-weight: 700;
}

.text-brand-green {
    color: var(--mo-green-700);
}

/* ---------------------------------------------
   Desktop grande
--------------------------------------------- */
@media (min-width: 1440px) {
    .auth-card {
        max-width: 460px;
    }

    .auth-brand-content {
        gap: clamp(16px, 2.6vh, 30px);
    }
}

/* ---------------------------------------------
   Notebook / tablet: coluna institucional menor
--------------------------------------------- */
@media (max-width: 1199px) {
    .auth-shell {
        grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    }

    .auth-brand-content {
        padding: clamp(20px, 3vh, 36px) clamp(18px, 2.6vw, 40px);
        gap: clamp(10px, 1.8vh, 18px);
    }

    .auth-brand-logo img {
        width: clamp(96px, 9vw, 140px);
    }

    .auth-brand-badge {
        margin-bottom: 10px;
        padding: 5px 11px;
        font-size: 0.68rem;
    }

    .auth-brand-title {
        font-size: clamp(1.45rem, 2.4vw, 2.1rem);
        margin-bottom: 9px;
    }

    .auth-brand-text {
        font-size: 0.9rem;
    }

    .auth-feature {
        padding: 11px 8px;
    }

    .auth-feature small {
        display: none;
    }

    .auth-verse-quote {
        padding-top: clamp(6px, 1.4vh, 12px);
    }

    .auth-verse-quote i {
        font-size: 1.4rem;
    }

    .auth-login-panel {
        padding: clamp(20px, 3vh, 36px) clamp(18px, 2.6vw, 36px);
    }

    .auth-card {
        max-width: 440px;
        padding: clamp(22px, 2.6vw, 30px);
    }
}

/* Coluna institucional estreita: modulos em grade 2x2 */
@media (max-width: 991px) {
    .auth-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 380px;
    }

    .auth-verse-quote {
        max-width: 320px;
    }

    .auth-verse-quote strong {
        font-size: 0.84rem;
    }
}

/* ---------------------------------------------
   Alturas baixas (ex.: 1366x768) - nada cortado
--------------------------------------------- */
@media (max-height: 820px) and (min-width: 992px) {
    .auth-verse-bar {
        padding: 6px clamp(12px, 3vw, 40px);
    }

    .auth-brand-content {
        padding-top: clamp(14px, 2.4vh, 26px);
        padding-bottom: clamp(14px, 2.4vh, 26px);
        gap: clamp(9px, 1.6vh, 16px);
    }

    .auth-brand-badge {
        display: none;
    }

    .auth-brand-logo img {
        width: clamp(96px, 9vw, 138px);
    }

    .auth-brand-title {
        font-size: clamp(1.5rem, 2.4vw, 2.15rem);
        margin-bottom: 8px;
    }

    .auth-brand-text {
        font-size: 0.9rem;
    }

    .auth-feature {
        padding: 10px 8px;
        border-radius: 12px;
    }

    .auth-feature i {
        margin-bottom: 4px;
        font-size: 1.05rem;
    }

    .auth-feature small {
        display: none;
    }

    .auth-verse-quote {
        padding-top: clamp(4px, 1.2vh, 10px);
    }

    .auth-login-panel {
        padding-top: clamp(14px, 2.4vh, 26px);
        padding-bottom: clamp(14px, 2.4vh, 26px);
        gap: clamp(10px, 1.6vh, 16px);
    }

    .auth-card {
        padding: clamp(20px, 2.4vh, 26px) clamp(22px, 2vw, 28px);
        border-radius: 18px;
    }

    .auth-card-header {
        margin-bottom: clamp(12px, 1.8vh, 16px);
    }

    .auth-card-title {
        font-size: clamp(1.28rem, 1.5vw, 1.5rem);
    }

    .auth-field {
        margin-bottom: clamp(10px, 1.4vh, 13px);
    }

    .auth-input-group .form-control,
    .auth-input-group .mo-control {
        min-height: 44px;
    }

    .auth-card .form-control {
        min-height: 44px;
    }

    .auth-remember-toggle {
        margin-bottom: clamp(12px, 1.6vh, 15px);
    }

    .auth-login-button {
        min-height: 46px;
    }

    .auth-link {
        margin-top: clamp(10px, 1.4vh, 13px);
    }

    .auth-security {
        margin-top: clamp(12px, 1.6vh, 16px);
    }

    .auth-footer {
        font-size: 0.72rem;
    }
}

/* ---------------------------------------------
   Mobile: apenas logo, formulario e rodape
--------------------------------------------- */
@media (max-width: 767px) {
    .auth-verse-bar {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .auth-verse-track {
        gap: 2px 8px;
    }

    .auth-verse-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-brand-panel {
        background:
            linear-gradient(
                160deg,
                rgba(4, 38, 63, 0.95) 0%,
                rgba(6, 84, 145, 0.82) 52%,
                rgba(21, 138, 59, 0.7) 100%
            ),
            url("../img/banner-mobile-login.a6a9b1adc061.webp?v=20260929") center 42% / cover no-repeat;
    }

    .auth-brand-content {
        height: auto;
        padding: 16px 16px 18px;
        gap: 0;
        justify-content: center;
        overflow: visible;
    }

    .auth-brand-copy,
    .auth-feature-grid,
    .auth-verse-quote {
        display: none;
    }

    .auth-brand-logo img {
        width: min(150px, 46vw);
    }

    .auth-login-panel {
        justify-content: flex-start;
        gap: 16px;
        padding: 4px 20px calc(22px + env(safe-area-inset-bottom));
        background: var(--mo-bg);
        overflow: visible;
    }

    .auth-card {
        max-width: 540px;
        margin-top: 0;
        padding: 24px 18px;
        border-radius: 18px;
    }

    .auth-card-header {
        margin-bottom: 18px;
    }

    .auth-card-title {
        font-size: clamp(1.28rem, 5.6vw, 1.5rem);
    }

    .auth-sub-desktop {
        display: none;
    }

    .auth-sub-mobile {
        display: inline;
    }

    .auth-card-subtitle {
        font-size: 0.88rem;
    }

    .auth-field {
        margin-bottom: 14px;
    }

    .auth-input-icon {
        width: 44px;
        flex-basis: 44px;
    }

    .auth-input-group .form-control,
    .auth-input-group .mo-control,
    .auth-card .form-control {
        min-height: 48px;
        font-size: 16px;
        padding: 0 13px;
    }

    .auth-password-toggle {
        width: 44px;
        flex-basis: 44px;
    }

    .auth-remember-toggle {
        margin-bottom: 18px;
    }

    .auth-login-button {
        width: min(100%, 240px);
        min-height: 48px;
        font-size: 0.94rem;
    }

    .auth-security {
        margin-top: 18px;
    }

    .auth-mobile-verse {
        display: block;
    }

    .auth-footer {
        max-width: 100%;
        font-size: 0.7rem;
    }

    .mo-btn-split {
        min-height: 48px;
    }
}

@media (max-width: 400px) {
    .auth-verse-bar {
        font-size: 0.65rem;
    }

    .auth-brand-content {
        padding: 14px 14px 16px;
    }

    .auth-brand-logo img {
        width: min(132px, 48vw);
    }

    .auth-login-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-card {
        padding: 22px 16px;
    }

    .auth-card-title {
        font-size: 1.24rem;
    }

    .auth-input-icon {
        width: 42px;
        flex-basis: 42px;
    }

    .auth-password-toggle {
        width: 42px;
        flex-basis: 42px;
    }

    .auth-login-button {
        width: min(100%, 220px);
    }

    .auth-footer {
        gap: 2px 7px;
        font-size: 0.68rem;
    }
}
