/* ============================================================
   Hedah Clinic — telas de acesso (entrar, criar conta, esqueci e
   redefinir senha, confirmar e-mail; também as telas de retorno do
   Stripe, que reaproveitam este arquivo).

   Linguagem da landing nova (2026-10-02, pedido do dono: "com base
   neste novo design da LP"): Google Sans auto-hospedada (mesmo
   arquivo da landing, fonts/ na raiz do site), ink #0E1E2E, fundo
   #FBFCFE, botões em pílula, cards brancos de 20px com borda fina e o
   mesmo brilho orgânico azul/ciano do hero — aqui atrás do card do
   formulário, nunca atrás de texto solto. Ver ../../../landing.css.

   Este arquivo é AUTOSSUFICIENTE de propósito: as telas de acesso não
   carregam styles.css do app logado (sidebar, tabelas, modais e
   seletores de elemento que obrigariam !important em tudo).
   ============================================================ */

.auth-page {
    --ink: #0E1E2E;
    --tone: #4A6178;
    --text: #334155;
    --muted: #55677A;
    --bg: #FBFCFE;
    --paper: #F5F7FB;
    --surface: #FFFFFF;
    --line: #E6EAF0;
    --line-2: #D5DCE6;

    --blue: #2563EB;
    --blue-deep: #1D4ED8;
    --blue-wash: #EEF4FF;
    --blue-wash-2: #DCE7FE;

    --ok: #05603A;
    --ok-bg: #ECFDF3;
    --ok-line: #A6F4C5;
    --warn: #93370D;
    --warn-bg: #FFFAEB;
    --warn-line: #FEDF89;
    --err: #B42318;
    --err-bg: #FEF3F2;
    --err-line: #FECDCA;

    --r-card: 20px;
    --r-inner: 14px;
    --r-sm: 10px;
    --control-height: 44px;

    --shadow-soft: rgba(15, 30, 60, .04) 0 1px 2px, rgba(15, 30, 60, .06) 0 8px 24px -8px;
    --shadow-window: rgba(15, 30, 60, .06) 0 2px 4px, rgba(15, 30, 60, .10) 0 24px 60px -24px;

    --sans: 'Google Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../../../fonts/google-sans-latin.woff2') format('woff2');
    font-weight: 400 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ reset ============ */
/* Inclui o próprio .auth-page (o <body>): sem isso sobrava a margem de 8px
   do user-agent no body inteiro (achado em 2026-09-14). */
.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.auth-page {
    min-height: 100dvh;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* O brilho atrás do card passa da borda da janela de propósito; o corte
   fica no html (o overflow-x do body sozinho não segura a rolagem lateral
   no Safari do iPhone). */
html:has(> body.auth-page) { overflow-x: clip; }

.auth-page img { max-width: 100%; display: block; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page ul, .auth-page ol { list-style: none; }
.auth-page button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.auth-page ::selection { background: var(--blue); color: #fff; }

.auth-page :focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.auth-page .skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    padding: 12px 24px; border-radius: 999px;
    background: var(--blue); color: #fff; font-weight: 500;
    transition: top .2s;
}
.auth-page .skip-link:focus { top: 16px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ entrada em sequência ============ */
/* Roda uma vez no carregamento; prefers-reduced-motion zera no fim do arquivo. */
.appear { animation: appear .55s ease-out backwards; }
.a-1 { animation-delay: .08s } .a-2 { animation-delay: .16s }
.a-3 { animation-delay: .24s } .a-4 { animation-delay: .32s }
@keyframes appear { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ============ topo ============ */
/* Mesmo header da landing: marca à esquerda, navegação no meio, ações à
   direita. Fixo e translúcido; o fundo sólido é a base e o vidro fosco só
   entra onde o navegador suporta backdrop-filter. */
.auth-topbar {
    position: sticky; top: 0; z-index: 20;
    height: 72px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .auth-topbar {
        background: rgba(251, 252, 254, .82);
        backdrop-filter: saturate(1.4) blur(12px);
        -webkit-backdrop-filter: saturate(1.4) blur(12px);
    }
}

.auth-topbar-inner {
    width: min(1232px, 100% - 48px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.auth-brand { justify-self: start; display: inline-flex; align-items: center; }
.auth-brand img { height: 28px; width: auto; }

.auth-nav { display: flex; gap: 4px; font-size: .9375rem; font-weight: 500; }
.auth-page .auth-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: color .18s ease, background .18s ease;
}
.auth-page .auth-nav a:hover { color: var(--ink); background: rgba(14, 30, 46, .04); }

.auth-topbar-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* Os dois botões do topo seguem o par outline + escuro do header da
   landing. Prefixo .auth-page porque `.auth-page a` (0,1,1) vence uma
   classe sozinha. */
.auth-page .auth-topbar-link,
.auth-page .auth-topbar-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 8px 16px;
    border-radius: 999px;
    font-size: .875rem; font-weight: 500; white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.auth-page .auth-topbar-link { color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); }
.auth-page .auth-topbar-link:hover { border-color: var(--ink); }
.auth-page .auth-topbar-cta { color: #fff; background: var(--ink); }
.auth-page .auth-topbar-cta:hover { background: #1F3247; }
.auth-page .lbl-short { display: none; }

/* ============ botões ============ */
/* Primário: pílula com o degradê do CTA da landing, borda um tom abaixo e
   sombra curta (a longa e difusa "borrava" o botão sobre o card branco).
   Seta que avança no hover, como no CTA do hero. Ao enviar, a seta vira
   spinner (.is-loading, posto por auth_form_feedback() em _shell.php). */
.auth-page .btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid #1D4ED8;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #3A78F2 0%, var(--blue) 55%, #1E56DB 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 1px 2px rgba(15, 30, 60, .10),
        0 6px 14px -8px rgba(37, 99, 235, .60);
    font-family: var(--sans);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}
.auth-page .btn:hover {
    background: linear-gradient(180deg, #2F6BF0 0%, var(--blue-deep) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 1px 2px rgba(15, 30, 60, .12),
        0 10px 20px -10px rgba(37, 99, 235, .70);
    transform: translateY(-1px);
}
.auth-page .btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22);
}

.auth-page .btn .btn-icon { flex: none; transition: transform .2s ease; }
.auth-page .btn:hover .btn-icon { transform: translateX(2px); }

/* Secundário: contorno neutro, sem relevo nem deslocamento. */
.auth-page .btn.secondary {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line-2);
    box-shadow: 0 1px 2px rgba(15, 30, 60, .05);
}
.auth-page .btn.secondary:hover {
    background: var(--paper);
    border-color: #B9C3D1;
    box-shadow: 0 1px 2px rgba(15, 30, 60, .05);
    transform: none;
}
.auth-page .btn.secondary:active { background: var(--line); box-shadow: none; }

.auth-page .btn.block { width: 100%; }

.auth-page .btn[disabled],
.auth-page .btn.loading-state {
    opacity: .56;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* Enviando: mantém o rótulo (a pessoa sabe o que está acontecendo) e troca
   a seta por um anel girando; segundo clique não passa. */
.auth-page .btn.is-loading { pointer-events: none; transform: none; }
.auth-page .btn.is-loading .btn-icon { display: none; }
.auth-page .btn.is-loading::after {
    content: "";
    width: 16px; height: 16px;
    flex: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: auth-spin .7s linear infinite;
}
.auth-page .btn.secondary.is-loading::after { border-color: rgba(14, 30, 46, .2); border-top-color: var(--ink); }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* ============ estrutura ============ */
.auth-shell {
    width: min(1232px, 100% - 48px);
    margin-inline: auto;
}

/* Card único, centralizado na altura que sobra abaixo do topo. */
.auth-shell.is-single {
    display: grid;
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
    align-content: center;
    min-height: calc(100dvh - 72px);
    padding-block: 48px 64px;
}

/* Cadastro: coluna de venda à esquerda, formulário à direita (2026-10-02,
   escolha do dono — reverte o card único de 2026-09-14 só nesta tela). */
.auth-shell.is-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 720px);
    align-items: start;
    gap: clamp(40px, 5vw, 80px);
    padding-block: clamp(40px, 6vw, 80px) 72px;
}

/* ============ brilho orgânico atrás do card ============ */
/* O mesmo degradê do hero da landing (manchas azul/ciano de contorno
   irregular, derivando devagar, só transform). Fica preso ao card: o
   palco isola a pilha, o brilho vai para trás (z-index -1) e o card
   opaco por cima — vira uma aura em volta do formulário, nunca um fundo
   atrás de texto solto. A máscara radial apaga as bordas. */
.auth-stage { position: relative; isolation: isolate; }

.auth-glow {
    position: absolute;
    inset: -14% -36% -20%;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
}
.auth-glow i {
    position: absolute;
    filter: blur(48px);
    will-change: transform;
    border-radius: var(--shape, 50%);
    background: radial-gradient(farthest-side at var(--at, 50% 50%), rgba(var(--c), 1) 0%, rgba(var(--c), .7) 40%, rgba(var(--c), 0) 100%);
}
.auth-glow i:nth-child(1) { --c: 92, 200, 255; --at: 44% 56%; --shape: 62% 38% 55% 45% / 48% 60% 40% 52%; left: 2%; top: 14%; width: 44%; height: 58%; animation: auth-glow-a 17s ease-in-out infinite alternate; }
.auth-glow i:nth-child(2) { --c: 37, 99, 235; --at: 54% 48%; --shape: 45% 55% 40% 60% / 58% 42% 58% 42%; right: 4%; top: 4%; width: 42%; height: 52%; animation: auth-glow-b 21s ease-in-out infinite alternate; }
.auth-glow i:nth-child(3) { --c: 92, 200, 255; --at: 58% 52%; --shape: 40% 60% 48% 52% / 55% 45% 62% 38%; right: 0; bottom: 2%; width: 46%; height: 56%; animation: auth-glow-c 19s ease-in-out infinite alternate; }
.auth-glow i:nth-child(4) { --c: 56, 132, 255; --at: 40% 46%; --shape: 58% 42% 36% 64% / 44% 56% 44% 56%; left: 6%; bottom: 0; width: 42%; height: 50%; animation: auth-glow-d 23s ease-in-out infinite alternate; }
.auth-glow i:nth-child(5) { --c: 56, 132, 255; --at: 50% 50%; --shape: 52% 48% 60% 40% / 40% 60% 40% 60%; left: 30%; top: 30%; width: 40%; height: 44%; animation: auth-glow-e 25s ease-in-out infinite alternate; }
.auth-glow i:nth-child(6) { --c: 92, 200, 255; --at: 48% 40%; --shape: 55% 45% 62% 38% / 50% 62% 38% 50%; left: 70%; top: 48%; width: 22%; height: 28%; animation: auth-glow-f 15s ease-in-out infinite alternate; }
/* No cadastro o brilho não estende para a esquerda: ali fica o texto da
   coluna de venda, que precisa de fundo limpo. */
.auth-shell.is-split .auth-glow { inset: -10% -30% -12% -5%; }

@keyframes auth-glow-a { to { transform: translate(10%, 8%) rotate(20deg) scale(1.1); } }
@keyframes auth-glow-b { to { transform: translate(-8%, 10%) rotate(-18deg) scale(.92); } }
@keyframes auth-glow-c { to { transform: translate(-10%, -6%) rotate(-24deg) scale(1.12); } }
@keyframes auth-glow-d { to { transform: translate(12%, -8%) rotate(16deg) scale(1.08); } }
@keyframes auth-glow-e { to { transform: translate(-6%, 6%) rotate(28deg) scale(1.1); } }
@keyframes auth-glow-f { to { transform: translate(-30%, 12%) rotate(-32deg) scale(1.18); } }

/* ============ coluna de venda (cadastro) ============ */
.auth-aside { position: sticky; top: 112px; max-width: 520px; }

/* a pílula da landing */
.auth-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 24px;
    padding: 5px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-size: .875rem;
    font-weight: 500;
}
.auth-eyebrow svg { color: var(--blue); flex: none; }

/* título de seção da landing: 600, segunda linha em --tone */
.auth-headline {
    margin-bottom: 18px;
    font-weight: 600;
    font-size: clamp(2rem, 1.6vw + 1.2rem, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--ink);
    text-wrap: balance;
}
.auth-headline span { display: block; }
.auth-headline .tone { color: var(--tone); }

.auth-lead {
    max-width: 44ch;
    color: var(--muted);
    font-size: 1.0625rem;
    text-wrap: pretty;
}

/* os três momentos do "Como começar" da landing, com ícone (não número:
   o formulário ao lado já numera as próprias etapas) */
.auth-steps { display: grid; gap: 18px; margin-top: 32px; }
.auth-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.auth-step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--blue-wash);
    border: 1px solid var(--blue-wash-2);
    color: var(--blue-deep);
}
/* "div > ..." e não ".auth-steps span": o span do ícone também está dentro
   do li, e a regra larga vencia o inline-flex dele (ícone ia para o canto). */
.auth-steps li > div > strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.auth-steps li > div > span { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; }

.auth-note { margin-top: 28px; color: var(--muted); font-size: .8125rem; }

/* ============ card do formulário ============ */
.auth-card {
    position: relative;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-window);
}

.auth-card-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--blue-wash);
    border: 1px solid var(--blue-wash-2);
}
/* favicon-transp (2026-10-02, pedido do dono): marca sem fundo, proporção 4:3 */
.auth-card-mark img { width: 26px; height: auto; }

.auth-title {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--ink);
    text-wrap: balance;
}

.auth-subtitle {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 1rem;
}
.auth-subtitle strong { color: var(--ink); font-weight: 600; }

/* ============ anti-spam (honeypot) ============ */
/* Campo-isca de lib/honeypot.php — fora da tela por posição, não por
   display:none (parte dos bots checa isso antes de preencher). */
.hp-field {
    position: absolute;
    left: -9999px; top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ============ formulário ============ */
.auth-page .field { margin-bottom: 18px; }

.auth-page label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 500;
}

.auth-page .optional { color: var(--muted); font-weight: 400; }

.auth-page .input {
    display: block;
    width: 100%;
    height: var(--control-height);
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--sans);
    font-size: .9375rem;
    line-height: 1.35;
    transition: border-color .18s ease, box-shadow .18s ease;
}
/* #66788C: 4,6:1 sobre branco (o #8493A5 anterior dava 3,1:1) */
.auth-page .input::placeholder { color: #66788C; opacity: 1; }
.auth-page .input:hover { border-color: #B9C3D1; }
.auth-page .input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-wash-2);
    outline: none;
}
.auth-page .input:focus-visible { outline: none; }

.auth-page .input.input-error,
.auth-page .input[aria-invalid="true"] { border-color: var(--err); }
.auth-page .input.input-valid { border-color: #12B76A; }
.auth-page .input.input-error:focus,
.auth-page .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--err-line); }

.auth-page .input:disabled {
    background: var(--paper);
    color: var(--muted);
    cursor: not-allowed;
}

/* "Mostrar senha": olho dentro do campo, à direita (auth_password_toggles). */
.pw-wrap { position: relative; }
.auth-page .pw-wrap .input { padding-right: 48px; }
.auth-page .pw-toggle {
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    color: var(--muted);
    transition: color .18s ease, background .18s ease;
}
.auth-page .pw-toggle:hover { color: var(--ink); background: var(--paper); }
.auth-page .pw-toggle[aria-pressed="true"] { color: var(--blue-deep); }

/* Mensagem que ui-enhancements.js injeta no campo inválido. */
.auth-page .field-error {
    margin-top: 7px;
    color: var(--err);
    font-size: .8125rem;
    line-height: 1.4;
}

.auth-page .forgot-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue-deep);
    font-size: .875rem;
    font-weight: 500;
}
.auth-page .forgot-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 26px;
}
.auth-actions > .btn:only-child { grid-column: 1 / -1; }

.links {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    text-align: center;
}
.links .btn { width: 100%; }

.auth-footer { color: var(--muted); font-size: .9375rem; }

/* Selo de confirmação das telas de retorno do Stripe. */
.auth-page .success-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--blue-wash);
    color: var(--blue-deep);
}

/* Aceite de novidades por e-mail no cadastro (desmarcado por padrão). */
.promo-opt-in {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-inner);
    background: var(--paper);
}
.auth-page .promo-opt-in-label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
}
.promo-opt-in-label input {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    cursor: pointer;
}
.promo-opt-in-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.45;
}

/* ============ avisos ============ */
.auth-page .alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: .9375rem;
    line-height: 1.5;
}
.auth-page .alert-error { border-color: var(--err-line); background: var(--err-bg); color: var(--err); }
.auth-page .alert-success { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.auth-page .alert-info { border-color: var(--line); background: var(--paper); color: var(--text); }
.auth-page .alert-warning { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.auth-page .alert strong { color: inherit; }
.auth-page .alert a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.auth-page .alert-icon { display: flex; align-items: flex-start; gap: 10px; }
.auth-page .alert-icon svg { flex: 0 0 auto; margin-top: 2px; }

/* ============ cadastro: etapas do formulário ============ */
/* Duas colunas: "Informações pessoais" | "Sua clínica" + "Segurança"
   empilhadas, para equilibrar a altura (2026-09-14). Numeração aqui é
   sequência real do preenchimento. */
.form-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
    margin-bottom: 22px;
}
.form-col-stack { display: flex; flex-direction: column; gap: 26px; }

.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.section-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    flex: none;
}

.section-title { color: var(--ink); font-size: 1rem; font-weight: 600; }

/* ============ força da senha ============ */
.pw-strength { margin-top: 10px; }

.pw-strength-track {
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.pw-strength-bar {
    width: 0; height: 100%;
    border-radius: inherit;
    background: var(--err);
    transition: width .22s ease, background .22s ease;
}
.pw-strength[data-level="1"] .pw-strength-bar { width: 20%; background: var(--err); }
.pw-strength[data-level="2"] .pw-strength-bar { width: 40%; background: #DC6803; }
.pw-strength[data-level="3"] .pw-strength-bar { width: 60%; background: #DC6803; }
.pw-strength[data-level="4"] .pw-strength-bar { width: 80%; background: var(--blue); }
.pw-strength[data-level="5"] .pw-strength-bar { width: 100%; background: #039855; }

.pw-strength-meta {
    display: flex; justify-content: space-between; gap: 10px;
    margin-top: 7px;
    color: var(--muted);
    font-size: .8125rem;
}
.pw-strength-label { font-weight: 500; }

.pw-reqs {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}
.pw-reqs-title { margin-bottom: 6px; color: var(--ink); font-size: .8125rem; font-weight: 600; }

.pw-req {
    display: flex; align-items: center; gap: 9px;
    padding: 2px 0;
    color: var(--muted);
    font-size: .8125rem;
}
.pw-req .req-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--line-2);
    flex: 0 0 auto;
    transition: background .18s ease, box-shadow .18s ease;
}
.pw-req.valid { color: var(--ok); }
.pw-req.valid .req-dot { background: #039855; box-shadow: 0 0 0 3px rgba(3, 152, 85, .14); }

.pw-match { margin-top: 10px; font-size: .8125rem; font-weight: 500; }
.pw-match.match { color: var(--ok); }
.pw-match.mismatch { color: var(--err); }

/* ============ código de confirmação ============ */
/* Seis células, uma por dígito; a borda escurece conforme cada uma recebe
   seu número. Sem JS continuam sendo seis campos comuns. */
.auth-page .code-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }

.auth-page .code-legend {
    margin-bottom: 8px; padding: 0;
    font-size: .875rem; font-weight: 500;
    color: var(--ink);
}

.auth-page .code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    max-width: 380px;
}

.auth-page .code-cell {
    width: 100%; height: 60px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--paper);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 1.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    caret-color: var(--blue);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.auth-page .code-cell.is-filled { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.auth-page .code-cell:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-wash-2);
}
.auth-page .code-field.has-error .code-cell { border-color: var(--err); color: var(--err); }
.auth-page .code-field.has-error .code-cell:focus { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-line); }

.auth-page .code-help { display: block; margin-top: 10px; color: var(--muted); font-size: .8125rem; }

/* ============ responsivo ============ */
@media (max-width: 1120px) {
    .auth-shell.is-split { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
    .form-steps { grid-template-columns: 1fr; gap: 24px; }
    .form-col-stack { gap: 24px; }
}

@media (max-width: 900px) {
    .auth-topbar-inner { grid-template-columns: auto 1fr; gap: 12px; }
    .auth-nav { display: none; }

    /* Formulário primeiro: quem abre esta tela veio para criar a conta. A
       coluna de venda desce para depois dele. */
    .auth-shell.is-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        max-width: 640px;
    }
    .auth-shell.is-split .auth-stage { order: 1; }
    .auth-aside { order: 2; position: static; max-width: none; }
}

@media (max-width: 640px) {
    .auth-topbar { height: 64px; }
    .auth-topbar-inner,
    .auth-shell { width: min(1232px, 100% - 32px); }

    .auth-shell.is-single { min-height: calc(100dvh - 64px); padding-block: 32px 48px; }
    .auth-shell.is-split { padding-block: 24px 48px; }

    .auth-page .auth-topbar-link { display: none; }
    .auth-page .lbl-full { display: none; }
    .auth-page .lbl-short { display: inline; }

    .auth-card { padding: 26px 20px; }
    .auth-title { font-size: 1.5rem; }

    /* com o card em 20px de padding, 320px de tela deixam 278px para seis
       células e cinco vãos */
    .auth-page .code-grid { gap: 4px; }
    .auth-page .code-cell { height: 56px; font-size: 1.5rem; }

    .auth-actions { grid-template-columns: 1fr; }
    .auth-glow { inset: -6% -24% -8%; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
