/* Estilos exclusivos da tela de acesso. A landing não carrega este arquivo. */
.auth-document { scroll-padding-block:16px; scroll-behavior:auto; }
.auth-page {
  --auth-signal:#3B5BFF;
  --auth-ok:#1F8A5B;
  --auth-error:#C93C2E;
  --auth-cell:var(--space-48);
  --auth-sheet:var(--bg);
  --auth-field:var(--bg);
  --auth-paper-line:var(--bg-grid);
  --auth-header-size:80px;
  margin:0; min-block-size:100vh; min-block-size:100dvh;
  color:var(--text); background-color:var(--bg); font-family:var(--font-body);
  background-image:linear-gradient(var(--bg-grid) 1px,transparent 1px),linear-gradient(90deg,var(--bg-grid) 1px,transparent 1px);
  background-size:var(--auth-cell) var(--auth-cell);
  -webkit-font-smoothing:antialiased;
}
.auth-page * { box-sizing:border-box; min-inline-size:0; }
.auth-page [hidden] { display:none!important; }
.auth-page a,.auth-page button,.auth-page input { -webkit-tap-highlight-color:transparent; }
.auth-page a { color:inherit; text-underline-offset:4px; }
.auth-page :is(a,button,input):focus-visible { outline:3px solid var(--auth-signal); outline-offset:4px; }
.auth-page button { font-family:inherit; cursor:pointer; }
.auth-page .auth-layout { position:relative; z-index:1; display:grid; grid-template-rows:auto minmax(min-content,1fr) auto; min-block-size:100vh; min-block-size:100dvh; }
.auth-page .auth-topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; inline-size:min(1200px,calc(100% - clamp(16px,4vw,48px)*2)); block-size:100%; margin-inline:auto; padding:0; border:0; border-radius:0; background:none; box-shadow:none; animation:authChromeIn 450ms ease-out both; }
.auth-page .auth-back-button { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; min-block-size:48px; padding:10px 16px; border:1.5px solid var(--ink); border-radius:var(--radius-pill); background:var(--accent); color:var(--ink); box-shadow:2px 2px 0 var(--ink); font-size:14px; font-weight:700; line-height:1.35; }
.auth-page .auth-back-button:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
.auth-page .auth-main { display:grid; grid-template-columns:minmax(0,1fr); place-items:center; padding:24px 16px; }
.auth-page .auth-card { position:relative; inline-size:100%; padding:clamp(24px,4vw,40px); border:2px solid var(--ink); border-radius:inherit; background:var(--bg); isolation:isolate; transform-origin:center; backface-visibility:hidden; }
.auth-page .auth-card::before { content:''; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--surface); }
.auth-page .auth-tabs { display:grid; grid-template-columns:1fr 1fr; position:relative; isolation:isolate; gap:6px; padding:5px; border:1.5px solid var(--ink); border-radius:var(--radius-pill); margin-block-end:24px; background:var(--auth-field); }
.auth-page .auth-tab-indicator { position:absolute; inset:5px auto 5px 5px; inline-size:calc((100% - 16px)/2); border:1.5px solid var(--ink); border-radius:inherit; background:var(--accent); box-shadow:2px 2px 0 var(--ink); z-index:-1; transform:translateX(0); transition:transform 200ms var(--ease-out),opacity 150ms var(--ease-out); }
.auth-page .auth-tabs[data-active='criar-conta'] .auth-tab-indicator { transform:translateX(calc(100% + 6px)); }
.auth-page .auth-tabs[data-active='recuperar'] .auth-tab-indicator,.auth-page .auth-tabs[data-active='verified'] .auth-tab-indicator { opacity:0; }
.auth-page .auth-tab { display:flex; align-items:center; justify-content:center; min-block-size:48px; border:0; border-radius:var(--radius-pill); background:none; font-size:15px; font-weight:700; color:var(--ink); }
.auth-page .auth-views { display:grid; position:relative; }
/* Apenas o formulário ativo participa da altura: o cadastro pode crescer. */
.auth-page .auth-view { display:flex; flex-direction:column; gap:16px; margin:0; }
.auth-page .auth-view[hidden] { display:none!important; }
.auth-page .auth-fields { display:flex; flex-direction:column; gap:16px; }
.auth-page .auth-field { display:flex; flex-direction:column; gap:8px; }
.auth-page .auth-field label { font-size:14px; font-weight:700; line-height:1.4; }
.auth-page .auth-field label { transition:transform 150ms var(--ease-out); transform-origin:left; }
.auth-page .auth-field:focus-within label { transform:translateY(-1px); }
.auth-page .auth-input { inline-size:100%; min-block-size:56px; padding:12px 14px; border:2px solid var(--ink); border-radius:12px; background:var(--auth-field); color:var(--ink); font:400 16px/1.35 var(--font-body); box-shadow:none; }
.auth-page .auth-control { position:relative; }
.auth-page .auth-control::after { content:''; position:absolute; inset:-4px; border:3px solid var(--auth-signal); border-radius:16px; opacity:0; pointer-events:none; transition:opacity 150ms var(--ease-out); }
.auth-page .auth-control:focus-within::after { opacity:1; }
.auth-page .auth-input:focus { outline:none; }
.auth-page .auth-input[aria-invalid='true'] { border-color:var(--auth-error); }
.auth-page .auth-password { position:relative; }
.auth-page .auth-password .auth-input { padding-inline-end:56px; min-block-size:56px; }
.auth-page .auth-password-toggle { position:absolute; inset:2px 2px 2px auto; inline-size:48px; min-block-size:48px; display:grid; place-items:center; padding:0; border:0; border-radius:8px; background:none; color:var(--ink); }
.auth-page .auth-password-toggle svg { inline-size:22px; block-size:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.auth-page .auth-password-toggle[aria-pressed='false'] .eye-slash { opacity:0; }
.auth-page .auth-field-error { min-block-size:17px; margin:0; color:var(--ink); font-size:12px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.auth-page .auth-field-error:empty { display:none; }
.auth-page .auth-field-error:not(:empty) { border-inline-start:2px solid var(--auth-error); padding-inline-start:8px; }
.auth-page .auth-form-link { display:flex; align-items:center; min-block-size:48px; inline-size:fit-content; color:var(--ink); font-size:14px; font-weight:600; }
.auth-page .auth-recovery-link { align-self:flex-end; margin-block-start:-4px; text-decoration:underline; text-decoration-thickness:1px; }
.auth-page .auth-strength { margin-block-start:-4px; }
.auth-page .auth-strength-heading { display:flex; justify-content:space-between; gap:12px; font-size:12px; line-height:1.4; color:var(--muted); }
.auth-page .auth-strength-track { display:flex; gap:4px; margin-block:8px; }
.auth-page .auth-strength-track span { flex:1; block-size:4px; background:var(--ink); opacity:.15; transform-origin:left; }
.auth-page .auth-strength[data-level='1'] .auth-strength-track span:nth-child(-n+1),.auth-page .auth-strength[data-level='2'] .auth-strength-track span:nth-child(-n+2),.auth-page .auth-strength[data-level='3'] .auth-strength-track span { opacity:1; background:var(--auth-signal); }
.auth-page .auth-requirements { list-style:none; padding:0; margin:0; display:grid; gap:4px; font-size:12px; line-height:1.4; }
.auth-page .auth-requirements li { display:flex; gap:8px; align-items:baseline; color:var(--muted); }
.auth-page .auth-requirements li::before { content:'○'; font-weight:700; color:var(--ink); }
.auth-page .auth-requirements li[data-met='true']::before { content:'✓'; color:var(--auth-ok); }
.auth-page .auth-consent { display:flex; align-items:flex-start; gap:10px; min-block-size:48px; font-size:13px; line-height:1.5; padding-block:4px; }
.auth-page .auth-consent input { appearance:auto; flex:0 0 22px; inline-size:22px; block-size:22px; margin:0; accent-color:var(--auth-signal); cursor:pointer; }
.auth-page .auth-consent label { display:flex; flex-wrap:wrap; align-items:center; column-gap:4px; cursor:pointer; min-block-size:48px; }
.auth-page .auth-consent a { position:relative; display:inline-flex; align-items:center; min-block-size:48px; font-weight:700; text-decoration:underline; }
.auth-page .auth-submit-area { display:flex; flex-direction:column; gap:12px; margin-block-start:0; }
.auth-page .auth-submit { inline-size:100%; min-block-size:56px; border:2px solid var(--ink); border-radius:var(--radius-pill); background:var(--accent); color:var(--ink); box-shadow:4px 4px 0 var(--ink); font:900 16px/1.3 var(--font-display); padding:12px 20px; display:flex; align-items:center; justify-content:center; gap:10px; }
.auth-page .auth-submit:disabled { cursor:wait; opacity:.8; }
.auth-page .auth-submit:active:not(:disabled) { transform:translate(2px,2px); box-shadow:2px 2px 0 var(--ink); }
.auth-page .auth-submit[aria-busy='true']::before { content:''; inline-size:14px; block-size:14px; border:2px solid var(--ink); border-right-color:transparent; border-radius:50%; animation:authSpin 600ms linear infinite; }
.auth-page .auth-message { min-block-size:0; margin:0; font-size:13px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
.auth-page .auth-message:empty { display:none; }
.auth-page .auth-message[data-state='error']::before { content:'!'; display:inline-grid; place-items:center; inline-size:18px; block-size:18px; margin-inline-end:7px; border:1.5px solid var(--auth-error); border-radius:50%; font-weight:800; }
.auth-page .auth-message[data-state='error'] { color:var(--ink); border-inline-start:2px solid var(--auth-error); padding-inline-start:10px; }
.auth-page .auth-panel-copy { font-size:14px; line-height:1.6; margin:0; color:var(--muted); }
.auth-page .auth-view h2 { margin:0; font:900 20px/1.3 var(--font-display); letter-spacing:-.02em; }
.auth-page .auth-stamp { color:var(--bg); border:2px solid currentColor; border-radius:8px; padding:5px; inline-size:184px; transform:rotate(-8deg); opacity:0; pointer-events:none; }
.auth-page .auth-stamp-inner { border:1px solid currentColor; padding:10px 12px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.auth-page .auth-stamp small { font:600 10px/1.3 var(--font-body); letter-spacing:.1em; }
.auth-page .auth-stamp strong { font:900 24px/1 var(--font-display); }
.auth-page .auth-card-stamp { display:none; position:absolute; inset:-24px 12px auto auto; z-index:5; inline-size:120px; block-size:54px; color:var(--ink); margin:0; transform:rotate(-8deg); }
.auth-page .auth-card[data-authenticated='true'] .auth-card-stamp { display:block; }
.auth-page .auth-card-stamp strong { font-size:20px; }
.auth-page .auth-card-stamp small { font-size:9px; }
.auth-page .auth-card-stamp .auth-stamp-inner { padding:6px 8px; }
.auth-page .auth-privacy-dialog { inline-size:calc(100% - 32px); max-inline-size:480px; max-block-size:calc(100dvh - 32px); overflow-y:auto; padding:24px; border:2px solid var(--ink); border-radius:20px; background:var(--bg); color:var(--ink); box-shadow:6px 6px 0 var(--ink); }
.auth-page .auth-privacy-dialog::backdrop { background:var(--ink); opacity:.65; }
.auth-page .auth-privacy-dialog h2 { font:900 22px/1.3 var(--font-display); margin:0 0 16px; }
.auth-page .auth-privacy-dialog p { font-size:15px; line-height:1.6; margin:0 0 24px; }
.auth-page .auth-privacy-dialog .auth-submit { inline-size:auto; min-inline-size:120px; margin-inline-start:auto; }
.auth-page .auth-noscript { padding:12px; border:2px solid var(--auth-error); font-size:14px; }
/* O logo reutiliza os dois balões e a mini-coluna reais da landing. */
.auth-page .logo { display:inline-flex; align-items:center; gap:8px; border:0; border-radius:0; padding:0; background:none; box-shadow:none; min-block-size:56px; text-decoration:none; inline-size:fit-content; }
.auth-page .logo::after { content:none; }
.auth-page .logo>.logo-bubble { position:relative; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; isolation:isolate; min-block-size:32px; }
.auth-page .logo-solid { padding:6px 10px; transform:rotate(-2deg); }
.auth-page .logo-outline { padding:8px 10px; transform:rotate(1deg); }
.auth-page .logo-balloon-shape { position:absolute; inset:0; inline-size:100%; block-size:calc(100% + 6px); overflow:visible; pointer-events:none; z-index:-1; }
.auth-page .logo-solid .logo-balloon-shape { fill:var(--accent); stroke:var(--ink); stroke-width:2; stroke-linejoin:round; filter:drop-shadow(3px 3px 0 var(--ink)); }
.auth-page .logo-outline .logo-balloon-shape { inset:-5px 0 auto; fill:var(--bg); stroke:var(--ink); stroke-width:1.5; stroke-linejoin:round; }
.auth-page .logo-word { font:900 28px/.9 var(--font-display); color:var(--ink); letter-spacing:-.04em; }
.auth-page .logo-caption { color:var(--ink); font:800 12px/1.1 var(--font-body); letter-spacing:.06em; }
.auth-page .pilar-letter { display:inline-block; inline-size:.4em; vertical-align:baseline; letter-spacing:0; }
.auth-page .pilar-letter-fallback { display:none; }
.auth-page .pilar-letter-art { display:inline-block!important; inline-size:100%; block-size:.74em; vertical-align:baseline; overflow:visible; }
.auth-page .pilar-letter-solid { fill:var(--ink); }
.auth-page .pilar-letter-flutes { stroke:var(--bg); stroke-width:1.2; fill:none; }
.auth-page .pilar-letter-light { fill:none; }
@keyframes authCardIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes authSpin { to { transform:rotate(360deg); } }
@media(min-width:600px) {
  .auth-page #criar-conta .auth-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
  .auth-page #criar-conta .auth-fields>.auth-field:last-child { grid-column:1/-1; }
}
/* A mesma composição compacta atende celular, tablet e desktop. */
@media(max-width:1279px) {
  .auth-page .auth-tabs { margin-block-end:20px; }
}
@media(min-width:600px) and (max-width:1279px) {
  .auth-page .logo { min-block-size:48px; }
  .auth-page .logo-word { font-size:24px; }
  .auth-page .logo-caption { font-size:11px; }
  .auth-page .auth-back-button { min-block-size:48px; padding:10px 20px; }
}
@media(max-width:599px) {
  .auth-page .auth-back-button { min-block-size:48px; padding:8px 12px; font-size:12px; box-shadow:2px 2px 0 var(--ink); }
  .auth-page .logo { gap:6px; min-block-size:48px; }
  .auth-page .logo-word { font-size:20px; }
  .auth-page .logo-caption { font-size:9.5px; letter-spacing:.01em; }
  .auth-page .logo-solid { padding:6px 8px; }
  .auth-page .logo-outline { padding:8px; }
  .auth-page .auth-tabs { margin-block-end:16px; }
  .auth-page .auth-view { gap:12px; }
  .auth-page .auth-fields { gap:12px; }
  .auth-page .auth-tab { min-block-size:48px; }
}
@media(max-width:359px) {
  .auth-page .logo { gap:4px; }
  .auth-page .logo-word { font-size:17px; }
  .auth-page .logo-caption { font-size:8px; }
  .auth-page .auth-back-button { padding-inline:10px; font-size:11px; }
}
@media(max-height:740px) {
  .auth-page .auth-tabs { margin-block-end:16px; }
}
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-form-link:hover,.auth-page .auth-back-button:hover { text-decoration-thickness:2px; }
  .auth-page .auth-submit:hover:not(:disabled) { transform:translateY(-1px); }
}

/* Composição em três linhas; altura natural por aba. */
.auth-page .auth-live-grid { position:fixed; inset:0; z-index:0; inline-size:100%; block-size:100dvh; pointer-events:none; }
.auth-page .auth-card-frame { inline-size:100%; max-inline-size:480px; border-radius:var(--radius-lg); background:var(--bg); box-shadow:var(--shadow-hard); perspective:1400px; animation:authCardIn 450ms var(--ease-out) both; }
.auth-page .auth-title { margin:0 0 24px; min-block-size:1.2em; color:var(--ink); font:900 28px/1.2 var(--font-display); letter-spacing:-.035em; text-wrap:balance; }
.auth-page .auth-tabs { margin-block-end:24px; }
.auth-page .auth-submit,.auth-page .auth-input,.auth-page .auth-password .auth-input { min-block-size:56px; }
.auth-page .auth-submit-area { gap:12px; }
.auth-page .auth-card[data-flipping] { will-change:transform; }
.auth-page .auth-card::after { content:''; position:absolute; inset:24px 12px 24px auto; inline-size:2px; background:var(--ink); border-radius:var(--radius-pill); opacity:0; transform:scaleY(.8); pointer-events:none; transition:opacity 180ms ease,transform 360ms var(--ease-out); }
.auth-page .auth-card[data-flipping]::after { opacity:.12; transform:scaleY(1); }
.auth-page .auth-footer { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 20px; padding:12px 16px calc(16px + env(safe-area-inset-bottom)); font:500 12px/1.5 var(--font-body); color:var(--muted); animation:authChromeIn 450ms ease-out both; }
.auth-page .auth-development { display:inline-flex; align-items:center; min-block-size:32px; padding:6px 12px; border:1px solid var(--muted); border-radius:var(--radius-pill); }
.auth-page .auth-footer a { display:inline-flex; align-items:center; min-block-size:48px; text-decoration:underline; }
.auth-page .auth-card-stamp .hero-stamp-ink { display:block; position:relative; inline-size:100%; block-size:100%; }
.auth-page .auth-card-stamp .hero-stamp-print { position:absolute; inset:0; padding:4px; border:2px solid var(--ink); border-radius:6px; background:var(--accent); }
.auth-page .auth-card-stamp .hero-stamp-echo { transform:translate(2px,2px); opacity:.25; }
.auth-page .auth-card-stamp .hero-stamp-inner { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; block-size:100%; border:1px solid var(--ink); }
.auth-page .auth-card-stamp .hero-stamp-top { font:600 7px/1.2 var(--font-body); letter-spacing:.03em; }
.auth-page .auth-card-stamp strong { font:900 17px/1 var(--font-display); }
@media(min-width:600px) and (max-width:1023px),(min-width:1024px) and (max-width:1376px) and (pointer:coarse) {
  .auth-page { --auth-header-size:76px; }
  .auth-page .auth-card-frame { max-inline-size:520px; }
}
@media(max-width:599px) {
  .auth-page { --auth-header-size:64px; }
  .auth-page .auth-main { padding-block:16px; }
  .auth-page .auth-title { min-block-size:1.2em; margin-block-end:20px; }
}
@media(max-width:379px) { .auth-page .auth-title { min-block-size:2.4em; } }
@media(max-height:559px) { .auth-page { --auth-header-size:64px; } }
@media(max-height:559px) {
  .auth-page .auth-submit-area { position:sticky; inset-block-end:0; z-index:4; padding-block:8px; background:var(--auth-sheet); }
}
.auth-page[data-auth-keyboard] .auth-submit-area { position:sticky; inset-block-end:0; z-index:4; padding-block:8px; background:var(--auth-sheet); }
@keyframes authChromeIn { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
  .auth-page *,.auth-page *::before,.auth-page *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Cabeçalho e login compactos: cadastro independente e rolagem natural. */
.auth-page .auth-layout { padding-block-start:env(safe-area-inset-top); }
.auth-page .auth-topbar {
  inline-size:min(1040px,calc(100% - 32px)); block-size:auto;
  min-block-size:76px; margin-block:16px 0; padding:12px 20px;
  border:1.5px solid var(--ink); border-radius:var(--radius-md);
  background:var(--bg); box-shadow:var(--shadow-hard);
  position:relative; isolation:isolate;
}
.auth-page .auth-topbar::before { content:''; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--surface); }
.auth-page .auth-main { padding:24px 16px; }
.auth-page .auth-card { padding:28px; }
.auth-page .auth-card-frame { max-inline-size:480px; }
.auth-page .auth-title { min-block-size:0; margin-block-end:20px; font-size:26px; line-height:1.2; }
.auth-page .auth-tabs { margin-block-end:20px; }
.auth-page .auth-tab { min-block-size:44px; }
.auth-page .auth-view { gap:12px; }
.auth-page .auth-submit-area { margin-block-start:0; gap:8px; }
.auth-page .auth-footer { gap:8px 16px; padding:8px 16px calc(12px + env(safe-area-inset-bottom)); }
.auth-page .auth-footer a { min-block-size:44px; }
@media(min-width:600px) and (max-width:1376px) and (pointer:coarse), (min-width:600px) and (max-width:1023px) {
  .auth-page .auth-card-frame { max-inline-size:520px; }
}
@media(max-width:599px) {
  .auth-page .auth-topbar { min-block-size:64px; margin-block-start:12px; padding:8px 12px; gap:8px; }
  .auth-page .auth-topbar .logo { gap:4px; }
  .auth-page .auth-topbar .logo-word { font-size:19px; }
  .auth-page .auth-topbar .logo-caption { font-size:9px; }
  .auth-page .auth-topbar .logo-solid,.auth-page .auth-topbar .logo-outline { padding-inline:6px; }
  .auth-page .auth-back-button { padding-inline:10px; min-block-size:44px; font-size:12px; }
  .auth-page .auth-main { padding:16px; }
  .auth-page .auth-card { padding:20px; border-radius:var(--radius-md); }
  .auth-page .auth-card-frame { border-radius:var(--radius-md); }
  .auth-page .auth-title { font-size:24px; min-block-size:0; margin-block-end:16px; }
  .auth-page .auth-tabs { padding:4px; margin-block-end:16px; gap:6px; }
  .auth-page .auth-tab { min-block-size:44px; font-size:14px; }
  .auth-page .auth-tab-indicator { inset:4px auto 4px 4px; inline-size:calc((100% - 14px)/2); }
  .auth-page .auth-input,.auth-page .auth-password .auth-input { min-block-size:48px; padding-block:10px; }
  .auth-page .auth-password-toggle { inset:0 2px 0 auto; }
  .auth-page .auth-field { gap:6px; }
  .auth-page .auth-fields { gap:12px; }
  .auth-page .auth-recovery-link { min-block-size:44px; margin-block-start:0; }
  .auth-page .auth-submit { min-block-size:48px; }
  .auth-page .auth-message { font-size:12px; line-height:1.4; }
  .auth-page .auth-footer { flex-wrap:nowrap; gap:8px; font-size:10px; padding-block:4px calc(8px + env(safe-area-inset-bottom)); }
  .auth-page .auth-development { padding:4px 8px; min-block-size:28px; }
}
@media(max-height:700px) {
  .auth-page .auth-main { padding-block:12px; }
  .auth-page .auth-card { padding:20px; }
  .auth-page .auth-title { font-size:24px; margin-block-end:12px; }
  .auth-page .auth-tabs { margin-block-end:12px; }
  .auth-page .auth-view,.auth-page .auth-fields { gap:8px; }
  .auth-page .auth-input,.auth-page .auth-password .auth-input,.auth-page .auth-submit { min-block-size:48px; }
}
@media(max-height:559px) and (min-width:600px) {
  .auth-page .auth-topbar { min-block-size:52px; margin-block-start:8px; padding:2px 16px; }
  .auth-page .auth-topbar .logo { min-block-size:44px; }
  .auth-page .auth-main { padding-block:8px; }
  .auth-page .auth-card-frame { max-inline-size:600px; }
  .auth-page .auth-card { padding:16px 20px; }
  .auth-page .auth-card[data-view='entrar'] { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; align-items:center; }
  .auth-page .auth-card[data-view='entrar'] .auth-tabs { margin:0; }
  .auth-page .auth-card[data-view='entrar'] .auth-title { margin:0; font-size:22px; }
  .auth-page .auth-card[data-view='entrar'] .auth-views { grid-column:1/-1; }
  .auth-page #entrar .auth-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .auth-page .auth-footer { padding-block:0 calc(4px + env(safe-area-inset-bottom)); }
  .auth-page .auth-development { min-block-size:28px; }
}
/* O botão participa do fluxo, inclusive com teclado aberto; nunca cobre campos. */
.auth-page .auth-submit-area,.auth-page[data-auth-keyboard] .auth-submit-area { position:static; padding-block:0; background:none; }

@media(max-height:559px) and (min-width:600px) {
  .auth-page .auth-main { padding-block:4px; }
  .auth-page .auth-card { padding:12px 20px; }
  .auth-page .auth-card[data-view='entrar'] { gap:8px 20px; }
  .auth-page .auth-card[data-view='entrar'] .auth-tabs { padding:2px; }
  .auth-page .auth-card[data-view='entrar'] .auth-tab-indicator { inset:2px auto 2px 2px; inline-size:calc((100% - 10px)/2); }
}

/* Acabamento da troca de abas sem expor o verso ou recortar as bordas. */
.auth-page .auth-card-frame { perspective:1800px; }
.auth-page .auth-tab-indicator { transition:transform 360ms var(--ease-out),opacity 150ms var(--ease-out); }
.auth-page .auth-card[data-flipping] .auth-tab:focus-visible { outline-color:transparent; }
.auth-page .auth-footer { padding-block:4px calc(8px + env(safe-area-inset-bottom)); }
.auth-page .auth-footer a {
  position:relative; justify-content:center; min-block-size:44px; padding:8px 16px;
  border-radius:var(--radius-pill); font-size:12px; font-weight:600;
  color:var(--muted); text-decoration:none;
}
.auth-page .auth-footer a::after {
  content:''; position:absolute; inset:auto 16px 9px; block-size:1px;
  background:currentColor; opacity:.6; transform:scaleX(.22); transform-origin:center;
  transition:transform 200ms var(--ease-out),opacity 200ms var(--ease-out);
}
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-footer a:hover::after { transform:scaleX(1); opacity:1; }
}
.auth-page .auth-footer a:focus-visible::after { transform:scaleX(1); opacity:1; }
/* Inclui iPad Pro de 1032px sem depender do tipo de ponteiro emulado. */
@media(min-width:600px) and (max-width:1279px) and (min-height:560px) {
  .auth-page .auth-topbar { inline-size:calc(100% - 48px); max-inline-size:1040px; min-block-size:76px; padding:10px 20px; }
  .auth-page .auth-main { min-block-size:0; padding:20px 24px; }
  .auth-page .auth-card-frame { inline-size:100%; max-inline-size:520px; }
  .auth-page .auth-card { padding:28px; }
  .auth-page .auth-title { font-size:26px; min-block-size:0; margin-block-end:20px; }
  .auth-page .auth-tabs { margin-block-end:20px; }
  .auth-page .auth-view[hidden] { display:none!important; }
  .auth-page .auth-view { gap:12px; }
  .auth-page .auth-submit-area { margin-block-start:0; }
}
@media(prefers-reduced-motion:reduce) {
  .auth-page .auth-card::after { opacity:0; }
}

/* Tablet: o formulário fica junto ao cabeçalho, sem o vão de telas altas. */
@media(min-width:600px) and (max-width:1279px) and (min-height:560px) {
  .auth-page .auth-layout { grid-template-rows:auto auto minmax(0,1fr); }
  .auth-page .auth-main { padding-block:24px 12px; }
  .auth-page .auth-card { padding:24px; }
  .auth-page .auth-footer { align-self:start; }
}

/* Acabamento exclusivamente visual: nenhuma medida ou posição é alterada. */
.auth-page .auth-title { text-rendering:optimizeLegibility; }
.auth-page .auth-tab { -webkit-font-smoothing:antialiased; }
.auth-page .auth-tab:focus-visible { outline-offset:1px; }
.auth-page .auth-input { caret-color:var(--ink); }
.auth-page .auth-input::selection { background:var(--accent); color:var(--ink); }
.auth-page .auth-consent input { accent-color:var(--ink); }
.auth-page .auth-password-toggle { transition:opacity 150ms var(--ease-out); }
.auth-page .auth-password-toggle:active { opacity:.65; }
.auth-page .auth-footer a:active::after { transform:scaleX(1); opacity:1; }
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-password-toggle:hover { opacity:.65; }
  .auth-page .auth-tab[aria-selected='false']:hover { color:var(--muted); }
}

/* Títulos compactos; todos os formulários seguem a altura natural do conteúdo. */
.auth-page .auth-title { letter-spacing:-.025em; text-wrap:balance; }
@media(max-width:599px), (max-width:959px) and (max-height:559px) and (pointer:coarse) {
  .auth-page .auth-title { font-size:clamp(22px,5.8vw,24px); line-height:1.25; min-block-size:0; }
}

/* Somente as abas superiores: duas áreas iguais, sem ampliar o cartão. */
.auth-page .auth-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.auth-page .auth-tabs .auth-tab {
  inline-size:100%; align-self:stretch; padding-inline:8px;
  font-weight:700; line-height:1.2; white-space:nowrap;
}

/* Posição compartilhada; cada formulário mantém sua própria altura natural. */
.auth-page .auth-main[data-auth-anchored] { align-items:start; align-content:start; }
.auth-page .auth-main[data-auth-anchored] .auth-card-frame { margin-block-start:var(--auth-top-anchor,0px); }

/* Consentimento: alinhamento óptico e quebra natural do texto, sem flex no rótulo. */
.auth-page .auth-consent {
  display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center;
  gap:12px; min-block-size:48px; padding-block:0; color:var(--muted);
  font-size:13px; line-height:1.6;
}
.auth-page .auth-consent input {
  appearance:none; -webkit-appearance:none; display:grid; place-content:center;
  inline-size:24px; block-size:24px; margin:0;
  border:1.5px solid var(--ink); border-radius:6px;
  background:var(--bg); box-shadow:1px 1px 0 var(--ink); cursor:pointer;
}
.auth-page .auth-consent input::before {
  content:''; inline-size:6px; block-size:11px;
  border:solid var(--ink); border-width:0 2px 2px 0;
  transform:translateY(-1px) rotate(45deg) scale(.6); opacity:0;
  transition:transform 150ms var(--ease-out),opacity 150ms var(--ease-out);
}
.auth-page .auth-consent input:checked { background:var(--accent); }
.auth-page .auth-consent input:checked::before { transform:translateY(-1px) rotate(45deg) scale(1); opacity:1; }
.auth-page .auth-consent input[aria-invalid='true'] { border-color:var(--auth-error); }
.auth-page .auth-consent label {
  display:block; min-block-size:44px; padding-block:11px;
  font:inherit; cursor:pointer; overflow-wrap:normal;
}
.auth-page .auth-consent a {
  display:inline; min-block-size:0; padding:0; color:var(--ink);
  font-weight:700; text-decoration:underline; text-decoration-thickness:1px;
  text-underline-offset:3px; text-decoration-skip-ink:auto;
}
.auth-page .auth-consent a:focus-visible { border-radius:2px; outline-offset:3px; }
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-consent a:hover { text-decoration-thickness:2px; }
}
@media(forced-colors:active) {
  .auth-page .auth-consent input { appearance:auto; -webkit-appearance:auto; box-shadow:none; }
  .auth-page .auth-consent input::before { content:none; }
}

/* Link de privacidade do rodapé: acabamento da mesma família das pílulas. */
.auth-page .auth-footer a {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-block-size:44px; max-inline-size:100%; padding:9px 16px;
  border:1.5px solid var(--ink); border-radius:var(--radius-pill);
  background:var(--bg); color:var(--ink); box-shadow:2px 2px 0 var(--ink);
  font:600 13px/1.4 var(--font-body); text-decoration:none; isolation:isolate;
  transition:transform 180ms var(--ease-out);
}
.auth-page .auth-footer a::before {
  content:''; position:absolute; inset:0; z-index:-1;
  border-radius:inherit; background:var(--surface); pointer-events:none;
}
.auth-page .auth-footer a::after { content:none; }
.auth-page .auth-footer .auth-privacy-icon {
  flex:0 0 18px; inline-size:18px; block-size:18px;
  stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.auth-page .auth-footer a:active { transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-footer a:hover { transform:translateY(-1px); }
  .auth-page .auth-footer a:active { transform:translate(1px,1px); }
}

/* Movimento de folha: perspectiva suave e topo fixo durante o giro. */
.auth-page .auth-card { transform-origin:50% 0; }
.auth-page .auth-card-frame { perspective:1800px; }
.auth-page .auth-card::after {
  inset:18px 8px 18px auto; inline-size:28px; border-radius:inherit;
  clip-path:polygon(100% 0,100% 100%,0 96%,20% 50%,0 4%);
  background:var(--ink); opacity:0; transform:scaleX(0); transform-origin:right;
  transition:opacity 180ms ease,transform 280ms var(--ease-out);
}
.auth-page .auth-card[data-flipping]::after { opacity:.065; transform:scaleX(1); }
.auth-page .auth-card[data-turn-direction='backward']::after {
  inset-inline:8px auto; transform-origin:left;
  clip-path:polygon(0 0,0 100%,100% 96%,80% 50%,100% 4%);
}
/* Privacidade como link institucional, sem um segundo botão de ação. */
.auth-page .auth-footer a {
  gap:8px; padding:9px 14px; border:1.5px solid transparent;
  border-radius:var(--radius-sm); background:none; box-shadow:none;
  color:var(--muted); font-size:12px; font-weight:600;
  transition:transform 180ms var(--ease-out);
}
.auth-page .auth-footer a::before { content:none; }
.auth-page .auth-footer a::after {
  content:''; position:absolute; inset:auto 14px 8px 40px;
  block-size:1px; background:var(--ink); opacity:.4;
  transform:scaleX(.25); transform-origin:left;
  transition:transform 220ms var(--ease-out),opacity 220ms var(--ease-out);
}
.auth-page .auth-footer .auth-privacy-icon { stroke-width:1.5; opacity:.8; }
.auth-page .auth-footer a:active { transform:translateY(1px); box-shadow:none; }
.auth-page .auth-footer a:focus-visible::after { transform:scaleX(1); opacity:.8; }
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-footer a:hover { transform:none; color:var(--ink); }
  .auth-page .auth-footer a:hover::after { transform:scaleX(1); opacity:.8; }
  .auth-page .auth-footer a:active { transform:translateY(1px); }
}
@media(prefers-reduced-motion:reduce) {
  .auth-page .auth-card[data-flipping]::after { opacity:0; }
}

/* Sublinhado permanente, medido pelo próprio texto e separado do ícone. */
.auth-page .auth-footer a { color:var(--ink); }
.auth-page .auth-footer a::after { content:none; }
.auth-page .auth-footer a>span { position:relative; }
.auth-page .auth-footer a>span::after {
  content:''; position:absolute; inset:auto 0 -4px; block-size:1px;
  border-radius:var(--radius-pill); background:var(--ink); opacity:.6;
  pointer-events:none; transition:opacity 180ms var(--ease-out);
}
.auth-page .auth-footer a:focus-visible>span::after { opacity:1; }
@media(hover:hover) and (pointer:fine) {
  .auth-page .auth-footer a:hover>span::after { opacity:1; }
}
/* Acabamento da folha: dobra mais fina e indicador sincronizado com o giro. */
.auth-page .auth-card::after { inline-size:18px; }
.auth-page .auth-card[data-flipping]::after { opacity:.045; }
.auth-page .auth-tab-indicator { transition:transform 440ms var(--ease-out),opacity 150ms var(--ease-out); }
@media(prefers-reduced-motion:reduce) {
  .auth-page .auth-card[data-flipping]::after { opacity:0; }
}

/* Acabamento dos campos e da força de senha; medidas e regras preservadas. */
.auth-page .auth-field:focus-within label { transform:none; }
.auth-page .auth-field label { color:var(--ink); }
.auth-page .auth-control::after { border-radius:16px; transition:opacity 180ms var(--ease-out); }
.auth-page .auth-password-toggle svg { stroke-width:1.65; }
.auth-page .auth-strength-heading strong { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.auth-page .auth-strength-track span,
.auth-page .auth-strength[data-level='1'] .auth-strength-track span:nth-child(-n+1),
.auth-page .auth-strength[data-level='2'] .auth-strength-track span:nth-child(-n+2),
.auth-page .auth-strength[data-level='3'] .auth-strength-track span {
  position:relative; background:none; opacity:1; border-radius:var(--radius-pill);
}
.auth-page .auth-strength-track span::before,
.auth-page .auth-strength-track span::after {
  content:''; position:absolute; inset:0; border-radius:inherit;
  background:var(--ink); opacity:.16;
}
.auth-page .auth-strength-track span::after {
  background:var(--auth-signal); opacity:0; transform:scaleX(0); transform-origin:left;
  transition:transform 240ms var(--ease-out),opacity 180ms var(--ease-out);
}
.auth-page .auth-strength[data-level='1'] .auth-strength-track span:nth-child(-n+1)::after,
.auth-page .auth-strength[data-level='2'] .auth-strength-track span:nth-child(-n+2)::after,
.auth-page .auth-strength[data-level='3'] .auth-strength-track span::after { opacity:1; transform:scaleX(1); }
.auth-page .auth-requirements li::before { flex-shrink:0; font-family:var(--font-body); }
.auth-page .auth-requirements li[data-met='true'] { color:var(--ink); }
.auth-page .auth-requirements li[data-met='true']::before { color:var(--auth-ok); }

/* Referência de celular: iPhone SE, 375 × 667. Mesma escala em telas maiores. */
@media(max-width:599px) {
  .auth-page .auth-layout { --auth-extra:max(0px,calc(100svh - 667px)); --auth-wide:max(0px,calc(100vw - 375px)); grid-template-rows:auto auto minmax(0,1fr); }
  .auth-page .auth-topbar { min-block-size:clamp(64px,calc(64px + var(--auth-wide)*.185),76px); margin-block-start:12px; padding:8px 12px; inline-size:calc(100% - 32px); }
  .auth-page .auth-main {
    align-items:start; align-content:start;
    padding:clamp(12px,min(calc((100svh - 546px)/2),calc(60px + var(--auth-extra)*.22)),124px) 16px 12px;
  }
  .auth-page .auth-card-frame { inline-size:100%; max-inline-size:440px; border-radius:var(--radius-md); }
  .auth-page .auth-card { padding:clamp(16px,calc(20px + var(--auth-wide)*.09),26px); border-radius:var(--radius-md); }
  .auth-page .auth-tabs { margin-block-end:12px; padding:4px; }
  .auth-page .auth-tab { min-block-size:clamp(44px,calc(44px + var(--auth-wide)*.09),50px); font-size:clamp(14px,3.73vw,16px); }
  .auth-page .auth-title { font-size:clamp(22px,5.87vw,26px); line-height:1.25; margin-block-end:12px; min-block-size:0; }
  .auth-page .auth-view,.auth-page .auth-fields { gap:clamp(8px,calc(8px + var(--auth-extra)*.02),14px); }
  .auth-page .auth-fields { gap:clamp(8px,calc(8px + var(--auth-extra)*.04),20px); }
  .auth-page .auth-field { gap:clamp(6px,calc(6px + var(--auth-wide)*.03),8px); }
  .auth-page .auth-field label { font-size:clamp(14px,3.73vw,16px); }
  .auth-page .auth-topbar .logo-word { font-size:clamp(19px,5.06vw,22px); }
  .auth-page .auth-topbar .logo-caption { font-size:clamp(9px,2.4vw,10.5px); }
  .auth-page .auth-back-button { font-size:clamp(12px,3.2vw,14px); }
  .auth-page .auth-submit { font-size:clamp(16px,4.27vw,19px); }
  .auth-page .auth-form-link { font-size:clamp(14px,3.73vw,16px); }
  .auth-page .auth-footer a { font-size:clamp(12px,3.2vw,14px); }
  .auth-page .auth-input,.auth-page .auth-password .auth-input { min-block-size:clamp(48px,calc(48px + var(--auth-extra)*.025),56px); padding-block:10px; }
  .auth-page .auth-submit { min-block-size:clamp(48px,calc(48px + var(--auth-extra)*.025),56px); }
  .auth-page .auth-recovery-link { min-block-size:44px; margin-block-start:0; }
  .auth-page .auth-footer { align-self:start; margin-block-start:clamp(8px,calc(8px + var(--auth-extra)*.06),24px); padding-block-end:calc(16px + env(safe-area-inset-bottom,0px)); }
}
/* Celulares estreitos: preservar os dois balões e o botão, sem compressão do texto. */
@media(max-width:359px) {
  .auth-page .auth-topbar .logo-word { font-size:17px; }
  .auth-page .auth-topbar .logo-caption { font-size:8px; }
  .auth-page .auth-back-button { padding-inline:8px; font-size:11px; }
}
/* Referência de tablet: iPad Mini, 768 × 1024, incluindo Pro em retrato/paisagem. */
@media(min-width:600px) and (max-width:1279px) and (min-height:560px),
      (min-width:1280px) and (max-width:1599px) and (min-height:560px) and (pointer:coarse) {
  .auth-page .auth-layout { grid-template-rows:auto auto minmax(0,1fr); }
  .auth-page .auth-topbar {
    inline-size:calc(100% - 48px); max-inline-size:1040px;
    min-block-size:76px; margin-block-start:16px; padding:10px 20px;
  }
  .auth-page .logo { min-block-size:48px; }
  .auth-page .logo-word { font-size:24px; }
  .auth-page .logo-caption { font-size:11px; }
  .auth-page .auth-back-button { min-block-size:48px; padding:10px 20px; font-size:14px; }
  .auth-page .auth-main { align-items:start; align-content:start; padding:24px 24px 12px; }
  .auth-page .auth-card-frame { inline-size:100%; max-inline-size:520px; border-radius:var(--radius-lg); }
  .auth-page .auth-card { padding:24px; border-radius:inherit; }
  .auth-page .auth-title { font-size:26px; line-height:1.2; margin-block-end:20px; min-block-size:0; }
  .auth-page .auth-tabs { margin-block-end:20px; padding:5px; }
  .auth-page .auth-tab { min-block-size:44px; font-size:15px; }
  .auth-page .auth-tab-indicator { inset:5px auto 5px 5px; inline-size:calc((100% - 16px)/2); }
  .auth-page .auth-view { gap:12px; }
  .auth-page .auth-fields { gap:16px; }
  .auth-page .auth-field { gap:8px; }
  .auth-page .auth-input,.auth-page .auth-password .auth-input,.auth-page .auth-submit { min-block-size:56px; }
  .auth-page .auth-footer { align-self:start; }
}
/* Tela baixa/teclado: reduzir somente o intervalo, sem recortar o formulário. */
@media(max-width:599px) and (max-height:559px) {
  .auth-page .auth-main { padding-block-start:16px; }
}

/* Tablet: tipografia ligeiramente maior em acesso, cadastro e recuperação. */
@media (min-width:600px) and (max-width:1023px), (min-width:1024px) and (max-width:1279px) and (pointer:coarse), (min-width:1024px) and (max-width:1279px) and (orientation:portrait) {
  .auth-page .logo-word { font-size:26px; }
  .auth-page .logo-caption { font-size:12px; }
  .auth-page .auth-back-button { font-size:15px; }
  .auth-page .auth-title { font-size:28px; }
  .auth-page .auth-tab { font-size:16.5px; }
  .auth-page .auth-field label { font-size:15px; }
  .auth-page .auth-input { font-size:17px; }
  .auth-page .auth-submit { font-size:17.5px; }
  .auth-page .auth-field-error { font-size:13px; }
  .auth-page .auth-form-link { font-size:15px; }
  .auth-page .auth-strength-heading,.auth-page .auth-requirements { font-size:13px; }
  .auth-page .auth-consent { font-size:14px; }
  .auth-page .auth-message { font-size:14px; }
  .auth-page .auth-panel-copy { font-size:15px; }
  .auth-page .auth-view h2 { font-size:22px; }
  .auth-page .auth-footer a { font-size:13px; }
  .auth-page .auth-privacy-dialog h2 { font-size:24px; }
  .auth-page .auth-privacy-dialog p { font-size:16px; }
}


@media(max-width:599px) and (max-height:600px) {
  .auth-page .auth-topbar { margin-block-start:8px; }
  .auth-page .auth-main { padding-block:10px 8px; }
  .auth-page .auth-card { padding:16px; }
  .auth-page .auth-footer { margin-block-start:0; padding-block:0 calc(8px + env(safe-area-inset-bottom,0px)); }
}

/* Mesma hierarquia da referência nos tablets, sem afetar notebooks com trackpad. */
@media (min-width:600px) and (max-width:1023px) and (min-height:560px), (min-width:1024px) and (max-width:1279px) and (pointer:coarse) and (min-height:560px), (min-width:1024px) and (max-width:1279px) and (orientation:portrait) and (min-height:560px), (min-width:1280px) and (max-width:1599px) and (pointer:coarse) and (min-height:560px) {
  .auth-page .auth-main { align-items:start; align-content:start; padding:clamp(24px,calc((100svh - 680px)*.4),280px) 24px 16px; }
  .auth-page .auth-card-frame { max-inline-size:560px; }
  .auth-page .auth-card { padding:clamp(24px,3vw,32px); }
  .auth-page .auth-footer { align-self:start; margin-block-start:12px; padding-block:8px calc(24px + env(safe-area-inset-bottom,0px)); }
}

/* Paisagem baixa: compactar o espaço e alinhar os campos, sem rolagem interna. */
@media (min-width:600px) and (max-width:1023px) and (min-height:560px) and (max-height:759px), (min-width:1024px) and (max-width:1279px) and (pointer:coarse) and (min-height:560px) and (max-height:759px), (min-width:1024px) and (max-width:1279px) and (orientation:portrait) and (min-height:560px) and (max-height:759px), (min-width:1280px) and (max-width:1599px) and (pointer:coarse) and (min-height:560px) and (max-height:759px) {
  .auth-page .auth-main { padding-block:16px 12px; }
  .auth-page .auth-card { padding:20px 24px; }
  .auth-page .auth-tabs,.auth-page .auth-title { margin-block-end:16px; }
  .auth-page #entrar .auth-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .auth-page .auth-footer { margin-block-start:0; padding-block:4px calc(12px + env(safe-area-inset-bottom,0px)); }
}
