/* =====================================================================
   TRADEACAD Login Premium v2
   Escopo: index.php e register.php
   Objetivo: visual fintech premium, escuro, limpo e profissional.
   Preserva classes antigas para compatibilidade com o HTML já existente.
   ===================================================================== */

:root {
    --ta-auth-bg: #030811;
    --ta-auth-card: rgba(8, 18, 32, 0.76);
    --ta-auth-card-strong: rgba(10, 25, 44, 0.88);
    --ta-auth-border: rgba(40, 224, 232, 0.24);
    --ta-auth-border-strong: rgba(40, 224, 232, 0.46);
    --ta-auth-cyan: #28e0e8;
    --ta-auth-blue: #1f7bff;
    --ta-auth-text: #f3fbff;
    --ta-auth-muted: #a9bfd4;
    --ta-auth-soft: #d7edf8;
    --ta-auth-danger: #ff6174;
    --ta-auth-success: #48e3a5;
}

* {
    box-sizing: border-box;
}

html,
body.login-body {
    min-height: 100%;
}

body.login-body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ta-auth-text);
    background-color: var(--ta-auth-bg);
    background-image: url('../images/login-background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

body.login-body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 18%, rgba(40, 224, 232, 0.16), transparent 30%),
        radial-gradient(circle at 14% 80%, rgba(31, 123, 255, 0.14), transparent 34%),
        linear-gradient(90deg, rgba(2, 8, 16, 0.86), rgba(2, 8, 16, 0.62) 48%, rgba(2, 8, 16, 0.88));
}

body.login-body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 106%, rgba(40, 224, 232, 0.10), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.018), transparent 28%, rgba(0,0,0,0.18));
    opacity: .9;
}

.titan-login-container {
    position: fixed;
    inset: 18px;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(40, 224, 232, 0.13);
    border-radius: 30px;
    box-shadow: inset 0 0 42px rgba(40, 224, 232, 0.045);
}


.auth-home-button {
    position: fixed;
    top: clamp(1rem, 2.4vw, 2rem);
    right: clamp(1rem, 2.6vw, 3rem);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 44px;
    padding: .65rem 1.05rem;
    border: 1px solid rgba(40, 224, 232, .38);
    border-radius: 999px;
    color: #dffcff !important;
    background: linear-gradient(145deg, rgba(7, 21, 38, .82), rgba(4, 12, 24, .62));
    box-shadow: 0 18px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.auth-home-button:hover,
.auth-home-button:focus {
    color: #ffffff !important;
    border-color: rgba(40, 224, 232, .68);
    background: linear-gradient(145deg, rgba(11, 35, 58, .90), rgba(5, 18, 32, .76));
    transform: translateY(-1px);
}

.auth-home-button i {
    color: var(--ta-auth-cyan);
}

.auth-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 3rem);
}

.auth-layout {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4.2rem);
}

.auth-brand-panel {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.75rem);
}

.auth-brand-kicker {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .85rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(40, 224, 232, 0.22);
    border-radius: 999px;
    color: #c8f8ff;
    background: rgba(8, 20, 36, 0.58);
    backdrop-filter: blur(14px);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-brand-kicker span {
    width: .52rem;
    height: .52rem;
    border-radius: 999px;
    background: var(--ta-auth-cyan);
    box-shadow: 0 0 14px rgba(40, 224, 232, .72);
}

.auth-logo-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-logo-mark {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    border: 1px solid rgba(40, 224, 232, 0.42);
    background:
        linear-gradient(145deg, rgba(40,224,232,.2), rgba(31,123,255,.1)),
        rgba(3, 12, 24, 0.62);
    box-shadow: 0 18px 46px rgba(0,0,0,.38), inset 0 0 22px rgba(40,224,232,.08);
    color: #eafcff;
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -.08em;
}

.auth-logo-name {
    color: #eafcff;
    font-size: clamp(1.55rem, 3.3vw, 2.45rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
}

.auth-logo-subtitle {
    margin-top: .45rem;
    color: var(--ta-auth-muted);
    font-size: .92rem;
    letter-spacing: .04em;
}

.auth-brand-panel h1 {
    max-width: 700px;
    margin: 0 0 1rem;
    color: #f5fcff;
    font-size: clamp(2.1rem, 4.7vw, 4.8rem);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 800;
}

.auth-lead {
    max-width: 660px;
    margin: 0 0 2rem;
    color: var(--ta-auth-muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.auth-market-card {
    width: min(520px, 100%);
    border: 1px solid rgba(40, 224, 232, 0.20);
    border-radius: 26px;
    padding: 1.15rem;
    background: linear-gradient(145deg, rgba(9, 25, 43, .72), rgba(4, 12, 24, .48));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
}

.market-card-topline,
.market-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
}

.market-card-topline span {
    color: #d8faff;
    font-weight: 600;
}

.market-card-topline strong {
    padding: .25rem .58rem;
    border-radius: 999px;
    color: #9ffaff;
    background: rgba(40, 224, 232, .08);
    border: 1px solid rgba(40, 224, 232, .20);
    font-size: .72rem;
    letter-spacing: .09em;
}

.market-chart-strip {
    position: relative;
    height: 112px;
    margin: 1.1rem 0;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 22%, rgba(40,224,232,.16), transparent 34%),
        linear-gradient(135deg, rgba(5, 18, 34, .64), rgba(2, 8, 16, .46));
    border: 1px solid rgba(40, 224, 232, .08);
    box-shadow: inset 0 0 28px rgba(40, 224, 232, .045);
}

.auth-mini-chart-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.candle {
    position: absolute;
    bottom: 22px;
    width: 13px;
    border-radius: 4px;
    opacity: .9;
}

.candle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    width: 2px;
    height: calc(100% + 36px);
    transform: translateX(-50%);
    opacity: .48;
    background: currentColor;
}

.candle.red { color: #ff4d5f; background: linear-gradient(#ff6575, #b51325); left: 18%; }
.candle.green { color: #34e39b; background: linear-gradient(#5fffc2, #109b65); }
.candle:nth-child(2) { left: 31%; }
.candle:nth-child(3) { left: 45%; }
.candle:nth-child(4) { left: 60%; }
.candle:nth-child(5) { left: 74%; }
.candle.h35 { height: 35px; }
.candle.h42 { height: 42px; }
.candle.h48 { height: 48px; }
.candle.h66 { height: 66px; }
.candle.h76 { height: 76px; }

.trend-line {
    position: absolute;
    left: 13%;
    right: 12%;
    bottom: 38px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(40,224,232,.88), transparent);
    transform: rotate(-10deg);
    transform-origin: left center;
    box-shadow: 0 0 18px rgba(40,224,232,.42);
}

.market-metrics > div {
    flex: 1;
    padding: .85rem;
    border-radius: 17px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}

.market-metrics small {
    display: block;
    color: #89a4ba;
    font-size: .72rem;
    margin-bottom: .2rem;
}

.market-metrics b {
    color: #e8fbff;
    font-size: .9rem;
}

.auth-benefits-card {
    max-width: 560px;
}

.auth-benefit-list {
    display: grid;
    gap: .8rem;
    margin-top: 1.1rem;
}

.auth-benefit-list > div {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    color: #d9edf7;
}

.auth-benefit-list i {
    color: var(--ta-auth-cyan);
}

.auth-form-panel {
    width: 100%;
}

.card-titan-style,
.login-body .card.card-titan-style {
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: var(--ta-auth-text) !important;
    background:
        linear-gradient(145deg, rgba(11, 28, 48, .88), rgba(5, 13, 25, .78)) !important;
    border: 1px solid var(--ta-auth-border) !important;
    border-radius: 28px !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.05) !important;
    backdrop-filter: blur(20px);
}

.card-titan-style::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(40,224,232,.12), transparent 34%, rgba(31,123,255,.08));
    opacity: .9;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-card {
    padding: clamp(1.25rem, 2.4vw, 2rem) !important;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: .95rem;
    margin-bottom: 1.35rem;
}

.auth-card-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--ta-auth-cyan);
    background: rgba(40,224,232,.08);
    border: 1px solid rgba(40,224,232,.22);
}

.card-header-titan-style {
    margin: 0 !important;
    color: #f5fcff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.015em;
    text-shadow: none;
}

.auth-card-header p {
    margin: .28rem 0 0;
    color: var(--ta-auth-muted);
    font-size: .9rem;
}

.form-label-titan-style {
    margin-bottom: .42rem;
    color: #c7edf4 !important;
    font-weight: 600;
    font-size: .88rem;
    text-shadow: none;
}

.auth-input-group {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.input-group-text-titan-style {
    min-width: 48px;
    justify-content: center;
    color: var(--ta-auth-cyan) !important;
    background: rgba(2, 8, 15, .48) !important;
    border: 1px solid rgba(113, 151, 177, .22) !important;
    border-right: none !important;
}

.input-group-text-titan-style i {
    color: var(--ta-auth-cyan) !important;
    text-shadow: none;
}

.form-control-titan-style {
    min-height: 48px;
    color: #f2fbff !important;
    background: rgba(2, 8, 15, .38) !important;
    border: 1px solid rgba(113, 151, 177, .22) !important;
    border-left: none !important;
    border-radius: 0 16px 16px 0 !important;
    box-shadow: none !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-control-titan-style:focus {
    color: #fff !important;
    background: rgba(4, 15, 28, .68) !important;
    border-color: var(--ta-auth-border-strong) !important;
    box-shadow: 0 0 0 .2rem rgba(40, 224, 232, .10) !important;
}

.form-control-titan-style::placeholder {
    color: #738ca3 !important;
    opacity: 1;
}

.btn-titan-style-primary {
    min-height: 50px;
    border: 0 !important;
    border-radius: 16px;
    color: #021018 !important;
    font-weight: 800;
    letter-spacing: .015em;
    background: linear-gradient(135deg, #42f1ee, #2ca8ff) !important;
    box-shadow: 0 16px 34px rgba(40, 224, 232, .20) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-titan-style-primary:hover,
.btn-titan-style-primary:focus {
    color: #011018 !important;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 20px 42px rgba(40, 224, 232, .26) !important;
}

.btn-titan-style-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #77f4ff !important;
    font-weight: 800;
    border: 1px solid rgba(40, 224, 232, .42) !important;
    background: rgba(3, 14, 27, .34) !important;
    box-shadow: inset 0 0 22px rgba(40, 224, 232, .035) !important;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn-titan-style-secondary:hover,
.btn-titan-style-secondary:focus {
    color: #ffffff !important;
    border-color: rgba(40, 224, 232, .72) !important;
    background: rgba(8, 28, 48, .58) !important;
    transform: translateY(-1px);
}

.alert-titan-style {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(3, 12, 24, .62);
    color: #f8fdff;
    padding: .9rem 1rem;
    font-weight: 500;
}

.alert-titan-style.alert-danger {
    border-color: rgba(255, 97, 116, .44);
    box-shadow: none;
}

.alert-titan-style.alert-success {
    border-color: rgba(72, 227, 165, .44);
    box-shadow: none;
}

.hr-titan-style {
    border-color: rgba(132, 219, 230, .20) !important;
    opacity: 1;
}

.footer-text-titan-style p,
.footer-text-titan-style,
.auth-checkline label {
    color: var(--ta-auth-muted) !important;
}

.footer-text-titan-style a,
.auth-checkline a,
.footer-text-titan-style a.text-info,
.legal-link.text-info {
    color: #71f3ff !important;
    text-decoration: none;
    font-weight: 700;
}

.footer-text-titan-style a:hover,
.auth-checkline a:hover {
    color: #ffffff !important;
    text-shadow: none;
}

.form-check-input-titan,
.form-check-input.form-check-input-titan {
    background-color: rgba(2, 8, 15, .55);
    border: 1px solid rgba(113, 151, 177, .34);
}

.form-check-input-titan:checked,
.form-check-input.form-check-input-titan:checked {
    background-color: var(--ta-auth-cyan);
    border-color: var(--ta-auth-cyan);
}

.recaptcha-wrap {
    overflow: visible;
}

.g-recaptcha {
    filter: saturate(.88) brightness(.96);
    border-radius: 8px;
}

.auth-legal-modal {
    background: #0b1728;
    color: #f8fdff;
    border: 1px solid rgba(40,224,232,.22);
    border-radius: 22px;
}

.register-card .mb-3 {
    margin-bottom: .82rem !important;
}

.register-card .form-control-titan-style {
    min-height: 45px;
}

@media (max-width: 991.98px) {
    body.login-body {
        background-position: center;
        background-attachment: scroll;
    }

    .auth-shell {
        align-items: flex-start;
        padding: 1.25rem;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: .75rem .25rem 0;
    }

    .auth-brand-panel h1,
    .auth-lead,
    .auth-market-card {
        max-width: 100%;
    }

    .auth-market-card {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-home-button {
        position: relative;
        top: auto;
        right: auto;
        z-index: 4;
        margin: .85rem auto 0;
        width: calc(100% - 1.9rem);
    }

    .titan-login-container {
        inset: 10px;
        border-radius: 22px;
    }

    .auth-shell {
        padding: .95rem;
    }

    .auth-logo-mark {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        font-size: 1.2rem;
    }

    .auth-logo-name {
        font-size: 1.32rem;
    }

    .auth-brand-panel h1 {
        font-size: 2rem;
    }

    .auth-card {
        border-radius: 22px !important;
        padding: 1.1rem !important;
    }

    .auth-card-header {
        align-items: flex-start;
    }

    .auth-card-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .card-header-titan-style {
        font-size: 1.16rem;
    }

    .g-recaptcha {
        transform: scale(.88);
        transform-origin: center;
    }
}

@media (max-height: 840px) and (min-width: 992px) {
    .auth-shell {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .auth-brand-panel {
        min-height: 0;
    }

    .auth-brand-panel h1 {
        font-size: clamp(2rem, 4vw, 3.65rem);
    }

    .auth-lead {
        margin-bottom: 1.1rem;
    }

    .market-chart-strip {
        height: 86px;
    }

    .auth-card {
        padding: 1.25rem !important;
    }

    .register-card .mb-3 {
        margin-bottom: .55rem !important;
    }

    .register-card .form-control-titan-style {
        min-height: 42px;
    }
}

/* =====================================================================
   Hotfix v119 - Login TradeAcad em celulares
   Objetivo: impedir deslocamento horizontal do formulário, reduzir altura
   excessiva do hero e manter o reCAPTCHA dentro da área útil do mobile.
   ===================================================================== */
@media (max-width: 767.98px) {
    html,
    body.login-body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body.login-body {
        min-height: 100svh;
        background-attachment: scroll;
        background-position: center top;
    }

    .titan-login-container {
        inset: 8px;
        border-radius: 22px;
    }

    .auth-home-button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 6;
        width: min(100% - 28px, 420px);
        margin: 12px auto 0;
        padding: .72rem .9rem;
        min-height: 42px;
        white-space: normal;
        text-align: center;
        font-size: .84rem;
    }

    .auth-home-button span {
        display: inline;
        overflow-wrap: anywhere;
    }

    .auth-shell {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        display: block;
        padding: 14px 12px calc(22px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    .auth-layout {
        width: min(100%, 430px);
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        margin: 0 auto;
    }

    .auth-brand-panel,
    .auth-form-panel,
    .auth-card,
    .login-body .card.card-titan-style {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .auth-brand-panel {
        min-height: auto !important;
        padding: .75rem .2rem .2rem !important;
        text-align: left;
    }

    .auth-brand-kicker {
        margin-bottom: .85rem;
        font-size: .66rem;
        padding: .45rem .65rem;
    }

    .auth-logo-lockup {
        gap: .75rem;
        margin-bottom: 1rem;
    }

    .auth-logo-mark {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 16px;
        font-size: 1.06rem;
    }

    .auth-logo-name {
        font-size: clamp(1.08rem, 7vw, 1.38rem);
        letter-spacing: .075em;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .auth-logo-subtitle {
        margin-top: .25rem;
        font-size: .78rem;
        line-height: 1.25;
    }

    .auth-brand-panel h1 {
        max-width: 100%;
        margin-bottom: .7rem;
        font-size: clamp(1.82rem, 10vw, 2.45rem) !important;
        line-height: 1.02;
        letter-spacing: -.05em;
        text-wrap: balance;
    }

    .auth-lead {
        max-width: 100%;
        margin-bottom: .25rem;
        font-size: .94rem;
        line-height: 1.55;
    }

    .auth-market-card {
        display: none !important;
    }

    .auth-card {
        padding: 1rem !important;
        border-radius: 22px !important;
    }

    .auth-card-header {
        align-items: flex-start;
        gap: .72rem;
        margin-bottom: 1rem;
    }

    .auth-card-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 15px;
    }

    .card-header-titan-style {
        font-size: 1.08rem !important;
        line-height: 1.15;
    }

    .auth-card-header p {
        font-size: .82rem;
        line-height: 1.35;
    }

    .form-label-titan-style {
        font-size: .82rem;
    }

    .input-group-text-titan-style {
        min-width: 42px;
    }

    .form-control-titan-style {
        min-height: 46px;
        font-size: .92rem;
    }

    .recaptcha-wrap {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem !important;
    }

    .g-recaptcha {
        transform: scale(.86);
        transform-origin: center center;
        max-width: 304px;
    }

    .btn-titan-style-primary {
        min-height: 48px;
        border-radius: 15px;
        font-size: .92rem;
    }

    .footer-text-titan-style {
        font-size: .86rem;
    }
}

@media (max-width: 374.98px) {
    .auth-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-brand-panel h1 {
        font-size: clamp(1.62rem, 9.2vw, 2.05rem) !important;
    }

    .auth-lead {
        font-size: .88rem;
    }

    .auth-card {
        padding: .9rem !important;
    }

    .g-recaptcha {
        transform: scale(.80);
    }
}


/* =====================================================================
   Hotfix v120 - Login mobile vertical real
   Objetivo: evitar layout em duas colunas em celulares, inclusive quando
   o navegador usa viewport ampliado/desktop-mode. Também encurta o CTA
   de retorno no mobile para não comprimir o card de login.
   ===================================================================== */
.auth-home-label-short {
    display: none;
}

@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
    html,
    body.login-body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.login-body {
        min-height: 100svh;
        background-attachment: scroll !important;
        background-position: center top !important;
    }

    .titan-login-container {
        position: fixed;
        inset: 8px !important;
        border-radius: 22px !important;
    }

    .auth-home-button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 7 !important;
        width: min(calc(100% - 24px), 460px) !important;
        min-height: 44px !important;
        margin: 12px auto 0 !important;
        padding: .72rem 1rem !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .auth-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        display: block !important;
        padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
    }

    .auth-layout {
        width: min(100%, 460px) !important;
        max-width: 460px !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        margin: 0 auto !important;
    }

    .auth-brand-panel,
    .auth-form-panel,
    .auth-card,
    .login-body .card.card-titan-style {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .auth-brand-panel {
        order: 1 !important;
        min-height: auto !important;
        padding: .8rem .25rem .15rem !important;
        display: block !important;
    }

    .auth-form-panel {
        order: 2 !important;
    }

    .auth-brand-kicker {
        margin-bottom: .75rem !important;
        font-size: .68rem !important;
        padding: .45rem .65rem !important;
    }

    .auth-logo-lockup {
        gap: .75rem !important;
        margin-bottom: .85rem !important;
    }

    .auth-logo-mark {
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        border-radius: 15px !important;
        font-size: 1rem !important;
    }

    .auth-logo-name {
        font-size: clamp(1.06rem, 4.8vw, 1.38rem) !important;
        line-height: 1.05 !important;
        letter-spacing: .07em !important;
        overflow-wrap: anywhere !important;
    }

    .auth-logo-subtitle {
        margin-top: .22rem !important;
        font-size: .78rem !important;
        line-height: 1.25 !important;
    }

    .auth-brand-panel h1 {
        max-width: 100% !important;
        margin: 0 0 .7rem !important;
        font-size: clamp(2rem, 8vw, 2.75rem) !important;
        line-height: 1 !important;
        letter-spacing: -.052em !important;
        text-wrap: balance;
    }

    .auth-lead {
        max-width: 100% !important;
        margin: 0 !important;
        font-size: .94rem !important;
        line-height: 1.55 !important;
    }

    .auth-market-card {
        display: none !important;
    }

    .auth-card {
        padding: 1rem !important;
        border-radius: 22px !important;
    }

    .auth-card-header {
        align-items: flex-start !important;
        gap: .72rem !important;
        margin-bottom: 1rem !important;
    }

    .auth-card-icon {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        border-radius: 15px !important;
    }

    .card-header-titan-style {
        font-size: 1.08rem !important;
        line-height: 1.15 !important;
    }

    .auth-card-header p {
        font-size: .82rem !important;
        line-height: 1.35 !important;
    }

    .recaptcha-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }

    .g-recaptcha {
        transform: scale(.86) !important;
        transform-origin: center center !important;
        max-width: 304px !important;
    }
}

@media (max-width: 767.98px), (hover: none) and (pointer: coarse) {
    .auth-home-label-full {
        display: none !important;
    }

    .auth-home-label-short {
        display: inline !important;
    }
}

@media (max-width: 430px) {
    .auth-shell {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .auth-layout {
        max-width: 100% !important;
    }

    .auth-brand-panel h1 {
        font-size: clamp(1.78rem, 9.2vw, 2.35rem) !important;
    }

    .auth-lead {
        font-size: .88rem !important;
    }

    .auth-card {
        padding: .92rem !important;
    }

    .g-recaptcha {
        transform: scale(.82) !important;
    }
}

@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(.78) !important;
    }
}


/* =====================================================================
   Hotfix v121 - Login mobile forçado para navegadores que mantêm viewport
   largo no celular ou cache de media query. Não altera desktop comum.
   ===================================================================== */
html.ta-auth-mobile-force,
html.ta-auth-mobile-force body.login-body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

html.ta-auth-mobile-force body.login-body {
    min-height: 100svh !important;
    background-attachment: scroll !important;
    background-position: center top !important;
}

html.ta-auth-mobile-force .titan-login-container {
    inset: 8px !important;
    border-radius: 22px !important;
}

html.ta-auth-mobile-force .auth-home-button {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 6 !important;
    width: min(100% - 24px, 430px) !important;
    max-width: 430px !important;
    margin: 12px auto 0 !important;
    padding: .72rem .9rem !important;
    min-height: 42px !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: .84rem !important;
}

html.ta-auth-mobile-force .auth-home-label-full {
    display: none !important;
}

html.ta-auth-mobile-force .auth-home-label-short {
    display: inline !important;
}

html.ta-auth-mobile-force .auth-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 12px 10px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
}

html.ta-auth-mobile-force .auth-layout {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 auto !important;
}

html.ta-auth-mobile-force .auth-brand-panel,
html.ta-auth-mobile-force .auth-form-panel,
html.ta-auth-mobile-force .auth-card,
html.ta-auth-mobile-force .login-body .card.card-titan-style {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

html.ta-auth-mobile-force .auth-brand-panel {
    order: 1 !important;
    min-height: auto !important;
    padding: .65rem .2rem 0 !important;
    display: block !important;
    text-align: left !important;
}

html.ta-auth-mobile-force .auth-form-panel {
    order: 2 !important;
}

html.ta-auth-mobile-force .auth-brand-kicker,
html.ta-auth-mobile-force .auth-logo-lockup,
html.ta-auth-mobile-force .auth-market-card {
    display: none !important;
}

html.ta-auth-mobile-force .auth-brand-panel h1 {
    max-width: 100% !important;
    margin: 0 0 .55rem !important;
    font-size: clamp(1.9rem, 10.5vw, 2.65rem) !important;
    line-height: .98 !important;
    letter-spacing: -.052em !important;
    text-wrap: balance;
}

html.ta-auth-mobile-force .auth-lead {
    max-width: 100% !important;
    margin: 0 0 .25rem !important;
    font-size: .9rem !important;
    line-height: 1.48 !important;
}

html.ta-auth-mobile-force .auth-card {
    padding: 1rem !important;
    border-radius: 22px !important;
}

html.ta-auth-mobile-force .auth-card-header {
    align-items: flex-start !important;
    gap: .72rem !important;
    margin-bottom: 1rem !important;
}

html.ta-auth-mobile-force .auth-card-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 15px !important;
}

html.ta-auth-mobile-force .card-header-titan-style {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 1.08rem !important;
    line-height: 1.15 !important;
}

html.ta-auth-mobile-force .auth-card-header p {
    font-size: .82rem !important;
    line-height: 1.35 !important;
}

html.ta-auth-mobile-force .form-label-titan-style {
    font-size: .82rem !important;
}

html.ta-auth-mobile-force .input-group-text-titan-style {
    min-width: 42px !important;
}

html.ta-auth-mobile-force .form-control-titan-style {
    min-height: 46px !important;
    font-size: .92rem !important;
}

html.ta-auth-mobile-force .recaptcha-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

html.ta-auth-mobile-force .g-recaptcha {
    transform: scale(.86) !important;
    transform-origin: center center !important;
    max-width: 304px !important;
}

html.ta-auth-mobile-force .btn-titan-style-primary {
    min-height: 48px !important;
    border-radius: 15px !important;
    font-size: .92rem !important;
}

html.ta-auth-mobile-force .footer-text-titan-style {
    font-size: .86rem !important;
}

@media (max-width: 430px) {
    html.ta-auth-mobile-force .auth-shell {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    html.ta-auth-mobile-force .auth-brand-panel h1 {
        font-size: clamp(1.78rem, 9.4vw, 2.35rem) !important;
    }

    html.ta-auth-mobile-force .auth-lead {
        font-size: .86rem !important;
    }

    html.ta-auth-mobile-force .auth-card {
        padding: .92rem !important;
    }

    html.ta-auth-mobile-force .g-recaptcha {
        transform: scale(.82) !important;
    }
}

@media (max-width: 360px) {
    html.ta-auth-mobile-force .g-recaptcha {
        transform: scale(.78) !important;
    }
}


/* =====================================================================
   Hotfix v122 - Login mobile hardlock final
   Reforço no CSS externo. A regra principal também foi incluída inline
   no index.php para vencer cache/ordem de carregamento em celulares.
   ===================================================================== */
@media screen and (max-width: 1024px), (hover: none) and (pointer: coarse), (pointer: coarse) {
    html, body.login-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    body.login-body {
        min-height: 100svh !important;
        background-attachment: scroll !important;
        background-position: center top !important;
    }
    .auth-home-button {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: min(calc(100vw - 28px), 430px) !important;
        max-width: calc(100vw - 28px) !important;
        margin: 12px auto 0 !important;
    }
    .auth-home-label-full { display: none !important; }
    .auth-home-label-short { display: inline !important; }
    .auth-shell.container-fluid, .auth-shell {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        min-height: auto !important;
        padding: 12px 10px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
    }
    .auth-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: min(calc(100vw - 20px), 430px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        gap: 12px !important;
    }
    .auth-brand-panel, .auth-form-panel, .auth-card, .login-body .card.card-titan-style {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }
    .auth-brand-panel {
        order: 1 !important;
        min-height: auto !important;
        padding: .65rem .2rem 0 !important;
    }
    .auth-form-panel { order: 2 !important; }
    .auth-brand-kicker, .auth-logo-lockup, .auth-market-card { display: none !important; }
    .auth-brand-panel h1 {
        margin: 0 0 .55rem !important;
        font-size: clamp(1.85rem, 10vw, 2.65rem) !important;
        line-height: .98 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
    .auth-lead {
        margin: 0 0 .25rem !important;
        font-size: .9rem !important;
        line-height: 1.48 !important;
    }
    .auth-card { padding: 1rem !important; border-radius: 22px !important; }
    .card-header-titan-style { white-space: normal !important; overflow-wrap: anywhere !important; }
    .recaptcha-wrap { width: 100% !important; max-width: 100% !important; overflow: hidden !important; }
    .g-recaptcha { transform: scale(.84) !important; transform-origin: center center !important; max-width: 304px !important; }
}


/* =====================================================================
   Hotfix v123 - Login mobile server-lock
   Esta camada NÃO depende de media query nem de JavaScript.
   O PHP adiciona body.auth-mobile-server em celulares reais, e estas
   regras vencem o grid desktop e o display:flex herdado de styles.css.
   ===================================================================== */
html.ta-auth-mobile-server,
html.ta-auth-mobile-server body.login-body,
body.login-body.auth-mobile-server {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

body.login-body.auth-mobile-server {
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    min-height: 100svh !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background-attachment: scroll !important;
    background-position: center top !important;
}

body.login-body.auth-mobile-server::before,
body.login-body.auth-mobile-server::after {
    width: 100% !important;
    max-width: 100% !important;
}

body.login-body.auth-mobile-server .titan-login-container {
    inset: 8px !important;
    border-radius: 22px !important;
}

body.login-body.auth-mobile-server .auth-home-button {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    inset: auto !important;
    transform: none !important;
    z-index: 10 !important;
    display: flex !important;
    width: min(calc(100vw - 28px), 420px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 12px auto 0 !important;
    padding: .7rem .95rem !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: .84rem !important;
    line-height: 1.15 !important;
}

body.login-body.auth-mobile-server .auth-home-label-full { display: none !important; }
body.login-body.auth-mobile-server .auth-home-label-short { display: inline !important; }

body.login-body.auth-mobile-server .auth-shell.container-fluid,
body.login-body.auth-mobile-server .auth-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
}

body.login-body.auth-mobile-server .auth-layout,
html.ta-auth-mobile-server .auth-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: min(calc(100vw - 24px), 420px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.login-body.auth-mobile-server .auth-brand-panel,
body.login-body.auth-mobile-server .auth-form-panel,
body.login-body.auth-mobile-server .auth-card,
body.login-body.auth-mobile-server .login-body .card.card-titan-style,
body.login-body.auth-mobile-server .card.card-titan-style {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

body.login-body.auth-mobile-server .auth-brand-panel {
    order: 1 !important;
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    padding: .45rem .12rem 0 !important;
    text-align: left !important;
}

body.login-body.auth-mobile-server .auth-form-panel {
    order: 2 !important;
}

body.login-body.auth-mobile-server .auth-brand-kicker,
body.login-body.auth-mobile-server .auth-logo-lockup,
body.login-body.auth-mobile-server .auth-market-card {
    display: none !important;
}

body.login-body.auth-mobile-server .auth-brand-panel h1 {
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 .55rem !important;
    font-size: clamp(1.75rem, 9vw, 2.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.05em !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    text-wrap: balance;
}

body.login-body.auth-mobile-server .auth-lead {
    max-width: 100% !important;
    margin: 0 0 .25rem !important;
    font-size: .88rem !important;
    line-height: 1.48 !important;
}

body.login-body.auth-mobile-server .auth-card {
    padding: 1rem !important;
    border-radius: 22px !important;
    overflow: hidden !important;
}

body.login-body.auth-mobile-server .auth-card-header {
    align-items: flex-start !important;
    gap: .72rem !important;
    margin-bottom: 1rem !important;
}

body.login-body.auth-mobile-server .auth-card-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 15px !important;
}

body.login-body.auth-mobile-server .card-header-titan-style {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 1.06rem !important;
    line-height: 1.15 !important;
}

body.login-body.auth-mobile-server .auth-card-header p,
body.login-body.auth-mobile-server .footer-text-titan-style {
    font-size: .84rem !important;
    line-height: 1.35 !important;
}

body.login-body.auth-mobile-server .auth-input-group,
body.login-body.auth-mobile-server .input-group,
body.login-body.auth-mobile-server .form-control-titan-style {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.login-body.auth-mobile-server .form-control-titan-style {
    min-height: 46px !important;
    font-size: .92rem !important;
}

body.login-body.auth-mobile-server .recaptcha-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

body.login-body.auth-mobile-server .g-recaptcha {
    transform: scale(.84) !important;
    transform-origin: center center !important;
    max-width: 304px !important;
}

body.login-body.auth-mobile-server .btn-titan-style-primary {
    min-height: 48px !important;
    border-radius: 15px !important;
    font-size: .92rem !important;
}

@media (max-width: 360px) {
    body.login-body.auth-mobile-server .auth-layout {
        width: min(calc(100vw - 18px), 420px) !important;
        max-width: calc(100vw - 18px) !important;
    }
    body.login-body.auth-mobile-server .auth-shell.container-fluid,
    body.login-body.auth-mobile-server .auth-shell {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
    body.login-body.auth-mobile-server .g-recaptcha {
        transform: scale(.78) !important;
    }
}


/* =====================================================================
   v124 - Login mobile final: trava o layout em uma coluna por classe de
   servidor e por data-attribute, sem depender apenas de media queries.
   Corrige disputa com styles.css e com navegadores móveis que preservam
   layout desktop.
   ===================================================================== */
html.ta-auth-mobile-server,
html.ta-auth-mobile-force,
body.login-body.auth-mobile-server,
body.login-body.auth-mobile-force,
body.login-body[data-auth-mobile="1"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

body.login-body.auth-mobile-server,
body.login-body.auth-mobile-force,
body.login-body[data-auth-mobile="1"] {
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    min-height: 100svh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background-attachment: scroll !important;
    background-position: center top !important;
}

body.login-body[data-auth-mobile="1"] .auth-shell,
body.login-body[data-auth-mobile="1"] .auth-shell.container-fluid,
body.login-body.auth-mobile-server .auth-shell,
body.login-body.auth-mobile-server .auth-shell.container-fluid,
html.ta-auth-mobile-server .auth-shell,
html.ta-auth-mobile-force .auth-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    align-items: initial !important;
    justify-content: initial !important;
}

body.login-body[data-auth-mobile="1"] .auth-layout,
body.login-body.auth-mobile-server .auth-layout,
body.login-body.auth-mobile-force .auth-layout,
html.ta-auth-mobile-server .auth-layout,
html.ta-auth-mobile-force .auth-layout {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    width: min(430px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

body.login-body[data-auth-mobile="1"] .auth-brand-panel,
body.login-body[data-auth-mobile="1"] .auth-form-panel,
body.login-body[data-auth-mobile="1"] .auth-card,
body.login-body[data-auth-mobile="1"] .card.card-titan-style,
html.ta-auth-mobile-server .auth-brand-panel,
html.ta-auth-mobile-server .auth-form-panel,
html.ta-auth-mobile-server .auth-card,
html.ta-auth-mobile-server .card.card-titan-style,
html.ta-auth-mobile-force .auth-brand-panel,
html.ta-auth-mobile-force .auth-form-panel,
html.ta-auth-mobile-force .auth-card,
html.ta-auth-mobile-force .card.card-titan-style {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

body.login-body[data-auth-mobile="1"] .auth-brand-panel,
html.ta-auth-mobile-server .auth-brand-panel,
html.ta-auth-mobile-force .auth-brand-panel {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 0 12px !important;
    padding: .35rem .15rem 0 !important;
    text-align: left !important;
}

body.login-body[data-auth-mobile="1"] .auth-brand-kicker,
body.login-body[data-auth-mobile="1"] .auth-logo-lockup,
body.login-body[data-auth-mobile="1"] .auth-market-card,
html.ta-auth-mobile-server .auth-brand-kicker,
html.ta-auth-mobile-server .auth-logo-lockup,
html.ta-auth-mobile-server .auth-market-card,
html.ta-auth-mobile-force .auth-brand-kicker,
html.ta-auth-mobile-force .auth-logo-lockup,
html.ta-auth-mobile-force .auth-market-card {
    display: none !important;
}

body.login-body[data-auth-mobile="1"] .auth-brand-panel h1,
html.ta-auth-mobile-server .auth-brand-panel h1,
html.ta-auth-mobile-force .auth-brand-panel h1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 .45rem !important;
    font-size: clamp(1.95rem, 9.5vw, 2.55rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

body.login-body[data-auth-mobile="1"] .auth-lead,
html.ta-auth-mobile-server .auth-lead,
html.ta-auth-mobile-force .auth-lead {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
}

body.login-body[data-auth-mobile="1"] .auth-home-button,
body.login-body.auth-mobile-server .auth-home-button,
html.ta-auth-mobile-server .auth-home-button,
html.ta-auth-mobile-force .auth-home-button {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: flex !important;
    width: min(430px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 12px auto 0 !important;
    padding: .72rem .95rem !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: .86rem !important;
    line-height: 1.16 !important;
}

body.login-body[data-auth-mobile="1"] .auth-home-label-full,
html.ta-auth-mobile-server .auth-home-label-full,
html.ta-auth-mobile-force .auth-home-label-full { display: none !important; }
body.login-body[data-auth-mobile="1"] .auth-home-label-short,
html.ta-auth-mobile-server .auth-home-label-short,
html.ta-auth-mobile-force .auth-home-label-short { display: inline !important; }

body.login-body[data-auth-mobile="1"] .auth-card,
html.ta-auth-mobile-server .auth-card,
html.ta-auth-mobile-force .auth-card {
    display: block !important;
    padding: 1rem !important;
    border-radius: 22px !important;
    overflow: hidden !important;
}

body.login-body[data-auth-mobile="1"] .auth-card-header,
html.ta-auth-mobile-server .auth-card-header,
html.ta-auth-mobile-force .auth-card-header {
    align-items: flex-start !important;
    gap: .72rem !important;
    margin-bottom: 1rem !important;
}

body.login-body[data-auth-mobile="1"] .auth-card-icon,
html.ta-auth-mobile-server .auth-card-icon,
html.ta-auth-mobile-force .auth-card-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 15px !important;
}

body.login-body[data-auth-mobile="1"] .card-header-titan-style,
html.ta-auth-mobile-server .card-header-titan-style,
html.ta-auth-mobile-force .card-header-titan-style {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 1.08rem !important;
    line-height: 1.15 !important;
}

body.login-body[data-auth-mobile="1"] .recaptcha-wrap,
html.ta-auth-mobile-server .recaptcha-wrap,
html.ta-auth-mobile-force .recaptcha-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
}

body.login-body[data-auth-mobile="1"] .g-recaptcha,
html.ta-auth-mobile-server .g-recaptcha,
html.ta-auth-mobile-force .g-recaptcha {
    transform: scale(.84) !important;
    transform-origin: center center !important;
    max-width: 304px !important;
}


/* ========================================================================
   v126 - Recuperação do login mobile após v125
   Mantém a solução v124, mas reforça largura e fluxo vertical quando o PHP
   ou a URL (?mobile=1) entregam as classes mobile no HTML.
   ======================================================================== */
html.ta-auth-mobile-server body.login-body,
html.ta-auth-mobile-force body.login-body,
body.login-body.auth-mobile-server,
body.login-body.auth-mobile-force,
body.login-body[data-auth-mobile="1"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

html.ta-auth-mobile-server .auth-layout,
html.ta-auth-mobile-force .auth-layout,
body.login-body.auth-mobile-server .auth-layout,
body.login-body.auth-mobile-force .auth-layout,
body.login-body[data-auth-mobile="1"] .auth-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: min(430px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 12px !important;
}

html.ta-auth-mobile-server .auth-form-panel,
html.ta-auth-mobile-server .auth-brand-panel,
html.ta-auth-mobile-server .auth-card,
html.ta-auth-mobile-force .auth-form-panel,
html.ta-auth-mobile-force .auth-brand-panel,
html.ta-auth-mobile-force .auth-card,
body.login-body[data-auth-mobile="1"] .auth-form-panel,
body.login-body[data-auth-mobile="1"] .auth-brand-panel,
body.login-body[data-auth-mobile="1"] .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
}
