/* Dotti Studio — tres estudos para a mesma porta de entrada.
 *
 * Timeline, Portal e Controle compartilham DOM, ids, autocomplete, rotas e
 * chamadas. Toda regra fica escopada ao root publico para o experimento nao
 * tocar na casca autenticada nem reviver estilos genericos no restante do app.
 */

#raiz > :is(.auth-shell, .auth-centro) {
  --auth-canvas: #0f1012;
  --auth-plane: #141619;
  --auth-surface: #1b1e22;
  --auth-raised: #24272c;
  --auth-hover: #2d3137;
  --auth-rule: rgba(235, 238, 243, .105);
  --auth-rule-strong: rgba(235, 238, 243, .38);
  --auth-text: #f7f8fa;
  --auth-muted: #bac0c8;
  --auth-dim: #a8afb8;
  --auth-red: #ff2020;
  --auth-red-dark: #d60000;
  --auth-red-soft: #ff6868;
  --auth-focus: #ff4545;
  --auth-link: #ff7373;
  --auth-link-hover: #ff9696;
  --auth-ok: #67d8a5;
  --auth-warning: #f3bf6b;
  min-height: 100dvh;
  color: var(--auth-text);
  background: var(--auth-canvas);
  isolation: isolate;
}

:root[data-tema="claro"] #raiz > :is(.auth-shell, .auth-centro) {
  --auth-canvas: #f7f7f8;
  --auth-plane: #ffffff;
  --auth-surface: #f0f1f3;
  --auth-raised: #e7e9ec;
  --auth-hover: #dfe2e6;
  --auth-rule: rgba(18, 21, 26, .11);
  --auth-rule-strong: rgba(18, 21, 26, .42);
  --auth-text: #111318;
  --auth-muted: #4f5660;
  --auth-dim: #606874;
  --auth-red: #d90000;
  --auth-red-dark: #b80000;
  --auth-red-soft: #b90000;
  --auth-focus: #d90000;
  --auth-link: #b40000;
  --auth-link-hover: #8f0000;
  --auth-ok: #16764e;
  --auth-warning: #8a5700;
}

#raiz > .auth-shell {
  --auth-form-max: 27rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(24rem, .8fr);
  overflow: clip;
}

/* ------------------------------------------------------------- identidade */

.auth-shell .vitrine {
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(2rem, 5vh, 4.5rem);
  overflow: hidden;
  border: 0;
  border-inline-end: 1px solid var(--auth-rule);
  background: var(--auth-plane);
}

.auth-shell .vitrine > * {
  position: relative;
  width: auto;
  max-width: none;
  margin: 0;
}

.auth-shell .auth-atmosfera {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.auth-shell .auth-d-gigante,
.auth-shell .auth-orbita { position: absolute; }

.auth-shell .vitrine-topo,
.auth-shell .vitrine-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.auth-shell .marca { gap: .75rem; }
.auth-shell .marca .selo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #ff3131, #d90000);
  box-shadow: inset 0 1px rgba(255, 255, 255, .25);
}
.auth-shell .marca .selo svg { width: 1.25rem; height: 1.25rem; }
.auth-shell .marca .nome { font-size: 1.2rem; font-weight: 650; }
.auth-shell .marca .nome span {
  margin-top: .28rem;
  color: var(--auth-dim);
  font-size: .68rem;
  letter-spacing: .26em;
}

.auth-shell .auth-sinal {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--auth-dim);
  font: 600 .67rem/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-shell .auth-sinal i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--auth-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-red) 10%, transparent);
}

.auth-shell .vitrine-corpo {
  width: min(100%, 45rem);
  align-self: center;
  display: grid;
  gap: clamp(1.4rem, 3vh, 2.2rem);
}

.auth-shell .auth-copia { display: grid; gap: .9rem; }
.auth-shell .frase {
  max-width: 13ch;
  color: var(--auth-text);
  font: 650 clamp(2.35rem, 4.6vw, 4.8rem)/.98 var(--display);
  letter-spacing: -.052em;
  text-wrap: balance;
}
.auth-shell .apoio {
  max-width: 48ch;
  color: var(--auth-muted);
  font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.6;
}

.auth-shell .vitrine-rodape {
  padding-top: 1rem;
  border-top: 1px solid var(--auth-rule);
  color: var(--auth-dim);
  font: 550 .68rem/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------- instrumento */

.auth-shell .auth-monitor {
  position: relative;
  width: min(100%, 34rem);
  padding: 1.1rem 1.25rem 1rem;
  display: grid;
  gap: .95rem;
  border: 1px solid var(--auth-rule-strong);
  border-radius: 6px;
  background: var(--auth-surface);
}

.auth-shell .auth-monitor-topo,
.auth-shell .auth-monitor-legenda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--auth-dim);
  font: 550 .64rem/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.auth-shell .auth-monitor-topo b {
  color: var(--auth-red-soft);
  font-weight: 650;
}

.auth-shell .auth-onda {
  height: 4.25rem;
  display: flex;
  align-items: center;
  gap: clamp(.28rem, .55vw, .5rem);
  overflow: hidden;
}

.auth-shell .auth-onda i {
  width: .28rem;
  height: var(--onda);
  min-height: .45rem;
  flex: 1;
  border-radius: 1px;
  background: color-mix(in srgb, var(--auth-muted) 28%, transparent);
}

.auth-shell .auth-onda i:nth-child(4n + 1),
.auth-shell .auth-onda i:nth-child(7n + 2) {
  background: color-mix(in srgb, var(--auth-red) 76%, var(--auth-surface));
}

.auth-shell .auth-linha-viva {
  position: relative;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-shell .auth-linha-viva::before {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--auth-rule-strong);
  content: "";
}

.auth-shell .auth-linha-viva i {
  position: relative;
  z-index: 1;
  width: .58rem;
  height: .58rem;
  border: 2px solid var(--auth-surface);
  border-radius: 50%;
  background: var(--auth-dim);
  box-shadow: 0 0 0 1px var(--auth-rule-strong);
}

.auth-shell .auth-linha-viva i.feito { background: var(--auth-red); }
.auth-shell .auth-playhead {
  position: absolute;
  z-index: 2;
  inset: .08rem auto auto 0;
  width: 2px;
  height: .95rem;
  background: var(--auth-red);
  box-shadow: 0 0 .75rem color-mix(in srgb, var(--auth-red) 52%, transparent);
}

.auth-shell .oquetem {
  margin: 0;
  display: grid;
  border: 0;
  border-top: 1px solid var(--auth-rule);
  list-style: none;
}

.auth-shell .oquetem li {
  min-height: 4.3rem;
  padding: .85rem 0;
  display: grid;
  grid-template-columns: 2.1rem 6.2rem minmax(0, 1fr);
  align-items: baseline;
  gap: .8rem;
  border-bottom: 1px solid var(--auth-rule);
}

.auth-shell .oquetem .n,
.auth-shell .oquetem .p {
  color: var(--auth-red-soft);
  font: 600 .67rem/1.35 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-shell .oquetem .p { padding: 0; color: var(--auth-text); }
.auth-shell .oquetem .d {
  color: var(--auth-muted);
  font-size: .82rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------- formulario */

.auth-shell > .formulario {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  padding-block: clamp(2.75rem, 8vh, 6rem);
  padding-inline: max(2.5rem, calc((100% - var(--auth-form-max)) / 2));
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  background: var(--auth-canvas);
}

.auth-shell .auth-form-cabecalho {
  margin-bottom: .5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.auth-shell .auth-form-cabecalho > div { display: grid; gap: .55rem; }
.auth-shell .auth-form-cabecalho h1 {
  color: var(--auth-text);
  font: 650 clamp(2rem, 3vw, 2.65rem)/1.06 var(--display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.auth-shell .auth-form-intro {
  max-width: 39ch;
  color: var(--auth-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.auth-shell .auth-seguro {
  flex: none;
  margin-top: .25rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--auth-dim);
  font: 600 .64rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-shell .auth-seguro i {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--auth-red);
}

.auth-shell .formulario > div:empty { display: none; }
.auth-shell .auth-campo { gap: .45rem; }
.auth-shell .auth-campo label {
  color: var(--auth-dim);
  font: 600 .7rem/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-shell .auth-campo > input,
.auth-shell .auth-campo-controle > input {
  width: 100%;
  height: 2.875rem;
  padding: 0 .9rem;
  border: 1px solid var(--auth-rule-strong);
  border-radius: 6px;
  outline: 0;
  color: var(--auth-text);
  background: var(--auth-plane);
  font-size: .92rem;
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.auth-shell .auth-campo > input::placeholder,
.auth-shell .auth-campo-controle > input::placeholder { color: var(--auth-dim); opacity: 1; }
.auth-shell .auth-campo > input:hover,
.auth-shell .auth-campo-controle > input:hover { border-color: var(--auth-rule-strong); background: var(--auth-surface); }
.auth-shell .auth-campo > input:focus,
.auth-shell .auth-campo-controle > input:focus {
  border-color: var(--auth-focus);
  background: var(--auth-plane);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-focus) 12%, transparent);
}

.auth-shell .auth-campo-controle { position: relative; }
.auth-shell .auth-campo-controle > input { padding-inline-end: 6.5rem; }
.auth-shell .auth-revelar {
  position: absolute;
  inset-block: 0;
  inset-inline-end: .35rem;
  min-width: 5.6rem;
  padding: 0 .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  border: 0;
  color: var(--auth-muted);
  background: transparent;
  cursor: pointer;
  font-size: .73rem;
}
.auth-shell .auth-revelar svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.auth-shell .auth-revelar:hover { color: var(--auth-text); }
.auth-shell .auth-campo .ajuda {
  color: var(--auth-dim);
  font-size: .73rem;
  line-height: 1.45;
}

.auth-shell .linha-form {
  min-height: 1.7rem;
  color: var(--auth-dim);
  font-size: .76rem;
}
.auth-shell .linha-form .dica { color: inherit; font-size: inherit; }
.auth-shell .link {
  min-height: 2.5rem;
  padding-inline: .2rem;
  display: inline-flex;
  align-items: center;
  color: var(--auth-link);
  font-size: .78rem;
  text-decoration-thickness: 1px;
  text-underline-offset: .22rem;
}
.auth-shell .link:hover,
.auth-shell .link:focus-visible { color: var(--auth-link-hover); }

.auth-shell .btn {
  position: relative;
  min-height: 2.875rem;
  padding: .7rem 1rem;
  border: 1px solid var(--auth-rule-strong);
  border-radius: 6px;
  color: var(--auth-text);
  background: var(--auth-raised);
  font-size: .86rem;
  font-weight: 680;
  box-shadow: inset 0 -2px var(--auth-red);
  transition: background-color .14s ease, border-color .14s ease, transform .14s ease;
}
.auth-shell .btn.pri { color: var(--auth-text); background: var(--auth-raised); border-color: var(--auth-rule-strong); }
.auth-shell .btn:hover:not(:disabled),
.auth-shell .btn.pri:hover:not(:disabled) { background: var(--auth-hover); border-color: color-mix(in srgb, var(--auth-red) 55%, var(--auth-rule-strong)); }
.auth-shell .btn:active:not(:disabled) { transform: translateY(1px); }
.auth-shell .btn:disabled { cursor: wait; opacity: .65; }
.auth-shell .btn.is-busy { padding-inline-end: 2.65rem; }
.auth-shell .btn.is-busy::after {
  position: absolute;
  inset-inline-end: 1rem;
  width: .85rem;
  height: .85rem;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  content: "";
  animation: auth-girar .72s linear infinite;
}

.auth-shell .auth-legais {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--texto2, #bac0c8);
}
.auth-shell .auth-legais span { flex-basis: 100%; text-align: center; }
.auth-shell .auth-legais a { color: inherit; text-underline-offset: 3px; }
.auth-shell .auth-legais a:focus-visible { outline: 2px solid #ff6868; outline-offset: 4px; }
.auth-shell .auth-social { display: grid; gap: .65rem; }
.auth-shell .btn.auth-google {
  width: 100%;
  min-height: 2.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: var(--auth-plane);
  box-shadow: none;
}
.auth-shell .btn.auth-google:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: var(--auth-muted);
}
.auth-shell .btn.auth-google[aria-busy="true"] { cursor: progress; }
.auth-google-icone { width: 1.15rem; height: 1.15rem; flex: none; }
.auth-google-icone svg { width: 100%; height: 100%; display: block; }
.auth-shell .auth-google-status {
  margin: 0;
  color: var(--auth-muted);
  font-size: .78rem;
  line-height: 1.5;
}
.auth-shell .auth-google-status[hidden] { display: none; }
.auth-shell .auth-separador {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .25rem;
  color: var(--auth-dim);
  font-size: .76rem;
}
.auth-shell .auth-separador::before,
.auth-shell .auth-separador::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--auth-rule);
}
.auth-centro .auth-google-retorno p { overflow-wrap: anywhere; }

.auth-shell .auth-form-rodape {
  margin-top: .35rem;
  color: var(--auth-dim);
  font-size: .79rem;
  text-align: center;
}

.auth-shell .aviso,
.auth-centro .aviso {
  padding: .8rem .9rem;
  border: 1px solid var(--auth-rule-strong);
  border-left-width: 1px;
  border-radius: 4px;
  color: var(--auth-muted);
  background: var(--auth-surface);
  font-size: .78rem;
  line-height: 1.5;
}
.auth-shell .aviso.erro,
.auth-centro .aviso.erro { border-color: color-mix(in srgb, var(--erro) 55%, var(--auth-rule)); }
.auth-shell .aviso.ok,
.auth-centro .aviso.ok { border-color: color-mix(in srgb, var(--auth-ok) 48%, var(--auth-rule)); }

.auth-shell :is(.btn, .link, .auth-revelar):focus-visible,
.auth-centro :is(.btn, .link):focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 3px;
}

.auth-shell input:-webkit-autofill,
.auth-shell input:-webkit-autofill:hover,
.auth-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-text);
  box-shadow: 0 0 0 1000px var(--auth-plane) inset,
              0 0 0 3px color-mix(in srgb, var(--auth-focus) 12%, transparent);
  caret-color: var(--auth-text);
}

/* ----------------------------------------------------- versao 1: Timeline */

.auth-timeline .auth-atmosfera::before {
  position: absolute;
  inset: 8% 9% 8% auto;
  width: 1px;
  background: var(--auth-rule);
  content: "";
}
.auth-timeline .auth-d-gigante,
.auth-timeline .auth-orbita { display: none; }
.auth-timeline .auth-monitor { border-inline-start-color: color-mix(in srgb, var(--auth-red) 62%, var(--auth-rule)); }
.auth-timeline .auth-playhead { animation: auth-varrer 4.8s cubic-bezier(.4, 0, .2, 1) infinite; }
.auth-timeline > .formulario::before {
  position: absolute;
  inset: 1.5rem 1.5rem auto;
  height: 1px;
  background: var(--auth-rule);
  content: "";
}

/* ------------------------------------------------------- versao 2: Portal */

#raiz > .auth-portal {
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  background: var(--auth-plane);
}
.auth-portal > .vitrine,
.auth-portal > .formulario { grid-area: 1 / 1; }
.auth-portal > .vitrine {
  padding-inline-end: min(42vw, 37rem);
  border: 0;
  background: var(--auth-plane);
}
.auth-portal .vitrine-corpo { width: min(100%, 46rem); align-self: flex-start; }
.auth-portal .frase { max-width: 10ch; font-size: clamp(3.2rem, 7vw, 7rem); }
.auth-portal .apoio { max-width: 42ch; }
.auth-portal .auth-atmosfera {
  background: radial-gradient(ellipse 48% 42% at 68% 10%, color-mix(in srgb, var(--auth-red) 8%, transparent), transparent 72%);
}
.auth-portal .auth-d-gigante {
  inset: 50% auto auto 42%;
  translate: -50% -50%;
  color: color-mix(in srgb, var(--auth-red) 7%, transparent);
  font: 780 min(72vw, 66rem)/.72 var(--display);
  letter-spacing: -.12em;
  user-select: none;
}
.auth-portal .auth-atmosfera::after {
  position: absolute;
  inset: -10% auto -10% 18%;
  width: 1px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--auth-red) 70%, transparent), transparent);
  content: "";
  opacity: .8;
  animation: auth-portal-feixe 5.6s ease-in-out infinite;
}
.auth-portal .auth-orbita {
  inset: 50% auto auto 42%;
  width: min(40vw, 34rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid var(--auth-rule);
  border-radius: 50%;
}
.auth-portal .auth-orbita-b { width: min(29vw, 25rem); border-color: color-mix(in srgb, var(--auth-red) 18%, var(--auth-rule)); }
.auth-portal .auth-monitor {
  width: clamp(13rem, 22vw, 19rem);
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  border-color: color-mix(in srgb, var(--auth-red) 28%, var(--auth-rule));
  background: color-mix(in srgb, var(--auth-surface) 88%, transparent);
}
.auth-portal .auth-monitor::before,
.auth-portal .auth-monitor::after {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--auth-rule);
  border-radius: 50%;
  content: "";
}
.auth-portal .auth-monitor::after { inset: 25%; border-color: color-mix(in srgb, var(--auth-red) 28%, var(--auth-rule)); }
.auth-portal .auth-monitor-topo,
.auth-portal .auth-linha-viva,
.auth-portal .auth-monitor-legenda { display: none; }
.auth-portal .auth-onda { position: relative; z-index: 1; width: 62%; justify-self: center; }
.auth-portal .oquetem { display: none; }
.auth-portal > .formulario {
  align-self: center;
  justify-self: end;
  width: min(28rem, calc(100% - 4rem));
  min-height: auto;
  max-height: calc(100dvh - 4rem);
  margin: 2rem clamp(2rem, 4vw, 4.5rem) 2rem auto;
  padding: clamp(2rem, 4vw, 3rem);
  overflow-y: auto;
  justify-content: flex-start;
  border: 1px solid var(--auth-rule-strong);
  border-radius: 8px;
  background: var(--auth-canvas);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .34);
}
.auth-portal > .formulario::before {
  position: absolute;
  inset: 0 1.5rem auto;
  height: 1px;
  background: var(--auth-red);
  content: "";
}
.auth-portal .auth-seguro { display: none; }

/* -------------------------------------------------- versao 3: Controle */

#raiz > .auth-controle {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 6.75rem 1.5rem 3rem;
  background: var(--auth-canvas);
}
.auth-controle::before,
.auth-controle::after {
  position: absolute;
  z-index: 0;
  background: var(--auth-rule);
  content: "";
  pointer-events: none;
}
.auth-controle::before { inset: 5.5rem 5vw auto; height: 1px; }
.auth-controle::after { inset: 5.5rem auto 4rem 12vw; width: 1px; }
.auth-controle > .vitrine {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  width: 100%;
  min-height: 4rem;
  height: 4rem;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  justify-content: center;
  border: 0;
  border-bottom: 1px solid var(--auth-rule);
  background: var(--auth-plane);
}
.auth-controle .vitrine-topo { width: 100%; }
.auth-controle .vitrine-corpo,
.auth-controle .vitrine-rodape,
.auth-controle .auth-atmosfera { display: none; }
.auth-controle > .formulario {
  width: min(53.75rem, calc(100vw - 3rem));
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  align-self: center;
  justify-self: center;
  justify-content: flex-start;
  gap: 0;
  border: 1px solid var(--auth-rule-strong);
  border-radius: 6px;
  background: var(--auth-plane);
  overflow: hidden;
}
.auth-controle .auth-form-cabecalho {
  position: relative;
  min-height: 6.25rem;
  margin: 0;
  padding: 1.35rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--auth-rule);
}
.auth-controle .auth-form-cabecalho::after {
  position: absolute;
  inset: auto auto -1px 1.5rem;
  width: 3.5rem;
  height: 1px;
  background: var(--auth-red);
  content: "";
  transform-origin: left;
  animation: auth-assinatura .65s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-controle .auth-form-cabecalho h1 { font-size: clamp(1.85rem, 3vw, 2.25rem); }
.auth-controle .auth-social { padding: 1rem 1.5rem .5rem; }
.auth-controle .formulario > .auth-campo {
  position: relative;
  min-height: 4.75rem;
  padding: .85rem 1.5rem;
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  border-bottom: 1px solid var(--auth-rule);
}
.auth-controle .formulario > .auth-campo::before {
  position: absolute;
  inset: .75rem auto .75rem 0;
  width: 1px;
  background: transparent;
  content: "";
  transition: background-color .12s ease, box-shadow .12s ease;
}
.auth-controle .formulario > .auth-campo:focus-within::before {
  background: var(--auth-red);
  box-shadow: 0 0 .75rem color-mix(in srgb, var(--auth-red) 34%, transparent);
}
.auth-controle .auth-campo .ajuda { grid-column: 2; }
.auth-controle .linha-form {
  min-height: 3.5rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--auth-rule);
}
.auth-controle .formulario > .aviso,
.auth-controle .formulario > div > .aviso { margin: 1rem 1.5rem 0; }
.auth-controle .formulario > .btn {
  width: 12rem;
  margin: 1rem 1.5rem;
  align-self: flex-end;
}
.auth-controle .auth-form-rodape {
  min-height: 3.4rem;
  margin: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--auth-rule);
  text-align: start;
}

/* ------------------------------------------------------- estados centrais */

#raiz > .auth-centro {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}
.auth-centro::before,
.auth-centro::after {
  position: absolute;
  z-index: -1;
  content: "";
}
.auth-centro::before {
  inset: 2.5rem;
  border: 1px solid var(--auth-rule);
}
.auth-centro::after {
  inset: 2.5rem auto auto 2.5rem;
  width: 4rem;
  height: 1px;
  background: var(--auth-red);
}
.auth-centro > .cartao {
  position: relative;
  width: min(100%, 34rem);
  max-width: none;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  gap: 1.15rem;
  border: 1px solid var(--auth-rule-strong);
  border-radius: 6px;
  color: var(--auth-text);
  background: var(--auth-plane);
}
.auth-centro .cartao h1 {
  color: var(--auth-text);
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.auth-centro .cartao p { color: var(--auth-muted); font-size: .9rem; line-height: 1.58; }
.auth-centro .btn {
  min-height: 2.875rem;
  border-radius: 6px;
  border-color: var(--auth-rule-strong);
  color: var(--auth-text);
  background: var(--auth-raised);
  box-shadow: inset 0 -2px var(--auth-red);
}
.auth-centro .campo label { color: var(--auth-dim); }
.auth-centro .campo input {
  min-height: 2.875rem;
  border-color: var(--auth-rule-strong);
  border-radius: 6px;
  color: var(--auth-text);
  background: var(--auth-canvas);
}
.auth-centro .passos { border-color: var(--auth-rule); }
.auth-centro.auth-portal > .cartao {
  border: 0;
  border-inline-start: 1px solid var(--auth-red);
  border-radius: 0;
  background: transparent;
}
.auth-centro.auth-controle > .cartao { width: min(100%, 46rem); }

/* ------------------------------------------------------------- movimento */

@keyframes auth-varrer {
  0%, 12% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  72% { left: calc(100% - 2px); opacity: 1; }
  82%, 100% { left: calc(100% - 2px); opacity: 0; }
}
@keyframes auth-portal-feixe {
  0%, 18% { transform: translateX(-5vw); opacity: 0; }
  28% { opacity: .8; }
  72% { opacity: .8; }
  82%, 100% { transform: translateX(45vw); opacity: 0; }
}
@keyframes auth-assinatura { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes auth-girar { to { transform: rotate(1turn); } }

/* ------------------------------------------------------------ responsivo */

@media (max-width: 1100px) and (min-width: 901px) {
  #raiz > .auth-timeline { grid-template-columns: minmax(0, 1fr) minmax(23rem, .9fr); }
  .auth-timeline .vitrine { padding: 2.5rem; }
  .auth-timeline .frase { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
  .auth-timeline .oquetem li { grid-template-columns: 2rem 5.6rem minmax(0, 1fr); }
  .auth-portal > .vitrine { padding-inline-end: min(46vw, 31rem); }
  .auth-portal .frase { font-size: clamp(3rem, 6vw, 5.4rem); }
}

@media (max-width: 900px) {
  #raiz > .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  .auth-shell > .vitrine {
    display: flex;
    min-height: 0;
    height: 10.5rem;
    padding: 1.15rem 1.25rem;
    gap: .9rem;
    border: 0;
    border-bottom: 1px solid var(--auth-rule);
  }
  .auth-shell .vitrine-topo { order: 1; }
  .auth-shell .vitrine-corpo { order: 2; width: 100%; align-self: stretch; gap: 0; }
  .auth-shell .auth-copia { gap: .3rem; }
  .auth-shell .frase { max-width: none; font-size: clamp(1.35rem, 7vw, 1.8rem); line-height: 1.04; }
  .auth-shell .apoio {
    display: -webkit-box;
    overflow: hidden;
    font-size: .76rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .auth-shell .auth-monitor,
  .auth-shell .oquetem,
  .auth-shell .vitrine-rodape { display: none; }
  .auth-timeline .auth-monitor {
    position: absolute;
    inset: auto 1.25rem .55rem;
    width: auto;
    height: 1.1rem;
    padding: 0;
    display: block;
    border: 0;
    background: transparent;
  }
  .auth-timeline .auth-monitor-topo,
  .auth-timeline .auth-onda,
  .auth-timeline .auth-monitor-legenda { display: none; }
  .auth-timeline .auth-linha-viva { display: flex; }
  .auth-shell > .formulario {
    min-height: calc(100dvh - 10.5rem);
    padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    justify-content: flex-start;
  }
  .auth-shell .auth-form-cabecalho { margin-bottom: .35rem; }
  .auth-shell .auth-form-cabecalho h1 { font-size: clamp(1.9rem, 9vw, 2.3rem); }
  .auth-shell .auth-seguro { display: none; }
  .auth-shell .auth-campo > input,
  .auth-shell .auth-campo-controle > input,
  .auth-shell .btn { min-height: 2.75rem; height: auto; }
  .auth-shell .auth-revelar { min-height: 2.75rem; }

  #raiz > .auth-portal { display: grid; padding: 0; }
  .auth-portal > .vitrine,
  .auth-portal > .formulario { grid-area: auto; }
  .auth-portal > .vitrine { height: 11.5rem; padding: 1.15rem 1.25rem; }
  .auth-portal .auth-d-gigante { inset-inline-start: 74%; font-size: 15rem; }
  .auth-portal .auth-orbita { inset-inline-start: 74%; width: 12rem; }
  .auth-portal .auth-orbita-b { width: 8rem; }
  .auth-portal .auth-atmosfera::after { inset-inline-start: 35%; }
  .auth-portal > .formulario {
    width: 100%;
    min-height: calc(100dvh - 11.5rem);
    max-height: none;
    margin: 0;
    padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #raiz > .auth-controle {
    min-height: 100dvh;
    padding: 4rem 0 0;
    place-items: start stretch;
  }
  .auth-controle::before,
  .auth-controle::after { display: none; }
  .auth-controle > .vitrine {
    height: 4rem;
    padding: 0 1.25rem;
    display: flex;
  }
  .auth-controle > .formulario {
    width: 100%;
    min-height: calc(100dvh - 4rem);
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
  }
  .auth-controle .auth-form-cabecalho { min-height: 6rem; padding: 1.25rem; }
  .auth-controle .auth-social { padding: 1rem 1.25rem .5rem; }
  .auth-controle .formulario > .auth-campo {
    min-height: 0;
    padding: .9rem 1.25rem;
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
  }
  .auth-controle .auth-campo .ajuda { grid-column: auto; }
  .auth-controle .linha-form { padding: .9rem 1.25rem; }
  .auth-controle .formulario > .aviso,
  .auth-controle .formulario > div > .aviso { margin-inline: 1.25rem; }
  .auth-controle .formulario > .btn { width: calc(100% - 2.5rem); margin-inline: 1.25rem; }
  .auth-controle .auth-form-rodape { padding-inline: 1.25rem; text-align: center; }

  #raiz > .auth-centro { padding: 1rem; align-items: start; }
  .auth-centro::before { inset: 1rem; }
  .auth-centro::after { inset: 1rem auto auto 1rem; }
  .auth-centro > .cartao { margin-top: clamp(1.5rem, 8vh, 4rem); padding: 1.35rem; }
}

@media (max-width: 480px) {
  .auth-shell .auth-sinal { display: none; }
}

@media (max-width: 430px) {
  .auth-shell > .vitrine { height: 9.5rem; }
  .auth-shell > .formulario { min-height: calc(100dvh - 9.5rem); }
  .auth-shell .marca .selo { width: 2.25rem; height: 2.25rem; }
  .auth-shell .linha-form { align-items: flex-start; flex-direction: column; }
  .auth-portal > .vitrine { height: 10rem; }
  .auth-portal > .formulario { min-height: calc(100dvh - 10rem); }
}

/* Em celulares muito baixos, a identidade vira uma assinatura compacta e o
   login cabe inteiro na primeira vista. As três direções continuam distintas
   pela composição do próprio formulário, sem sacrificar o CTA. */
@media (max-width: 900px) and (max-height: 650px) {
  .auth-shell > .vitrine { display: none; }
  .auth-shell > .formulario,
  .auth-portal > .formulario,
  .auth-controle > .formulario {
    min-height: 100dvh;
    padding: .55rem 1rem max(.55rem, env(safe-area-inset-bottom));
    gap: .3rem;
    overflow-y: auto;
  }
  .auth-shell .auth-form-cabecalho { min-height: 0; margin: 0; padding: 0; }
  .auth-controle .auth-social { padding: .35rem 0; }
  .auth-shell .auth-form-cabecalho h1 { font-size: 1.45rem; }
  .auth-shell .auth-form-intro,
  .auth-shell .linha-form > .dica { display: none; }
  .auth-shell .auth-campo { gap: .2rem; }
  .auth-shell .auth-campo > input,
  .auth-shell .auth-campo-controle > input,
  .auth-shell .btn { min-height: 2.4rem; height: 2.4rem; }
  .auth-shell .auth-revelar,
  .auth-shell .link { min-height: 2.35rem; }
  .auth-shell .linha-form {
    min-height: 2.35rem;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    border: 0;
  }
  .auth-shell .auth-form-rodape { min-height: 2.35rem; margin: 0; padding: 0; }
  .auth-controle .formulario > .auth-campo {
    min-height: 0;
    padding: .3rem 0;
    border-bottom: 0;
  }
  .auth-controle .formulario > .btn {
    width: 100%;
    margin: 0;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .auth-shell > .formulario { padding-block: 2rem; justify-content: flex-start; overflow-y: auto; }
  .auth-shell .vitrine { padding-block: 2rem; gap: 1.25rem; }
  .auth-shell .auth-monitor { padding-block: .8rem; gap: .65rem; }
  .auth-shell .auth-onda { height: 3rem; }
  .auth-portal > .formulario { align-self: start; }
}

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

@media (forced-colors: active) {
  .auth-shell .auth-campo > input,
  .auth-shell .auth-campo-controle > input,
  .auth-shell .btn,
  .auth-centro .btn { forced-color-adjust: auto; }
  .auth-shell .auth-sinal i,
  .auth-shell .auth-seguro i,
  .auth-shell .auth-playhead { background: Highlight; }
}
