/* Painel online: só as telas de entrada e o topo com quem entrou. O resto é o painel.css (cópia do painel local). */

/* Fora do painel, só a entrada aparece; no painel, a entrada some (os dados nunca aparecem antes do login). */
body:not([data-estado="painel"]) > .topo,
body:not([data-estado="painel"]) > .abas,
body:not([data-estado="painel"]) > main { display: none; }
body[data-estado="painel"] > .entrada { display: none; }
body[data-estado="carregando"] .entrada__cartao > form,
body[data-estado="carregando"] .entrada__rodape { visibility: hidden; }

.entrada {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 32px 16px;
}
.entrada__cartao {
  position: relative; width: min(440px, 100%); padding: 30px 30px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--borda); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
}
.entrada__cartao::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(125, 249, 255, 0.45), transparent 35%, transparent 65%, rgba(182, 156, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.entrada__marca { margin-bottom: 26px; }
.etapa h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -0.2px; }
.etapa__texto { margin: 0 0 22px; color: var(--texto-2); }
.etapa__texto strong { color: var(--texto); font-weight: 600; overflow-wrap: anywhere; }

.campo { display: grid; gap: 8px; margin-bottom: 18px; color: var(--texto-2); font-size: 13px; font-weight: 600; }
.campo input {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 400;
  color: var(--texto); background: rgba(6, 6, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.campo input:focus { outline: none; border-color: var(--ciano); box-shadow: 0 0 0 4px rgba(125, 249, 255, 0.14); }
.campo input.codigo {
  font-family: Consolas, ui-monospace, monospace; font-size: 28px; letter-spacing: 10px; text-align: center; padding-left: 24px;
}
.campo input.codigo::placeholder { color: rgba(255, 255, 255, 0.16); }

.botao--largo { width: 100%; min-height: 50px; font-size: 15px; border-radius: 12px; }
.botao--principal { box-shadow: 0 10px 30px rgba(125, 249, 255, 0.18); }
.botao:disabled { opacity: 0.6; cursor: progress; }
.etapa__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.etapa__links .link-pequeno { font-size: 13px; min-height: 32px; }

.passo { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--texto-3); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.passo__ponto { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.passo__ponto:nth-of-type(2) { margin-right: 6px; }
.passo__ponto--ativo { width: 22px; background: var(--ciano); }
.passo__ponto--feito { background: var(--lavanda); }

.instrucoes { margin: 0 0 18px; padding-left: 20px; color: var(--texto-2); display: grid; gap: 4px; }
.instrucoes li::marker { color: var(--ciano); font-weight: 700; }
.qr {
  width: 208px; height: 208px; margin: 0 auto 14px; padding: 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(125, 249, 255, 0.08);
}
.qr img { display: block; width: 176px; height: 176px; }
.segredo { margin: 0 0 12px; text-align: center; }
.segredo summary { cursor: pointer; color: var(--lavanda); font-size: 13px; font-weight: 600; list-style: none; min-height: 32px; display: inline-flex; align-items: center; }
.segredo summary::-webkit-details-marker { display: none; }
.segredo code {
  display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--vidro-8); border: 1px dashed rgba(125, 249, 255, 0.35);
  color: var(--ciano); font-size: 14px; letter-spacing: 1px; overflow-wrap: anywhere; user-select: all;
}
.dica {
  margin: 0 0 18px; padding: 10px 12px 10px 38px; border-radius: 10px; position: relative; font-size: 13px; color: var(--texto-2);
  background: rgba(255, 209, 102, 0.07); border: 1px solid rgba(255, 209, 102, 0.22);
}
.dica::before {
  content: "!"; position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #1b1405; background: var(--atencao);
}

.entrada__aviso { margin: 18px 0 0; font-size: 14px; }
.entrada__rodape { margin: 0; max-width: 460px; color: var(--texto-3); font-size: 12px; line-height: 1.5; text-align: center; }
.cadeado { display: inline-block; position: relative; width: 10px; height: 8px; margin: 0 7px 0 0; border-radius: 2px; background: var(--texto-3); vertical-align: -1px; }
.cadeado::before {
  content: ""; position: absolute; left: 1.5px; top: -5px; width: 7px; height: 6px; border: 1.5px solid var(--texto-3); border-bottom: 0;
  border-radius: 5px 5px 0 0; box-sizing: border-box;
}

/* Topo do painel online: quem entrou e Sair */
#quem { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }
#sair { min-height: 36px; }

@media (max-width: 640px) {
  .entrada { justify-content: flex-start; padding-top: 28px; }
  .entrada__cartao { padding: 24px 20px 22px; border-radius: 20px; }
  .entrada__marca { margin-bottom: 22px; }
  .etapa h1 { font-size: 23px; }
  .topo { gap: 10px; }
  .topo__info { gap: 8px; }
}
