/* ============================================================================
   signin.css — Login + Cadastro (trial)
   Tema CLARO por padrão; DARK aplicado quando <html> tem a classe .au-dark
   (definida via localStorage 'La-Theme-theme-mode', igual ao resto do sistema).
   O painel de marca (esquerda) é sempre escuro — só o lado do form troca de tema.
   ============================================================================ */

/* garante que o atributo HTML hidden nunca seja sobrescrito por display:flex/block */
[hidden] { display: none !important; }

/* ─── Tokens: LIGHT (padrão) ── */
:root {
    --blue:        #1768FF;   /* --primary */
    --blue-h:      #1250CC;   /* --primary-accent */
    --blue-s:      rgba(23,104,255,.28);

    --page-bg:     radial-gradient(ellipse 60% 55% at 82% 8%, rgba(23,104,255,.07) 0%, transparent 60%),
                   linear-gradient(135deg, #D6E2F1 0%, #DFE7F5 25%, #EBE9F4 55%, #F1ECF1 80%, #F5ECEE 100%);

    --t1:          #1c3264;   /* título / texto forte */
    --t2:          #64748b;   /* secundário */
    --t3:          #9aa6b8;   /* placeholder / auxiliar */
    --label:       #334155;   /* labels */

    --form-bg:     #ffffff;   /* lado do form — branco limpo */
    --input:       #ffffff;
    --input-hover: #f7f9fc;
    --bord:        #c8d2de;
    --bord-hover:  #a8b8cc;
    --card:        #ffffff;
    --surf:        #f6f8fb;
    --focus-ring:  rgba(23,104,255,.15);
    --autofill:    #ffffff;

    --modal-bg:    #ffffff;
    --modal-bord:  transparent;
    --modal-shadow:0 24px 64px rgba(15,23,42,.18);
    --ghost-hover: #f1f5f9;
    --divider-shadow: -40px 0 80px -30px rgba(8,14,28,.35);

    --ok-bg:       rgba(34,197,94,.12);
    --ok-bord:     rgba(34,197,94,.3);
    --ok-text:     #15803d;

    --r:  12px;
    --f:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Tokens: DARK (override) — valores exatos do Hub dark mode ── */
html.au-dark {
    --blue-s:      rgba(23,104,255,.4);
    --form-bg:     #0a0e1a;   /* escuro sólido, coeso com o painel */
    --divider-shadow: none;

    --page-bg:     radial-gradient(ellipse 70% 60% at 78% 10%, rgba(23,104,255,.16) 0%, transparent 55%),
                   linear-gradient(135deg, #081428 0%, #0B1124 25%, #110E22 55%, #160E1F 80%, #1A0E18 100%);

    --t1:          #F2F3F5;
    --t2:          rgba(242,243,245,.6);
    --t3:          rgba(242,243,245,.4);
    --label:       rgba(242,243,245,.85);

    --input:       #2D2D2D;   /* --bs-form-control-bg */
    --input-hover: #333333;
    --bord:        #3E3E3E;   /* --card-border-color */
    --bord-hover:  #4d4d4d;
    --card:        #1C1E27;   /* --bs-card-bg */
    --surf:        rgba(255,255,255,.03);
    --focus-ring:  rgba(23,104,255,.18);
    --autofill:    #2D2D2D;

    --modal-bg:    #0f1118;
    --modal-bord:  rgba(255,255,255,.1);
    --modal-shadow:0 32px 80px rgba(0,0,0,.7);
    --ghost-hover: rgba(255,255,255,.07);

    --ok-text:     #4ade80;
}

/* ─── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

.au-page {
    font-family: var(--f);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    color: var(--t1);
    background: var(--page-bg);
}

/* ─── Layout ── */
.au-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

/* ─── Form (direita) ── */
.au-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 28px;
    background: var(--form-bg);
}
.au-form-inner {
    width: 100%;
    max-width: 380px;
    animation: auIn .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes auIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo mobile — colorida no claro, branca no escuro */
.au-mobile-logo { display: block; margin-bottom: 44px; }
.au-mobile-logo img { height: 38px; width: auto; }
html.au-dark .au-mobile-logo img { filter: brightness(0) invert(1); }

/* Cabeçalho */
.au-heading {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--t1);
    margin-bottom: 8px;
    line-height: 1.1;
}
.au-subhead {
    font-size: 15px;
    color: var(--t2);
    margin-bottom: 36px;
    line-height: 1.5;
}

/* Campos */
.au-field { margin-bottom: 18px; }
.au-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.006em;
    color: var(--label);
    margin-bottom: 9px;
}
.au-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}
.au-label-row .au-label { margin-bottom: 0; }

.au-forgot {
    font-size: 12px;
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    transition: opacity .15s;
}
.au-forgot:hover { opacity: .72; }

.au-input {
    display: block;
    width: 100%;
    padding: 15px 16px;
    background: var(--input);
    border: 1px solid var(--bord);
    border-radius: var(--r);
    font-size: 15px;
    font-family: var(--f);
    color: var(--t1);
    letter-spacing: -0.01em;
    outline: none;
    -webkit-appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.au-input::placeholder { color: var(--t3); }
.au-input:hover:not(:focus) {
    border-color: var(--bord-hover);
    background: var(--input-hover);
}
.au-input:focus {
    background: var(--input-hover);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Autofill do Chrome/Edge — força o fundo do tema (senão vira branco) */
.au-input:-webkit-autofill,
.au-input:-webkit-autofill:hover,
.au-input:-webkit-autofill:focus,
.au-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--t1);
    -webkit-box-shadow: 0 0 0 1000px var(--autofill) inset;
    box-shadow: 0 0 0 1000px var(--autofill) inset;
    caret-color: var(--t1);
    border-color: var(--bord);
    transition: background-color 9999s ease-out 0s;
}
.au-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--autofill) inset, 0 0 0 4px var(--focus-ring);
    box-shadow: 0 0 0 1000px var(--autofill) inset, 0 0 0 4px var(--focus-ring);
    border-color: var(--blue);
}

.au-input--pw { padding-right: 52px; }
.au-pw-wrap { position: relative; display: flex; align-items: center; }
.au-pw-wrap .au-input { width: 100%; }
/* Esconde o botão nativo de revelar senha do Edge/Chrome */
.au-input--pw::-ms-reveal,
.au-input--pw::-ms-clear { display: none; }

/* Selects (etapa 1 do trial) — mesma base do input, com seta custom */
.au-select-wrap { position: relative; }
.au-select-wrap::after {
    content: '';
    position: absolute;
    right: 17px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--t3);
    border-bottom: 2px solid var(--t3);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.au-select {
    display: block;
    width: 100%;
    padding: 15px 42px 15px 16px;
    background: var(--input);
    border: 1px solid var(--bord);
    border-radius: var(--r);
    font-size: 15px;
    font-family: var(--f);
    color: var(--t1);
    letter-spacing: -0.01em;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.au-select:hover:not(:focus) { border-color: var(--bord-hover); background: var(--input-hover); }
.au-select:focus { background: var(--input-hover); border-color: var(--blue); box-shadow: 0 0 0 4px var(--focus-ring); }
.au-select:invalid { color: #8c97a6; }  /* estado "Selecionar" */
html.au-dark .au-select:invalid { color: rgba(255,255,255,.45); }
.au-select option { color: #1a1a1a; background: #fff; }
html.au-dark .au-select option { color: #f2f3f5; background: #2d2d2d; }

.au-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--t3);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.au-eye:hover { color: var(--t1); }

.au-capslock {
    margin-top: 7px;
    font-size: 11px;
    color: #f59e0b;
    display: none;
}
.au-capslock.active { display: block; }

/* Botão principal */
.au-submit {
    width: 100%;
    margin-top: 12px;
    padding: 16px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--f);
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
    box-shadow: 0 4px 20px var(--blue-s);
}
.au-submit:hover:not(:disabled) {
    background: var(--blue-h);
    box-shadow: 0 8px 32px var(--blue-s);
}
.au-submit:active:not(:disabled) { transform: translateY(1px); }
.au-submit:disabled {
    background: #e8edf4;
    color: #a0aab8;
    cursor: not-allowed;
    box-shadow: none;
}
html.au-dark .au-submit:disabled {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.3);
}

/* Rodapé */
.au-trial {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--t2);
}
.au-trial a { color: var(--blue); font-weight: 600; text-decoration: none; }
.au-trial a:hover { text-decoration: underline; }
.au-trial i { margin-right: 3px; }

.au-trial a.au-trial__wa { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.au-trial a.au-trial__wa i { margin-right: 0; color: #25D366; }
.au-trial a.au-trial__wa:hover span { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────────────
   PAINEL DE MARCA (esquerda) — sempre escuro, independe do tema
   ───────────────────────────────────────────────────────────────────────────── */

.au-brand { display: none; }

@media (min-width: 1024px) {

    .au-mobile-logo { display: none; }
    .au-layout { grid-template-columns: 52% 48%; }

    .au-brand {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding: 3.5rem 4.5rem;
        position: relative;
        overflow: hidden;
        color: #fff;
        background: linear-gradient(155deg, #0b1222 0%, #0c1730 52%, #0a0f1d 100%);
    }

    /* Glow azul — suave, não chapado */
    .au-brand::before {
        content: '';
        position: absolute;
        top: -10%; left: 55%;
        width: 120%; height: 70%;
        transform: translateX(-50%);
        background: radial-gradient(ellipse at 50% 0%, rgba(23,104,255,.32) 0%, rgba(23,104,255,.09) 40%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    /* Profundidade na divisão: o lado do form se eleva sobre o painel (sem borda).
       No dark a sombra é desligada (--divider-shadow: none) pois os dois lados
       já são escuros e coesos. */
    .au-form-side {
        position: relative;
        z-index: 1;
        box-shadow: var(--divider-shadow);
    }
    /* Grade de pontos */
    .au-brand::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
        background-size: 30px 30px;
        pointer-events: none;
        z-index: 0;
    }
    .au-brand > *:not(.au-brand__deco) { position: relative; z-index: 1; }

    /* Ícones decorativos flutuantes */
    .au-brand__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .au-brand__deco i { position: absolute; color: #fff; line-height: 1; opacity: .04; }
    .au-brand__deco i:nth-child(1) { font-size: 230px; bottom: 6%;  right: -40px; animation: auFloat 9s ease-in-out infinite; }
    .au-brand__deco i:nth-child(2) { font-size: 130px; top: 12%;    right: 14%;   opacity: .05; animation: auFloat 7s ease-in-out infinite 1s; }
    .au-brand__deco i:nth-child(3) { font-size: 180px; top: 8%;     left: -50px;  animation: auFloat 11s ease-in-out infinite .5s; }
    .au-brand__deco i:nth-child(4) { font-size: 150px; bottom: 18%; left: 30%;    opacity: .03; animation: auFloat 8s ease-in-out infinite 1.5s; }
    @keyframes auFloat {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-16px); }
    }

    .au-brand__logo-link { display: block; flex-shrink: 0; }
    .au-brand__logo { height: 46px; width: auto; filter: brightness(0) invert(1); }

    .au-brand__mid {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 0;
    }
    .au-brand__title {
        font-size: 3.5rem;
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.04em;
        color: #fff;
        margin-bottom: 1.25rem;
    }
    .au-brand__desc {
        font-size: 16px;
        color: rgba(255,255,255,.55);
        line-height: 1.7;
        margin-bottom: 2.75rem;
        max-width: 400px;
    }
    .au-brand__list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .au-brand__list li {
        display: flex;
        align-items: center;
        gap: 13px;
        font-size: 14px;
        color: rgba(255,255,255,.62);
    }
    .au-brand__list li::before {
        content: '';
        flex-shrink: 0;
        width: 7px; height: 7px;
        border-radius: 50%;
        background: var(--blue);
        box-shadow: 0 0 10px rgba(23,104,255,.8);
    }
    .au-brand__copy {
        flex-shrink: 0;
        font-size: 12px;
        color: rgba(255,255,255,.3);
        padding-top: 2rem;
    }

    .au-form-side { min-height: 100vh; padding: 3rem 3rem; }
    .au-form-inner { max-width: 400px; }
    .au-heading { font-size: 38px; }
}

@media (min-width: 1280px) {
    .au-brand        { padding: 4rem 5.5rem; }
    .au-brand__logo  { height: 54px; }
    .au-brand__title { font-size: 4rem; }
    .au-form-inner   { max-width: 420px; }
}
@media (min-width: 1600px) {
    .au-brand        { padding: 5rem 7rem; }
    .au-brand__logo  { height: 62px; }
    .au-brand__title { font-size: 4.75rem; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MODAL de erro (segue o tema do form)
   Internos login-modal__* mantidos pois error-modal.js usa querySelector.
   ───────────────────────────────────────────────────────────────────────────── */

.au-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.au-modal-overlay.is-open { display: flex; animation: auOverIn .2s ease-out; }
@keyframes auOverIn { from { opacity: 0; } to { opacity: 1; } }

.au-modal-dialog {
    background: var(--modal-bg);
    border: 1px solid var(--modal-bord);
    border-radius: 14px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--modal-shadow);
    overflow: hidden;
    animation: auDialogIn .28s cubic-bezier(.22,1,.36,1);
}
@keyframes auDialogIn {
    from { opacity: 0; transform: translateY(-16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal__body  { padding: 28px 24px 8px; text-align: center; }
.login-modal__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
}
.login-modal__icon i { font-size: 26px; line-height: 1; display: block; margin-left: 12px; }
.login-modal__icon i.ti-loader-2 { margin-left: 0; animation: auSpin .8s linear infinite; }
@keyframes auSpin { to { transform: rotate(360deg); } }

.login-modal__title   { font-size: 18px; font-weight: 600; color: var(--t1); margin: 0 0 8px; letter-spacing: -.01em; }
.login-modal__message { font-size: 14px; color: var(--t2); line-height: 1.6; margin: 0; }
.login-modal__footer  { padding: 8px 24px 24px; display: flex; gap: 10px; }
.login-modal__btn {
    flex: 1; padding: 12px 20px; border: none; border-radius: 10px;
    color: #fff; font-size: 14px; font-weight: 600; font-family: var(--f);
    cursor: pointer; transition: filter .15s;
}
.login-modal__btn:hover { filter: brightness(1.08); }
.login-modal__btn--ghost { background: transparent !important; color: var(--t2); }
.login-modal__btn--ghost:hover { background: var(--ghost-hover) !important; color: var(--t1); filter: none; }

/* ═════════════════════════════════════════════════════════════════════════════
   TRIAL — componentes da tela de teste grátis (multi-etapa)
   IDs/classes alternados por trial.js mantidos: password-strength*,
   au-capslock.active, trial-terms / trial-terms--error, trial-step*.
   ═════════════════════════════════════════════════════════════════════════════ */

.au-label-aux { font-weight: 400; color: var(--t3); }

/* Badge "14 dias grátis" (no painel de marca escuro) */
.au-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    background: rgba(23,104,255,.22);
    border: 1px solid rgba(23,104,255,.45);
    color: #eef4ff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.au-badge i { font-size: 14px; color: #8fbcff; }

/* Navegação entre etapas */
.au-nav { display: flex; gap: 10px; margin-top: 12px; }
.au-nav-back {
    flex: 0 0 auto;
    padding: 0 20px;
    background: transparent;
    border: 1px solid var(--bord);
    border-radius: var(--r);
    color: var(--t2);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--f);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.au-nav-back:hover { border-color: var(--bord-hover); color: var(--t1); }
.au-nav-next { flex: 1; margin-top: 0; }

/* Botão secundário (Enviar código) */
.au-submit--soft {
    background: rgba(23,104,255,.12);
    color: var(--blue);
    box-shadow: none;
}
.au-submit--soft:hover:not(:disabled) { background: rgba(23,104,255,.2); box-shadow: none; }

/* Força da senha */
.password-strength { margin-top: 12px; display: none; }
.password-strength.active { display: block; }
.password-strength__bars { display: flex; gap: 5px; margin-bottom: 7px; }
.password-strength__bar {
    flex: 1; height: 4px; border-radius: 2px;
    background: var(--bord);
    transition: background-color .2s;
}
.password-strength__text { font-size: 11px; margin: 0; font-weight: 500; line-height: 1.4; }

/* Verificação por código */
.au-code {
    margin-bottom: 18px;
    padding: 18px;
    background: var(--surf);
    border: 1px solid var(--bord);
    border-radius: var(--r);
}
.au-code__phone {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0 14px;
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--bord);
    border-radius: 10px;
}
.au-code__phone strong { flex: 1; font-size: 14px; font-weight: 600; color: var(--t1); }
.au-code__phone button {
    background: transparent; border: none; color: var(--blue);
    cursor: pointer; padding: 5px 7px; border-radius: 7px;
    display: inline-flex; align-items: center;
    transition: background .15s;
}
.au-code__phone button:hover { background: rgba(23,104,255,.12); }
.au-code__input { text-align: center; letter-spacing: 8px; font-size: 20px; font-weight: 600; }
.au-code__input::placeholder { letter-spacing: 4px; font-weight: 400; }
.au-code__resend { margin-top: 14px; text-align: center; font-size: 12px; color: var(--t2); }
.au-code__resend button {
    background: transparent; border: none; cursor: pointer;
    color: var(--blue); font-weight: 600; font-size: 12px; font-family: var(--f);
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px;
}
.au-code__resend button:hover { text-decoration: underline; }
.au-code__countdown { font-weight: 600; color: var(--t2); }

/* Badge "número verificado" */
.au-verified {
    margin-bottom: 18px;
    padding: 13px 15px;
    background: var(--ok-bg);
    border: 1px solid var(--ok-bord);
    border-radius: 10px;
    color: var(--ok-text);
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 9px;
}
.au-verified i { font-size: 18px; flex-shrink: 0; }

/* Termos */
.trial-terms { margin: 6px 0 20px; }
.trial-terms__label {
    display: flex; align-items: flex-start; gap: 11px;
    cursor: pointer; font-size: 13px; color: var(--t2); line-height: 1.5;
}
.trial-terms__checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.trial-terms__checkmark {
    flex-shrink: 0; width: 21px; height: 21px;
    border: 1px solid var(--bord); border-radius: 6px;
    background: var(--input);
    display: flex; align-items: center; justify-content: center;
    color: transparent; margin-top: 1px;
    transition: background .15s, border-color .15s, color .15s;
}
.trial-terms__checkmark i { font-size: 14px; line-height: 1; display: block; width: 14px; height: 14px; }
.trial-terms__checkbox:checked + .trial-terms__checkmark {
    background: var(--blue); border-color: var(--blue); color: #fff;
}
.trial-terms__checkbox:focus-visible + .trial-terms__checkmark {
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.trial-terms__text a { color: var(--blue); font-weight: 500; text-decoration: none; }
.trial-terms__text a:hover { text-decoration: underline; }
.trial-terms--error .trial-terms__checkmark { border-color: #ff453a; animation: auShake .35s ease-in-out; }
.trial-terms--error .trial-terms__text { color: #ff453a; }
@keyframes auShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* Animação de troca de etapa */
.trial-step { animation: auStepIn .24s ease; }
@keyframes auStepIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}
.trial-step-back { animation: auStepBack .24s ease; }
@keyframes auStepBack {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: none; }
}

/* ─── Email confirm / Trial invalid ── */
.trial-invalid { text-align: center; padding: 24px 0; }
.trial-invalid__icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: rgba(220,53,69,.10);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.trial-invalid__icon i { font-size: 42px; color: #dc3545; line-height: 1; margin-left: 15px; }
.trial-invalid__icon--success { background: rgba(22,163,74,.12); }
.trial-invalid__icon--success i { color: #16a34a; }
.trial-invalid__title { font-size: 22px; font-weight: 700; color: var(--t1); margin: 0 0 12px; letter-spacing: -0.01em; }
.trial-invalid__message { font-size: 14px; color: var(--t2); line-height: 1.6; margin: 0 0 28px; }
.trial-invalid__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 16px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--f);
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 4px 20px var(--blue-s);
}
.trial-invalid__btn:hover { background: var(--blue-h); box-shadow: 0 8px 32px var(--blue-s); color: #fff; }

/* Seletor de DDI + campo de telefone — container unificado */
.au-phone-wrap {
    display: flex;
    align-items: center;
    background: var(--input);
    border: 1px solid var(--bord);
    border-radius: var(--r);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    overflow: visible;
}
.au-phone-wrap:hover:not(:focus-within) {
    border-color: var(--bord-hover);
    background: var(--input-hover);
}
.au-phone-wrap:focus-within {
    background: var(--input-hover);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--focus-ring);
}
.au-phone-wrap .au-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.au-phone-wrap .au-input:hover,
.au-phone-wrap .au-input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* DDI dropdown customizado */
.au-ddi { position: relative; flex-shrink: 0; }
.au-ddi__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 14px;
    height: 100%;
    min-height: 52px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--bord);
    cursor: pointer;
    color: var(--t1);
    font-size: 14px;
    font-family: var(--f);
    white-space: nowrap;
}
.au-ddi__btn:hover { background: rgba(0,0,0,.03); }
html.au-dark .au-ddi__btn:hover { background: rgba(255,255,255,.05); }
.au-ddi__flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.au-ddi__code { font-size: 13px; color: var(--t2); font-weight: 500; }
.au-ddi__caret { font-size: 13px; color: var(--t3); transition: transform .18s; }
.au-ddi__btn[aria-expanded="true"] .au-ddi__caret { transform: rotate(180deg); }
.au-ddi__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: var(--card);
    border: 1px solid var(--bord);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 180px;
    padding: 4px;
    list-style: none;
    margin: 0;
}
.au-ddi__list li button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--t1);
    font-family: var(--f);
    text-align: left;
}
.au-ddi__list li button:hover { background: var(--hover); }
.au-ddi__list li button img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.au-ddi__list li button span { margin-left: auto; color: var(--t3); font-size: 12px; }

/* ── Progress steps ─────────────────────────────────────────────────────────── */
.au-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}
.au-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.au-step__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bord);
    color: var(--t3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--f);
    transition: background .25s, color .25s, box-shadow .25s;
    position: relative;
}
.au-step__dot i { display: none; font-size: 14px; }
.au-step__label {
    font-size: 11px;
    color: var(--t3);
    font-weight: 500;
    white-space: nowrap;
    transition: color .25s;
    font-family: var(--f);
}
.au-step__line {
    flex: 1;
    height: 2px;
    background: var(--bord);
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background .25s;
    min-width: 24px;
}
.au-step.active .au-step__dot {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 4px var(--focus-ring);
}
.au-step.active .au-step__label { color: var(--blue); font-weight: 600; }
.au-step.done .au-step__dot { background: var(--blue); color: #fff; }
.au-step.done .au-step__dot span { display: none; }
.au-step.done .au-step__dot i { display: flex; }
.au-step.done .au-step__label { color: var(--t2); }
.au-step.done + .au-step__line { background: var(--blue); }

/* ── Trust strip ────────────────────────────────────────────────────────────── */
.au-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 12px;
}
.au-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--t3);
    font-family: var(--f);
}
.au-trust span i { font-size: 13px; }

/* ── Phone hint ─────────────────────────────────────────────────────────────── */
.au-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--t3);
    font-family: var(--f);
    line-height: 1.4;
}
.au-hint i { font-size: 14px; flex-shrink: 0; }

/* ── Left panel — stats ─────────────────────────────────────────────────────── */
.au-brand__social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.au-brand__count {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.au-brand__count strong {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}
.au-brand__count span {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.au-brand__social-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.2);
}

/* ── Left panel — testimonial ───────────────────────────────────────────────── */
.au-brand__quote {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.au-brand__quote p {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    line-height: 1.55;
    margin: 0 0 12px;
    font-style: italic;
}
.au-brand__quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.au-brand__quote-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--f);
}
.au-brand__quote-author strong {
    display: block;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}
.au-brand__quote-author span {
    font-size: 11px;
    color: rgba(255,255,255,.5);
}

/* ── iOS: previne auto-zoom em inputs (dispara quando font-size < 16px) ── */
@media (max-width: 1023px) {
    .au-input,
    .au-select,
    .au-code__input {
        font-size: 16px;
    }
    .au-trust { display: none; }
    .au-hint  { display: none; }

    /* 100vh no mobile é calculado pela viewport "grande" (barra de endereço
       recolhida), maior que a área realmente visível ao carregar a página —
       por isso sobra fundo (.au-page) em cima/embaixo do cartão branco.
       100dvh acompanha a viewport visível em tempo real; vh fica como
       fallback pra navegadores sem suporte a dvh. */
    .au-page,
    .au-layout,
    .au-form-side {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* trava scroll horizontal (defensivo contra animações/transform) —
       o vertical continua livre no body pra formulários mais longos
       (trial multi-etapa) não ficarem cortados */
    .au-page {
        overflow-x: hidden;
    }
    .au-form-side {
        padding-top:    calc(40px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }

}

/* ── Telas muito pequenas (iPhone SE, <480px) ───────────────────────────────── */
@media (max-width: 479px) {
    .au-form-side    {
        padding-left:   20px;
        padding-right:  20px;
        padding-top:    calc(28px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }
    .au-mobile-logo  { margin-bottom: 28px; }
    .au-heading      { font-size: 26px; }
    .au-subhead      { margin-bottom: 24px; font-size: 14px; }
}

/* ── Celulares em landscape: compactar verticalmente ───────────────────────── */
@media (max-height: 600px) and (max-width: 1023px) {
    .au-form-side       {
        padding-left:   28px;
        padding-right:  28px;
        padding-top:    calc(16px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .au-mobile-logo     { margin-bottom: 14px; }
    .au-mobile-logo img { height: 30px; }
    .au-heading         { font-size: 22px; margin-bottom: 4px; }
    .au-subhead         { font-size: 13px; margin-bottom: 14px; }
    .au-field           { margin-bottom: 12px; }
    .au-input,
    .au-select          { padding: 12px 16px; }
    .au-input--pw       { padding-right: 48px; }
    .au-submit          { padding: 13px; margin-top: 6px; }
    .au-trial           { margin-top: 14px; font-size: 12px; }
}

.au-modal-dialog--creating { max-width: 460px; }
.au-modal-dialog--creating .login-modal__body { padding: 0 0 28px; }
.au-modal-dialog--creating .login-modal__icon {
    width: 100% !important;
    height: 190px !important;
    border-radius: 0 !important;
    margin: 0 0 28px !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1455d4 0%, #082fa8 100%) !important;
}
.au-modal-dialog--creating .login-modal__title,
.au-modal-dialog--creating .login-modal__message { padding: 0 28px; }

.modal-creating {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.modal-creating__particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    pointer-events: none;
    animation: particleDrift ease-in-out infinite;
}
.modal-creating__particle.p1 { width:5px; height:5px; top:16%; left:11%; animation-duration:3.8s; animation-delay:0s; }
.modal-creating__particle.p2 { width:3px; height:3px; top:68%; left:74%; animation-duration:4.4s; animation-delay:.7s; }
.modal-creating__particle.p3 { width:4px; height:4px; top:77%; left:22%; animation-duration:5.1s; animation-delay:1.6s; }
.modal-creating__particle.p4 { width:3px; height:3px; top:20%; left:83%; animation-duration:3.3s; animation-delay:2.1s; }
.modal-creating__particle.p5 { width:5px; height:5px; top:84%; left:56%; animation-duration:4.7s; animation-delay:.4s; }
@keyframes particleDrift {
    0%, 100% { transform: translateY(0) scale(1);      opacity: .45; }
    50%       { transform: translateY(-13px) scale(1.5); opacity: .85; }
}
.modal-creating__core {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.modal-creating__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.2);
    animation: ringExpand 2.6s ease-out infinite;
}
.modal-creating__ring.r1 { width: 66px;  height: 66px;  animation-delay: 0s; }
.modal-creating__ring.r2 { width: 96px;  height: 96px;  animation-delay: .87s; }
.modal-creating__ring.r3 { width: 126px; height: 126px; animation-delay: 1.73s; }
@keyframes ringExpand {
    0%   { transform: scale(.65); opacity: .75; }
    100% { transform: scale(1.3); opacity: 0; }
}
.modal-creating__plane {
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 5px 18px rgba(0,0,0,.28));
    animation: planeFloat 3s ease-in-out infinite;
}
@keyframes planeFloat {
    0%, 100% { transform: translate(0, 0)     rotate(0deg); }
    35%       { transform: translate(5px, -7px) rotate(4deg); }
    70%       { transform: translate(-2px, 3px) rotate(-3deg); }
}
.modal-creating__dots {
    position: absolute;
    bottom: 14px;
    display: flex;
    gap: 6px;
}
.modal-creating__dots span {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    animation: dotFade 1.4s ease-in-out infinite;
}
.modal-creating__dots span:nth-child(2) { animation-delay: .23s; }
.modal-creating__dots span:nth-child(3) { animation-delay: .46s; }
@keyframes dotFade {
    0%, 80%, 100% { transform: scale(.35); opacity: .25; }
    40%            { transform: scale(1);   opacity: 1; }
}
