/* =====================================================================
   Estilo compartilhado das telas públicas de autenticação e avisos
   (login, cadastro, recuperar senha, confirmações, erros).
   Layout split-screen. Carregado por header_public.html.

   Alinhado à pele v2 (tasskee.ui.css, spec 09): mesma marca #1d74cc,
   neutros --tk-*, raio 14/10 e Outfit. Os tokens são redeclarados aqui
   com prefixo --au-* porque as telas públicas NÃO carregam o
   tasskee.ui.css.

   ESPECIFICIDADE: o style.css do tema tem
   `.theme-form input[type="email"]` (0,2,1) com `border-style: dashed`.
   Por isso os campos são pintados por `.auth-wrap .auth-card .form-control`
   (0,3,0) — com `.auth-card .form-control` a borda saía tracejada e roxa.
   E o custom.css ainda crava `.form-control { border-color: #7A70BA
   !important; border-radius: 6px !important }`, por isso a cor e o raio
   dos campos aqui também levam !important.
   ===================================================================== */

/* Tokens. `.au-scope` leva os mesmos tokens para fora do split-screen
   (ex.: o seletor de DDI no onboarding /welcome). */
.auth-wrap,
.au-scope {
    --au-brand: var(--bs-primary, #1d74cc);
    --au-brand-dark: #1864b0;
    --au-brand-soft: color-mix(in srgb, var(--au-brand) 10%, #fff);
    --au-navy: #0b1f3d;
    --au-text: #1f2a37;
    --au-text-2: #5b6774;
    --au-text-3: #67717d;
    --au-border: #e2e7ee;
    --au-border-strong: #cfd7e1;
    --au-surface-2: #f8fafc;
    --au-danger: #c62f2f;
    --au-radius: 14px;
    --au-radius-sm: 10px;
}

.auth-wrap {
    display: flex;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background: #fff;
    color: var(--au-text);
}

/* O style.css tem `* a { letter-spacing: 1px }` (e .btn idem). */
.auth-wrap a,
.auth-wrap p,
.auth-wrap button { letter-spacing: normal; }

/* min-width:0 impede que o conteúdo de um lado esmague o outro (flexbox). */
.auth-brand { flex: 0 0 48%; min-width: 0; }
.auth-panel { flex: 1 1 52%; min-width: 0; }

/* =====================================================================
   PAINEL DE MARCA (lateral)
   ===================================================================== */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 36px clamp(32px, 4.2vw, 64px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(99, 179, 255, .45) 0%, transparent 70%),
        radial-gradient(55% 45% at 0% 100%, rgba(37, 211, 102, .18) 0%, transparent 70%),
        linear-gradient(155deg, var(--au-brand) 0%, #1558a8 45%, var(--au-navy) 100%);
}

/* Todo texto do painel é branco (evita herança do heading-color do Bootstrap). */
.auth-brand,
.auth-brand h1,
.auth-brand p,
.auth-brand div,
.auth-brand span,
.auth-brand b,
.auth-brand a { color: #fff; }

/* Grade de pontos sutil, esmaecendo para baixo. */
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
    pointer-events: none;
}

/* Foto de fundo (var --auth-brand-img) só como textura. */
.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--auth-brand-img, none);
    background-size: cover;
    background-position: center;
    opacity: .06;
    mix-blend-mode: luminosity;
    pointer-events: none;
}

.auth-brand .brand-logo img { height: 34px; filter: brightness(0) invert(1); }

.auth-brand .brand-main { display: flex; flex-direction: column; }

.auth-brand .eyebrow {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 8px; margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .8rem; font-weight: 500; letter-spacing: .01em;
    backdrop-filter: blur(6px);
}
.auth-brand .eyebrow .spark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; color: var(--au-brand); font-size: 11px;
}

.auth-brand h1 {
    font-size: clamp(2rem, 2.7vw, 2.75rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
    margin: 0 0 14px; max-width: 20ch;
}
.auth-brand h1 .hl {
    background: linear-gradient(90deg, #bfe1ff 0%, #8ff0c0 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.auth-brand .lead {
    font-size: 1.06rem; line-height: 1.55; font-weight: 400;
    color: rgba(255, 255, 255, .84); max-width: 50ch; margin: 0 0 24px;
}

/* ---------- Mock do produto (decorativo) ---------- */
.ab-mock {
    position: relative;
    max-width: 520px;
    margin: 0 0 12px;
    padding-bottom: 90px; /* espaço para o balão do chat sobreposto */
}
.ab-board {
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(4, 16, 40, .35), 0 0 0 1px rgba(255, 255, 255, .5);
    overflow: hidden;
    transform: perspective(1400px) rotateX(4deg);
    transform-origin: 50% 100%;
}
.ab-board .bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid #edf1f6; background: #f8fafc;
}
.ab-board .bar i.d { width: 9px; height: 9px; border-radius: 50%; background: #e2e7ee; }
.ab-board .bar .ttl {
    margin-left: 8px; font-size: .74rem; font-weight: 600; color: #5b6774;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ab-board .bar .views { margin-left: auto; display: flex; gap: 4px; }
.ab-board .bar .views span {
    font-size: .66rem; font-weight: 600; color: #67717d;
    padding: 2px 8px; border-radius: 999px;
}
.ab-board .bar .views span.on { background: var(--au-brand-soft); color: var(--au-brand); }

.ab-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.ab-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ab-col .ch {
    display: flex; align-items: center; gap: 6px;
    font-size: .68rem; font-weight: 700; color: #5b6774;
    text-transform: uppercase; letter-spacing: .05em;
}
.ab-col .ch i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ab-col .ch b { margin-left: auto; font-weight: 600; color: #67717d; }
.ab-card {
    border-radius: 10px; border: 1px solid #e7ebf0; background: #fff;
    padding: 8px 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.ab-card .tg {
    display: inline-block; font-size: .6rem; font-weight: 700;
    padding: 1px 7px; border-radius: 999px; margin-bottom: 5px;
    color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.ab-card p {
    margin: 0 0 7px; font-size: .74rem; font-weight: 600; line-height: 1.25;
    color: #1f2a37 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ab-card .mt { display: flex; align-items: center; justify-content: space-between; }
.ab-card .av {
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .52rem; font-weight: 700; color: #fff !important; background: var(--c);
}
.ab-card .du { font-size: .6rem; color: #67717d !important; font-weight: 500; }
.ab-card .bar-p { height: 4px; border-radius: 4px; background: #edf1f6; overflow: hidden; margin-bottom: 7px; }
.ab-card .bar-p i { display: block; height: 100%; width: var(--p); background: #22a06b; border-radius: 4px; }
.ab-card.ghost { background: #f8fafc; border-style: dashed; box-shadow: none; height: 34px; }

/* Balão do atendimento com IA, sobreposto ao quadro. */
.ab-chat {
    position: absolute;
    right: -14px; bottom: 0;
    width: min(290px, 64%);
    border-radius: 14px;
    background: #fff;
    padding: 11px 12px;
    box-shadow: 0 18px 40px rgba(4, 16, 40, .35);
    animation: ab-float 6s ease-in-out infinite;
}
.ab-chat .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ab-chat .bot {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7c4dff, var(--au-brand)); color: #fff !important; font-size: 12px;
}
.ab-chat .who { font-size: .72rem; font-weight: 700; color: #1f2a37 !important; line-height: 1.1; }
.ab-chat .who small { display: block; font-weight: 500; color: #22a06b !important; font-size: .62rem; }
.ab-chat .wa { margin-left: auto; color: #25d366 !important; font-size: 16px; }
.ab-chat .msg {
    font-size: .74rem; line-height: 1.35; color: #1f2a37 !important;
    background: #e9f7ef; border-radius: 4px 12px 12px 12px; padding: 7px 10px;
}
.ab-chat .ft {
    display: flex; align-items: center; gap: 6px; margin-top: 7px;
    font-size: .62rem; font-weight: 600; color: var(--au-brand) !important;
}

@keyframes ab-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .ab-chat { animation: none; }
}

/* ---------- Diferenciais ---------- */
.ab-feats {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; max-width: 560px;
}
.ab-feat {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 12px 13px; border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}
.ab-feat > i {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .16); font-size: 15px;
}
.ab-feat b { display: block; font-size: .86rem; font-weight: 600; line-height: 1.2; margin-bottom: 2px; }
.ab-feat span { display: block; font-size: .76rem; line-height: 1.35; color: rgba(255, 255, 255, .74) !important; }

/* Rodapé do painel: selos + copyright. */
.auth-brand .brand-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 20px; font-size: .8rem; color: rgba(255, 255, 255, .7) !important;
}
.auth-brand .trust { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.auth-brand .trust span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .86) !important; }
.auth-brand .trust i { color: #8ff0c0; }

/* Mantém compatibilidade com o conteúdo antigo (.feat), caso algum
   programa/partial ainda o use. */
.auth-brand .feat { display: flex; align-items: center; gap: 13px; margin-top: 14px; font-weight: 500; }
.auth-brand .feat i {
    width: 38px; height: 38px; border-radius: 11px; display: inline-flex;
    align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); font-size: 16px;
}

/* ---------- Stepper do onboarding (cadastro) ---------- */
.ob-steps { list-style: none; margin: 0 0 26px; padding: 0; position: relative; }
.ob-steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 0 0 18px; }
.ob-steps li:last-child { padding-bottom: 0; }
/* Linha que liga os passos. */
.ob-steps li:not(:last-child)::before {
    content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px;
    width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22);
}
.ob-steps .dot {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .92rem;
    border: 2px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .06);
}
.ob-steps li.active .dot {
    background: #fff; color: var(--au-brand) !important; border-color: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .16);
}
.ob-steps li.next .dot { opacity: .75; }
.ob-steps .st-title { font-weight: 600; font-size: 1rem; padding-top: 6px; }
.ob-steps .st-desc { font-size: .86rem; color: rgba(255, 255, 255, .76) !important; }
.ob-steps li.next .st-title { opacity: .85; }

.ob-templates .cap {
    font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255, 255, 255, .7) !important; margin-bottom: 10px;
}
.ob-templates .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-templates .chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
    border-radius: 999px; font-size: .8rem; font-weight: 500;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}

/* Telas baixas: o mock é o primeiro a sair, depois os diferenciais. */
@media (max-height: 940px) {
    .ab-feat span { display: none; }
    .ab-feat { align-items: center; padding: 10px 12px; }
}
@media (max-height: 800px) {
    .auth-brand .ab-mock { display: none; }
}
@media (max-height: 640px) {
    .auth-brand .ab-feats { display: none; }
}
@media (max-width: 1280px) {
    .ab-chat { right: 0; }
}

/* =====================================================================
   PAINEL DO FORMULÁRIO / AVISO
   ===================================================================== */
.auth-panel {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 28px;
    background: #fff;
}
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }

.auth-card .mobile-logo { display: none; margin-bottom: 28px; }
.auth-card .mobile-logo img { height: 32px; }

.auth-card h2 {
    font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em;
    color: var(--au-text); margin: 0 0 8px;
}
.auth-card .sub { color: var(--au-text-2); margin-bottom: 28px; font-size: .98rem; line-height: 1.5; }
.auth-card .sub b { color: var(--au-text); font-weight: 600; }

.auth-card .step-pill {
    display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600;
    color: var(--au-brand); background: var(--au-brand-soft);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.auth-card .step-pill .bars { display: inline-flex; gap: 3px; }
.auth-card .step-pill .bars i { width: 14px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--au-brand) 25%, #fff); }
.auth-card .step-pill .bars i.on { background: var(--au-brand); }

.auth-card .fld { margin-bottom: 18px; position: relative; }
.auth-card .fld > label { display: block; font-size: .85rem; font-weight: 600; color: var(--au-text); margin-bottom: 7px; }

/* Campo com ícone à esquerda. */
.auth-card .in-ico { position: relative; }
.auth-card .in-ico > i.lead-ico {
    position: absolute; left: 15px; top: 0; height: 48px;
    display: flex; align-items: center; color: #98a2b0; font-size: 15px;
    pointer-events: none; transition: color .15s;
}
.auth-card .in-ico:focus-within > i.lead-ico { color: var(--au-brand); }
.auth-wrap .auth-card .in-ico > .form-control { padding-left: 42px; }

.auth-wrap .auth-card .form-control {
    height: 48px; width: 100%;
    border: 1px solid var(--au-border); border-style: solid;
    border-color: var(--au-border) !important;
    border-radius: var(--au-radius-sm) !important;
    background: #fff;
    color: var(--au-text) !important;
    padding: 0 15px; font-size: .97rem; font-family: inherit;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s, box-shadow .15s;
}
.auth-wrap .auth-card .form-control::placeholder { color: #a3acb8; letter-spacing: normal; }
.auth-wrap .auth-card .form-control:hover { border-color: var(--au-border-strong) !important; }
.auth-wrap .auth-card .form-control:focus {
    border-color: var(--au-brand) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--au-brand) 14%, transparent);
    outline: none;
}
.auth-wrap .auth-card .form-control.is-invalid,
.auth-wrap .auth-card .form-control.ddi-invalid {
    border-color: var(--au-danger) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--au-danger) 12%, transparent) !important;
    background-image: none;
}

.auth-card .pw-field { position: relative; }
.auth-wrap .auth-card .pw-field .form-control { padding-right: 48px; }
.auth-card .pw-toggle {
    position: absolute; top: 0; right: 0; height: 48px; width: 46px; border: 0; background: transparent;
    color: #98a2b0; cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 0 var(--au-radius-sm) var(--au-radius-sm) 0;
}
.auth-card .pw-toggle:hover { color: var(--au-brand); }

/* Força da senha: barra de 3 segmentos. Os ids/`display` continuam sendo
   controlados por records.js (passwordForce). */
#forcePassword { margin-top: 8px; }
#forcePassword > div { border-radius: 999px; overflow: hidden; height: 20px; background: #eef1f5 !important; }
#forcePassword > div > div,
#forcePassword > div#strongPassword { height: 20px; line-height: 20px; font-size: .7rem; border-radius: 999px; padding-left: 10px !important; }
#forcePassword > div#strongPassword { background: #22a06b !important; }

.auth-card .btn-auth {
    height: 50px; width: 100%;
    border: 0; border-radius: var(--au-radius-sm);
    font-weight: 600; font-size: 1rem; font-family: inherit; color: #fff !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--au-brand) 88%, #fff) 0%, var(--au-brand) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px color-mix(in srgb, var(--au-brand) 28%, transparent);
    transition: filter .15s, transform .05s, box-shadow .15s;
    /* Centraliza o rótulo tanto em <button> quanto em <a> (usado nos avisos). */
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none; text-align: center; cursor: pointer;
}
.auth-card .btn-auth .arr { transition: transform .15s; font-size: .9em; }
.auth-card .btn-auth:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 26px color-mix(in srgb, var(--au-brand) 36%, transparent); }
.auth-card .btn-auth:hover .arr { transform: translateX(3px); }
.auth-card .btn-auth:active { transform: translateY(1px); }
.auth-card .btn-auth:focus-visible { outline: 3px solid color-mix(in srgb, var(--au-brand) 35%, transparent); outline-offset: 2px; }
.auth-card .btn-auth:disabled { opacity: .6; cursor: not-allowed; }
.auth-card .btn-auth.outline,
.auth-card .btn-ghost {
    background: #fff; color: var(--au-text) !important;
    border: 1px solid var(--au-border); box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.auth-card .btn-ghost:hover { background: var(--au-surface-2); filter: none; }

.auth-card .forgot { text-align: right; margin: -6px 0 22px; }
.auth-card .forgot a { color: var(--au-brand); text-decoration: none; font-size: .86rem; font-weight: 600; }
.auth-card .forgot a:hover { text-decoration: underline; }

.auth-card .helper {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .85rem; color: var(--au-text-2); line-height: 1.45;
    background: var(--au-surface-2); border: 1px solid var(--au-border);
    border-radius: var(--au-radius-sm); padding: 10px 12px; margin: 4px 0 20px;
}
.auth-card .helper > i { color: var(--au-brand); margin-top: 2px; }

.auth-card .terms { font-size: .8rem; color: var(--au-text-3); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.auth-card .terms a { color: var(--au-text-2); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.auth-card .terms a:hover { color: var(--au-brand); }

/* Linha "Não tem conta? / Já tem conta?" — nunca quebra por palavra. */
/* Anula o componente global ".switch" (toggle 60x34px do style.css), que
   estava forçando width:60px e quebrando o texto "Não tem conta?". */
.auth-card .switch {
    display: block; width: auto; height: auto; position: static;
    text-align: center; margin-top: 24px; padding-top: 22px;
    border-top: 1px solid #eef1f5;
    color: var(--au-text-2); font-size: .93rem;
    white-space: normal; word-break: normal; overflow-wrap: normal;
}
.auth-card .switch a { color: var(--au-brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.auth-card .switch a:hover { text-decoration: underline; }

/* Caixa de erro: oculta por padrão; o framework (utility.setPostForm) faz
   .show()/.hide() no #campo_error apenas quando há mensagem.
   `.error` herda do custom.css caixa tracejada vermelha — neutralizada aqui. */
.auth-card .invalid-feedback, .auth-card .error {
    display: none; height: auto !important;
    font-size: .8rem; color: var(--au-danger);
    margin: 6px 0 0; padding: 0; border: 0; background: none; width: auto;
}
.auth-card .invalid-feedback ul, .auth-card .error ul { margin: 0; padding: 0; list-style: none; }

/* Selos abaixo do formulário. */
.auth-card .form-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
    margin-top: 16px; font-size: .76rem; color: var(--au-text-3);
}
.auth-card .form-trust span { display: inline-flex; align-items: center; gap: 5px; }
.auth-card .form-trust i { color: #22a06b; }

/* =====================================================================
   ENTRAR COM O GOOGLE (partial auth_google.html)
   ===================================================================== */
/* Com o Google na tela, o formulário de e-mail começa fechado e abre pelo
   botão "Entrar com e-mail e senha" / "Criar conta com e-mail". A classe
   `has-google-auth` é posta pelo próprio partial — sem ele (config
   desligada), o formulário aparece como sempre. */
.has-google-auth .auth-email-form:not(.is-open) { display: none; }
.auth-choice[hidden] { display: none; }

.auth-card .g-btn-wrap {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    min-height: 44px; margin: 4px 0 0;
}
.auth-card .g-btn-wrap .g-loading { color: #98a2b0; }
/* Enquanto o /auth/google responde, o botão fica coberto (evita duplo clique). */
.auth-card .g-btn-wrap.busy::after {
    content: attr(data-busy);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(255, 255, 255, .88); border-radius: 6px;
    font-weight: 600; font-size: .9rem; color: var(--au-text-2);
}
.auth-choice .terms { margin: 16px 0 0; }

.auth-card .auth-or {
    display: flex; align-items: center; gap: 14px;
    margin: 22px 0; color: var(--au-text-3); font-size: .82rem;
}
.auth-card .auth-or::before,
.auth-card .auth-or::after { content: ""; flex: 1; height: 1px; background: #e7ebf0; }

.auth-card .back-choice { text-align: center; margin-top: 16px; }
.auth-card .back-choice a { color: var(--au-text-2); font-size: .86rem; font-weight: 500; text-decoration: none; }
.auth-card .back-choice a:hover { color: var(--au-brand); }

/* =====================================================================
   SELETOR DE DDI (ddi-phone-input.js)
   ===================================================================== */
.ddi-box { position: relative; }
.ddi-box .ddi-btn {
    /* Altura fixa (campo de 48px): a caixa cresce quando o aviso aparece. */
    position: absolute; left: 6px; top: 6px; height: 36px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 8px; border: 0; border-radius: 8px;
    background: var(--au-surface-2); color: var(--au-text);
    font: 600 .88rem/1 inherit; font-family: inherit; cursor: pointer;
    transition: background .15s;
}
.ddi-box .ddi-btn:hover, .ddi-box .ddi-btn[aria-expanded="true"] { background: #eef2f7; }
.ddi-box .ddi-btn:focus-visible { outline: 2px solid var(--au-brand); outline-offset: 1px; }
.ddi-box .ddi-btn img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 24, 40, .08); }
.ddi-box .ddi-btn .code { color: var(--au-text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.ddi-box .ddi-btn .fa { font-size: 10px; color: #98a2b0; transition: transform .15s; }
.ddi-box .ddi-btn[aria-expanded="true"] .fa { transform: rotate(180deg); }
:is(.auth-wrap .auth-card, .au-scope) .ddi-box > .form-control { padding-left: var(--ddi-pad, 104px); }

.ddi-box .ddi-drop {
    position: absolute; top: 54px; left: 0; right: 0; z-index: 30;
    background: #fff; border: 1px solid var(--au-border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
    overflow: hidden;
}
.ddi-box .ddi-search-wrap { position: relative; border-bottom: 1px solid #eef1f5; }
.ddi-box .ddi-search-wrap .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #98a2b0; font-size: 13px; }
/* O tema pinta `.theme-form input[type="text"]` (padding, borda, letter-spacing). */
:is(.auth-wrap, .au-scope) .ddi-box .ddi-search {
    width: 100%; height: 44px; border: 0 !important; outline: none; box-shadow: none;
    padding: 0 12px 0 38px !important; font: inherit; font-size: .92rem; letter-spacing: normal;
    color: var(--au-text); background: transparent !important;
}
:is(.auth-wrap, .au-scope) .ddi-box .ddi-search::placeholder { letter-spacing: normal; color: #a3acb8; }
.ddi-box .ddi-list { max-height: 248px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.ddi-box .ddi-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    font-size: .9rem; color: var(--au-text);
}
.ddi-box .ddi-list li img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: 0 0 22px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .08); }
.ddi-box .ddi-list li .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddi-box .ddi-list li .cd { color: var(--au-text-3); font-variant-numeric: tabular-nums; font-size: .85rem; }
.ddi-box .ddi-list li.active { background: var(--au-brand-soft); }
.ddi-box .ddi-list li[aria-selected="true"] .nm { font-weight: 600; }
.ddi-box .ddi-list li[aria-selected="true"]::after { content: "\f00c"; font-family: FontAwesome; color: var(--au-brand); font-size: 12px; }
.ddi-box .ddi-list li.sep { height: 1px; padding: 0; margin: 5px 4px; background: #eef1f5; cursor: default; }
.ddi-box .ddi-list li.empty { color: var(--au-text-3); cursor: default; justify-content: center; }
.ddi-box .ddi-hint { display: none; margin-top: 6px; font-size: .8rem; color: #b76e00; }
.ddi-box.warn .ddi-hint { display: block; }
:is(.auth-wrap .auth-card, .au-scope) .ddi-box.warn > .form-control { border-color: #e6a23c !important; box-shadow: 0 0 0 4px rgba(230, 162, 60, .14); }

/* =====================================================================
   AVISO / MENSAGEM / ERRO
   ===================================================================== */
.auth-note { text-align: center; }
.auth-note.left { text-align: left; }
.auth-note.left .ico { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; margin: 0 0 20px 8px; }
.auth-note .ico {
    width: 72px; height: 72px; border-radius: 20px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 30px; margin-bottom: 22px;
    position: relative;
}
.auth-note .ico::after {
    content: ""; position: absolute; inset: -8px; border-radius: 26px;
    border: 1px solid currentColor; opacity: .14;
}
.auth-note .ico.success { background: #e6f6ec; color: #22a06b; }
.auth-note .ico.info    { background: var(--au-brand-soft); color: var(--au-brand); }
.auth-note .ico.warning { background: #fff4e0; color: #d98300; }
.auth-note .ico.danger  { background: #fdeaea; color: var(--au-danger); }

.auth-note .code {
    font-size: clamp(5rem, 10vw, 7.5rem); font-weight: 800; line-height: .9;
    letter-spacing: -.05em; margin-bottom: 14px;
    background: linear-gradient(180deg, var(--au-brand) 0%, color-mix(in srgb, var(--au-brand) 35%, #fff) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-note h2 { font-size: 1.7rem; font-weight: 700; color: var(--au-text); margin: 0 0 10px; }
.auth-note p { color: var(--au-text-2); margin: 0 auto 22px; font-size: .98rem; line-height: 1.55; max-width: 38ch; }
.auth-note p strong { color: var(--au-text); font-weight: 600; }
.auth-note .err-detail {
    text-align: left; max-width: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem;
    color: var(--au-danger); background: #fdf3f3; border: 1px solid #f5d5d5;
    border-radius: var(--au-radius-sm); padding: 10px 12px; word-break: break-word;
}
.auth-note .actions { display: flex; flex-direction: column; gap: 10px; }
.auth-note .actions.row2 { flex-direction: row; }
.auth-note .actions.row2 > * { flex: 1 1 0; }
.auth-note .actions a { text-decoration: none; }
.auth-note .actions > a:not(.btn-auth) { color: var(--au-brand); font-weight: 600; font-size: .92rem; padding: 6px; }
/* Diferenciais em versão compacta, abaixo do título (só no celular). */
.auth-card .m-feats {
    display: none; flex-wrap: wrap; gap: 6px; margin: -12px 0 24px;
}
.auth-card .m-feats span {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .76rem; font-weight: 500; color: var(--au-text-2);
    background: var(--au-surface-2); border: 1px solid var(--au-border);
    padding: 4px 10px; border-radius: 999px;
}
.auth-card .m-feats i { color: var(--au-brand); }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1100px) {
    .auth-brand { flex-basis: 44%; }
    .ab-feats { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .auth-wrap { flex-direction: column; }
    .auth-brand { display: none; }
    .auth-card .mobile-logo { display: block; }
    .auth-panel {
        justify-content: flex-start; padding: 32px 20px 72px;
        background:
            radial-gradient(80% 30% at 50% 0%, color-mix(in srgb, var(--au-brand) 9%, transparent) 0%, transparent 100%),
            #fff;
    }
    .auth-card h2 { font-size: 1.6rem; }
    .auth-card .m-feats { display: flex; }
}


@media (max-width: 420px) {
    /* Empilhados, a ação principal vem primeiro. */
    .auth-note .actions.row2 { flex-direction: column-reverse; }
    .auth-note .actions.row2 > * { flex: 0 0 auto; }
}

/* Contagem regressiva da 406 depois de trocar de organização (erro406.html). */
.auth-note p.auth-countdown { color: var(--au-text-2); font-size: .92rem; margin-bottom: 16px; }
.auth-note p.auth-countdown[hidden] { display: none; }
.auth-note p.auth-countdown strong { color: var(--au-text); font-variant-numeric: tabular-nums; }
