/* Tela de login (contas:entrar), D-609 e D-610: cópia do desenho aprovado
   docs/design/login-v5-painel-solto-2026-11-24.html, com as fontes servidas de /static (nada de fora).
   Os acréscimos da construção ficam no fim, em "Construção". */

@font-face { font-family: "Gestao Marca"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/gestao-marca.9d90c145a858.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.81419bf5abb5.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.8e986e86d57e.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.a1e2a2d7d4c0.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.15481e4eab6d.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.79936b18df9f.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.b1c8a895f5fd.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.5a2ce7798732.woff2") format("woff2"); }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0b1016;
  color-scheme: dark;
}

.lg {
  --field-line: #3c4f5d;
  --bg: #0b1016;
  --surface: #121a22;
  --surface2: #18232c;
  --input: #0d141b;
  --line: #2b3945;
  --line-strong: #5d7482;
  --text: #edf3f5;
  --muted: #afbdc6;
  --subtle: #91a2ae;
  --aqua: #2dd4bf;
  --green: #5cdb9b;
  --amber: #f3b858;
  --orange: #f8965d;
  --red: #fd777d;
  --blue: #72aaff;
  --violet: #ac9cdd;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --marca: "Gestao Marca", "Orbitron", "Barlow", sans-serif;
  --edge-w: .75px;

  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: var(--bg);
  color: var(--text);
  font: 400 15px/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg :where(h1, h2, h3, p, ul) { margin: 0; }
.lg :where(ul) { padding: 0; list-style: none; }
.lg :where(button, input) { font: inherit; color: inherit; }
.lg button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lg button:disabled { cursor: default; }
.lg :where(a, button, input):focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.lg svg { flex: none; }
.lg svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg svg.i.p { width: 16px; height: 16px; }
.lg svg.g { width: 18px; height: 18px; }

/* Grade de fundo do tema Turquesa */
.grade {
  background-image:
    linear-gradient(rgb(43 57 69 / .30) 1px, transparent 1px),
    linear-gradient(90deg, rgb(43 57 69 / .30) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Chanfro: canto inferior direito cortado com a diagonal no contorno */
.ch {
  --cut: 8px;
  --edge: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  background-image: linear-gradient(135deg, transparent calc(50% - 2 * var(--edge-w)), var(--edge) calc(50% - 2 * var(--edge-w)), var(--edge) 50%, transparent 50%);
  background-position: right bottom;
  background-origin: border-box;
  background-repeat: no-repeat;
  background-size: var(--cut) var(--cut);
}

/* ---------- Palco da esquerda ---------- */
.palco {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#palco-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.palco-topo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5.2vh, 64px) clamp(24px, 3vw, 52px) 0 clamp(36px, 4.8vw, 96px);
  pointer-events: none;
}
.palco-topo a,
.palco-topo .tag { pointer-events: auto; }

.palco-esq {
  min-width: 0;
  max-width: 560px;
}

.palco-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}
.marca .logo-av { width: 52px; height: 52px; }
.marca b {
  display: block;
  font: 600 36px/1 var(--marca);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.marca small {
  display: block;
  margin-top: 9px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-glint {
  stroke-dasharray: 15 110;
  stroke-dashoffset: 18;
  opacity: 0;
  animation: logo-varre 4.6s cubic-bezier(.35, 0, .25, 1) infinite;
}
@keyframes logo-varre {
  0% { stroke-dashoffset: 18; opacity: 0; }
  8% { opacity: .92; }
  48% { stroke-dashoffset: -92; opacity: .92; }
  58%, 100% { stroke-dashoffset: -92; opacity: 0; }
}

.palco-cab .tag-mobile { display: none; }

.palco-texto {
  margin-top: clamp(24px, 4.6vh, 54px);
  max-width: 540px;
}
.palco-texto .palco-titulo {
  font: 600 clamp(26px, 2.25vw, 42px)/1.12 var(--sans);
  letter-spacing: -.01em;
}
.palco-texto .palco-titulo em { font-style: normal; color: var(--aqua); }
.palco-texto p:not(.palco-titulo) {
  margin-top: 13px;
  font: 400 clamp(13.5px, 0.98vw, 16.5px)/1.45 var(--sans);
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Fluxograma dos 3 agentes animados (alto direito do palco) ---------- */
.fluxo {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 54px;
  margin-top: 6px;
  pointer-events: auto;
}

.no-ag {
  --ac: var(--aqua);
  --cut: 10px;
  --edge: color-mix(in srgb, var(--ac) 34%, var(--line));
  position: relative;
  width: 162px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px 11px;
  background-color: rgb(15 22 29 / .92);
  border: 1px solid color-mix(in srgb, var(--ac) 32%, var(--line));
  border-top: 2px solid color-mix(in srgb, var(--ac) 52%, var(--line));
  opacity: .72;
  transition: opacity .28s ease, border-color .28s ease, background-color .28s ease, transform .28s ease;
}

.no-ag[data-ativo="1"] {
  --edge: color-mix(in srgb, var(--ac) 85%, var(--line));
  opacity: 1;
  background-color: color-mix(in srgb, var(--ac) 7%, rgb(15 22 29 / .96));
  border-color: color-mix(in srgb, var(--ac) 74%, var(--line));
  border-top-color: var(--ac);
}

.no-ag[data-cor="aqua"]   { --ac: var(--aqua); }
.no-ag[data-cor="violet"] { --ac: var(--violet); }
.no-ag[data-cor="amber"]  { --ac: var(--amber); }
.no-ag[data-cor="green"]  { --ac: var(--green); }
.no-ag[data-cor="orange"] { --ac: var(--orange); }

/* Brilho de recepção ao receber pacote do agente anterior */
.no-ag::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--ac);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.no-ag[data-rec="1"]::after { opacity: .65; }

.no-passo {
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 6px;
}
.no-ag[data-ativo="1"] .no-passo { color: var(--ac); }

/* Figura animada central (SVG vivo de cada agente) */
.no-fig {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
}
.no-fig svg {
  width: 68px;
  height: 68px;
  overflow: visible;
}

.no-nome {
  margin-top: 7px;
  font: 600 12.5px/1.15 var(--sans);
  color: var(--text);
  letter-spacing: .01em;
}

.no-estado {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--ac) 52%, transparent);
  background-color: color-mix(in srgb, var(--ac) 10%, var(--bg));
  color: var(--ac);
  font: 600 9.5px/1.15 var(--sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .22s, border-color .22s, background-color .22s;
}
.no-estado i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ac);
  flex: none;
}
.no-ag[data-ativo="1"] .no-estado i {
  animation: ag-pisca .75s ease-in-out infinite;
}
@keyframes ag-pisca { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Mini régua de confiança no Agente Analista */
.no-conf {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 4px;
}
.no-conf i {
  display: block;
  width: 10px;
  height: 4px;
  background: rgb(43 57 69 / .65);
  transition: background-color .16s ease;
}
.no-conf i.on { background: var(--ac); }

/* Micro-etiquetas de entrada/saída nos outros dois nós para equilibrar altura */
.no-meta {
  margin-top: 7px;
  font: 500 9px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
  height: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.no-meta b {
  font-weight: 500;
  color: var(--muted);
}

/* Selo compacto de 3 etapas no celular (<= 900px) */
.fluxo-mini {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 69px;
  z-index: 3;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.mini-no {
  --ac: var(--aqua);
  --cut: 5px;
  --edge: color-mix(in srgb, var(--ac) 45%, var(--line));
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 6px;
  border: 1px solid color-mix(in srgb, var(--ac) 42%, var(--line));
  background-color: rgb(11 16 22 / .92);
  color: var(--muted);
  font: 600 9.5px/1.15 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .72;
  transition: opacity .22s, color .22s, border-color .22s;
}
.mini-no[data-ativo="1"] {
  --edge: var(--ac);
  opacity: 1;
  color: var(--ac);
  border-color: color-mix(in srgb, var(--ac) 75%, transparent);
}
.mini-no[data-cor="aqua"]   { --ac: var(--aqua); }
.mini-no[data-cor="violet"] { --ac: var(--violet); }
.mini-no[data-cor="amber"]  { --ac: var(--amber); }
.mini-no[data-cor="green"]  { --ac: var(--green); }
.mini-no[data-cor="orange"] { --ac: var(--orange); }
.mini-no i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ac);
  flex: none;
}
.mini-seta {
  flex: 1 1 8px;
  min-width: 10px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
}
.mini-seta::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2.5px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid var(--line-strong);
}

/* ---------- Painel do formulário (direita — 560px natural, idêntico à B2) ---------- */
.lado {
  position: relative;
  flex: 0 0 560px;
  width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 44px 72px 36px;
  background-color: var(--surface);
  border-left: 1px solid var(--line);
}
.lado::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 120px;
  background: var(--aqua);
}
.lado-topo { display: flex; justify-content: flex-end; }
.lado-centro {
  flex: 1;
  width: 100%;
  max-width: 416px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: 32px 0;
}
.lado h1 { font: 600 32px/1.1 var(--sans); }
.lado .sub { margin-top: 8px; font: 400 15px/1.4 var(--sans); color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.rot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 18px; }
.rot label { font: 500 13.5px/1.2 var(--sans); color: var(--muted); }

/* O contorno do campo parado no tom do polimento do Gemini (escolha do dono, 24/11: "Opus + contorno Gemini"):
   mais visível que a linha da grade; o hover sobe para --line-strong e o foco segue o contorno turquesa fino. */
.caixa {
  --cut: 7px;
  --edge: var(--field-line);
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--field-line);
  background-color: var(--input);
  transition: border-color .18s, background-color .18s;
}
/* O ícone mora dentro do campo, igual nos dois, sem caixinha nem traço. */
.lg .caixa .ic-campo { width: 17px; height: 17px; margin-left: 15px; color: var(--subtle); transition: color .18s; pointer-events: none; }
.caixa input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: 500 15.5px/1 var(--sans);
  color: var(--text);
}
.caixa input::-ms-reveal { display: none; }
.caixa input::-ms-clear { display: none; }
.caixa.ch { background-image: none; }
.caixa.ch::before {
  position: absolute;
  z-index: 4;
  right: -1px;
  bottom: -1px;
  width: var(--cut);
  height: var(--cut);
  background: linear-gradient(135deg, transparent calc(50% - 2 * var(--edge-w)), var(--edge) calc(50% - 2 * var(--edge-w)), var(--edge) 50%, transparent 50%);
  pointer-events: none;
  content: "";
}
/* O foco é do campo inteiro (contorno fino com o chanfro), nunca do input sozinho. */
.lg .caixa input:focus,
.lg .caixa input:focus-visible { outline: none; box-shadow: none; }
.caixa input::placeholder { color: var(--subtle); opacity: .8; }
.caixa:hover { border-color: var(--line-strong); --edge: var(--line-strong); }
.campo:not(.erro) .caixa:not(:focus-within):has(input:not(:placeholder-shown, [readonly], :disabled)) .ic-campo { color: var(--muted); }
.caixa:focus-within {
  --edge: var(--aqua);
  border-color: var(--aqua);
  background-color: color-mix(in srgb, var(--aqua) 4%, var(--input));
  box-shadow: inset 0 0 0 1px rgb(45 212 191 / .30);
}
.caixa:focus-within .ic-campo { color: var(--aqua); }
/* Entrando: os campos travam (só leitura) e apagam um pouco. */
.caixa:has(input[readonly]),
.caixa:has(input:disabled) { border-color: var(--line); --edge: var(--line); background-color: var(--surface); box-shadow: none; }
.caixa:has(input[readonly]) input,
.caixa input:disabled { color: var(--muted); }
.caixa:has(input:is([readonly], :disabled)) .ic-campo { color: var(--subtle); }

.caixa .olho {
  flex: none;
  align-self: stretch;
  width: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--subtle);
  transition: color .15s;
}
.caixa .olho svg.i { width: 17px; height: 17px; }
.caixa .olho:hover:not(:disabled) { color: var(--aqua); }
.lg .caixa .olho:focus-visible { outline: none; color: var(--aqua); }
.lg .caixa .olho:focus-visible svg.i { outline: 1.5px solid var(--aqua); outline-offset: 3px; }
.caixa:has(.olho:focus-visible) { --edge: var(--aqua); border-color: var(--aqua); }
.caixa .olho:disabled { opacity: .5; }

.campo.erro .caixa,
.campo.erro .caixa:focus-within {
  --edge: var(--red);
  border-color: var(--red);
  background-color: color-mix(in srgb, var(--red) 5%, var(--input));
  box-shadow: inset 0 0 0 1px rgb(253 119 125 / .25);
}
.campo.erro .caixa:focus-within { box-shadow: inset 0 0 0 1px rgb(253 119 125 / .55); }
.campo.erro .caixa .ic-campo { color: var(--red); }
.campo-erro {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 13px/1.3 var(--sans);
  color: var(--red);
  animation: surge .3s ease-out both;
}

.esqueci {
  font: 500 13px/1 var(--sans);
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.esqueci:hover { color: var(--aqua); }

.acoes { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.btn {
  --cut: 9px;
  --edge: currentColor;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid currentColor;
  background-color: transparent;
  color: var(--aqua);
  font: 600 13px/1 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover:not(:disabled) { background-color: rgb(45 212 191 / .10); }
.btn .seta { transition: transform .2s; }
.btn:hover:not(:disabled) .seta { transform: translateX(4px); }
.btn:disabled { opacity: .6; }
.btn.carregando { opacity: 1; background-color: rgb(45 212 191 / .07); }
.btn.carregando::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 2px;
  background: var(--aqua);
  animation: varre 1.15s ease-in-out infinite;
}
@keyframes varre { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.btn-neutro { --edge: var(--line-strong); color: var(--text); border-color: var(--line-strong); }
.btn-neutro:hover:not(:disabled) { background-color: rgb(237 243 245 / .05); border-color: var(--muted); --edge: var(--muted); }

.giro {
  width: 15px;
  height: 15px;
  border: 1.5px solid rgb(45 212 191 / .25);
  border-top-color: var(--aqua);
  border-radius: 50%;
  animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

.ou {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--subtle);
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font: 600 10.5px/1.3 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-ambar { color: var(--amber); border-color: rgb(243 184 88 / .55); }
.tag-verde { color: var(--green); border-color: rgb(92 219 155 / .5); }

.aviso {
  --c: var(--red);
  --cut: 8px;
  --edge: color-mix(in srgb, var(--c) 60%, transparent);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  background-color: color-mix(in srgb, var(--c) 9%, var(--surface));
  font: 400 13.5px/1.4 var(--sans);
  color: var(--text);
  animation: surge .35s cubic-bezier(.2, .9, .3, 1) both;
}
.aviso svg { margin-top: 1px; color: var(--c); }
.aviso b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--c); }

.lado-pe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.seguro { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--sans); color: var(--muted); }
.seguro svg { color: var(--green); }
.links { display: flex; align-items: center; gap: 14px; font: 500 13px/1 var(--sans); color: var(--line-strong); }
.lk { color: var(--muted); text-decoration: none; transition: color .15s; }
.lk:hover { color: var(--aqua); }

.texto-curto { display: none; }

@keyframes surge { from { transform: translateY(10px); } to { transform: none; } }
.surge { animation: surge .6s cubic-bezier(.2, .9, .3, 1) both; }
.o1 { animation-delay: 80ms; }
.o2 { animation-delay: 160ms; }
.o3 { animation-delay: 240ms; }
.o4 { animation-delay: 320ms; }
.o5 { animation-delay: 400ms; }

.oculto { display: none !important; }

/* ---------- Notebook (901px a 1680px — ex.: 1366x768) ---------- */
@media (max-width: 1680px) and (min-width: 901px) {
  .lado {
    padding: 34px clamp(32px, 3.8vw, 68px) 28px;
  }
  .palco-topo {
    padding: 28px 22px 0 30px;
    gap: 16px;
  }
  .palco-esq { max-width: 292px; }
  .marca .logo-av { width: 42px; height: 42px; }
  .marca b { font-size: 26px; letter-spacing: 3px; }
  .marca small { font-size: 10px; margin-top: 6px; }
  .palco-texto { margin-top: 20px; max-width: 290px; }
  .palco-texto .palco-titulo { font-size: 24px; line-height: 1.15; }
  .palco-texto p:not(.palco-titulo) { font-size: 13px; margin-top: 9px; }

  .fluxo { gap: 46px; margin-top: 2px; }
  .no-ag { width: 120px; padding: 9px 6px 9px; }
  .no-fig, .no-fig svg { width: 54px; height: 54px; }
  .no-passo { font-size: 8.5px; margin-bottom: 4px; }
  .no-nome { font-size: 11px; margin-top: 5px; }
  .no-estado { font-size: 8.5px; padding: 2px 5px; margin-top: 5px; min-height: 18px; }
  .no-conf { gap: 2px; margin-top: 6px; }
  .no-conf i { width: 7px; }
}

/* ---------- Celular e janelas estreitas (<= 900px) ---------- */
@media (max-width: 900px) {
  .lg { flex-direction: column; }

  .palco {
    flex: 0 0 auto;
    min-height: 0;
    height: 264px;
  }
  .palco-topo {
    display: block;
    padding: 18px 16px 0;
  }
  .palco-esq { max-width: none; }
  .marca { gap: 10px; min-width: 0; }
  .marca .logo-av { width: 40px; height: 40px; }
  .marca b { font-size: clamp(20px, 5.6vw, 24px); letter-spacing: 2.2px; }
  .marca small { font-size: 10px; margin-top: 5px; letter-spacing: .14em; }

  .palco-cab .tag-mobile { display: inline-flex; flex: none; }
  .palco-texto { display: none; }
  .fluxo { display: none; }
  .fluxo-mini { display: flex; }

  .lado {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 16px 20px;
  }
  .lado::before {
    left: 0;
    top: -1px;
    width: 96px;
    height: 2px;
  }
  .lado-topo { display: none; }
  .lado-centro {
    justify-content: flex-start;
    max-width: 440px;
    padding: 0;
    gap: 20px;
  }
  .lado h1 { font-size: 26px; }
  .lado .sub { font-size: 14px; }
  .form { gap: 15px; }
  .acoes { gap: 13px; margin-top: 2px; }
  .lado-pe {
    margin-top: auto;
    padding-top: 20px;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .seguro { font-size: 12px; }
  .links { gap: 10px; font-size: 12.5px; }
  .texto-cheio { display: none; }
  .texto-curto { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .surge, .aviso, .campo-erro, .logo-glint, .btn.carregando::after, .giro, .no-estado i {
    animation: none !important;
  }
}
.lado-moldura { display: contents; }

/* v5: o painel do login solto, como um cartão (só no computador) */
@media (min-width: 901px) {
  .lg {
    background-image:
      linear-gradient(rgb(43 57 69 / .30) 1px, transparent 1px),
      linear-gradient(90deg, rgb(43 57 69 / .30) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  .palco.grade { background-image: none; }
  .lado-moldura {
    display: flex;
    flex: 0 0 clamp(440px, 38.5vw, 540px);
    min-width: 0;
    margin: 20px 20px 20px 0;
    filter: drop-shadow(0 16px 25px rgb(0 0 0 / .35));
  }
  .lado {
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 40px);
    min-height: calc(100dvh - 40px);
    border: 1px solid var(--line);
    border-top: 2px solid var(--aqua);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    background-image: linear-gradient(135deg, transparent calc(50% - 1.5px), var(--line) calc(50% - 1.5px), var(--line) 50%, transparent 50%);
    background-position: right bottom;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-size: 18px 18px;
  }
  .lado::before { display: none; }
}

/* ---------- Construção (contas:entrar) ---------- */
/* Os avisos da prancha de estados: conta sem acesso (laranja) e muitas tentativas (âmbar, com o relógio). */
.aviso-laranja { --c: var(--orange); }
.aviso-ambar { --c: var(--amber); }
.aviso .num { font: 500 13.5px/1 var(--mono); color: var(--c); }
/* Entrando: os campos ficam só de leitura (desligados, não iriam no envio). */
.caixa input[readonly] { color: var(--muted); }
/* O preenchimento automático do navegador fica com o fundo do campo, sem o amarelo/azul dele. */
.caixa input:-webkit-autofill,
.caixa input:-webkit-autofill:hover,
.caixa input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--input) inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}
.caixa:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px color-mix(in srgb, var(--aqua) 4%, var(--input)) inset; }
.campo.erro .caixa input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px color-mix(in srgb, var(--red) 5%, var(--input)) inset; }

/* Ficar conectado neste aparelho: a caixinha no estilo do tema (contorno fino, chanfro, o visto turquesa). */
.lembrar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: -2px;
  font: 500 13.5px/1.2 var(--sans);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.lembrar input { position: absolute; z-index: 1; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.lembrar__caixa {
  --cut: 5px;
  --edge: var(--field-line);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--field-line);
  background-color: var(--input);
  color: transparent;
  transition: border-color .15s, background-color .15s, color .15s;
  pointer-events: none;
}
.lembrar__caixa svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.lembrar:hover:not(:has(input:disabled)) .lembrar__caixa { --edge: var(--line-strong); border-color: var(--line-strong); }
.lembrar input:checked + .lembrar__caixa { --edge: var(--aqua); border-color: var(--aqua); background-color: rgb(45 212 191 / .12); color: var(--aqua); }
.lembrar:has(input:focus-visible) { outline: 2px solid var(--aqua); outline-offset: 4px; }
.lembrar:has(input:checked) .lembrar__texto { color: var(--text); }

.aviso-verde { --c: var(--green); }
.dica { margin-top: -6px; font: 400 12.5px/1.4 var(--sans); color: var(--subtle); }
a.btn { text-decoration: none; }
.voltar { display: flex; }
.voltar .lk { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px/1 var(--sans); }

/* Foco pelo teclado: o chanfro (clip-path) corta o contorno de fora, então nos botões ele vem para dentro, e na
   caixinha de ficar conectado ele vai no rótulo inteiro (sem corte). */
.lg .btn:focus-visible { outline: 2px solid var(--aqua); outline-offset: -6px; background-color: rgb(45 212 191 / .10); }
.lg .btn-neutro:focus-visible { outline-color: var(--text); background-color: rgb(237 243 245 / .05); }

/* O campo da senha em grade: o "Esqueci a senha" vem depois da caixa no HTML (ordem do Tab) e fica ao lado do rótulo. */
#campo-senha { display: grid; grid-template-columns: 1fr auto; row-gap: 7px; }
#campo-senha .rot { grid-row: 1; grid-column: 1; }
#campo-senha .esqueci { grid-row: 1; grid-column: 2; align-self: center; }
#campo-senha .caixa,
#campo-senha .campo-erro { grid-column: 1 / -1; }
.esqueci[aria-disabled="true"] { pointer-events: none; opacity: .5; }

/* Entrando com o campo preenchido pelo navegador: o fundo acompanha o campo travado, sem retângulo dentro. */
.caixa:has(input[readonly]) input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--muted); }

/* Os pontos da senha um pouco maiores e espaçados. */
.caixa input[type="password"]:not(:placeholder-shown) { letter-spacing: .14em; }

.campo .dica { margin-top: 0; }
/* O primeiro acesso: a ajuda da senha do Django vem como lista; fica compacta, sem o recuo e a margem do navegador. */
.campo .dica ul { margin: 2px 0 0; padding-left: 16px; }
.campo .dica li + li { margin-top: 2px; }
.lembrar:has(input:disabled), .lembrar input:disabled { cursor: default; }
.lembrar:has(input:disabled) { opacity: .6; }
#btn-entrar[aria-label][disabled] { opacity: .85; }
.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  /* 16 px no campo: o Safari do iPhone não amplia a página ao tocar. Áreas de toque maiores. */
  .caixa input { font-size: 16px; }
  .lembrar { min-height: 32px; }
  .esqueci { padding: 6px 0; margin: -6px 0; }
}

/* Janelas médias (901 a 1320): o palco fica estreito para a frase e os três agentes lado a lado. A marca e a frase
   ocupam a linha de cima, e os agentes descem para a linha de baixo (o gráfico começa abaixo deles, porque o palco
   mede o topo e os cartões na hora). Abaixo de 1100, os cartões encolhem. */
@media (max-width: 1320px) and (min-width: 901px) {
  .palco-topo { flex-wrap: wrap; row-gap: clamp(16px, 2.6vh, 26px); }
  .palco-esq { flex: 1 1 100%; max-width: 480px; }
  .palco-texto { max-width: 480px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .fluxo { gap: 24px; }
  .no-ag { width: 108px; }
  .no-nome { font-size: 10px; white-space: nowrap; }
}
