/* Tela de login do Lumen: linguagem do site da Inmetrics (preto, caixa alta condensada, rosa #FE015E, botões em pílula)
   com a arte do AIOM (rede de partículas rosa e ciano). Sempre escura, como a marca. Animações somem com reduced-motion. */

:root {
  --rosa: #FE015E;
  --rosa-btn: #E6004F;
  --ciano: #00FFE5;
  --ciano-2: #19D3E6;
  --preto: #000;
  --petroleo: #001E2E;
  --tx: #F0F0F0;
  --mu: #A9B4BC;
  --linha: rgba(255, 255, 255, .1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--preto); color: var(--tx);
  font: 17px/1.55 "Anek Latin", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 4px; border-radius: 99px; }
.mu { color: var(--mu); }

/* ---------- Fundo ---------- */
.fundo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#rede { position: absolute; inset: 0; width: 100%; height: 100%; }
.brilho { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.brilho-rosa { width: 46vmax; height: 46vmax; left: -14vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(254, 1, 94, .55), transparent 65%); animation: flutuar-a 18s ease-in-out infinite alternate; }
.brilho-ciano { width: 40vmax; height: 40vmax; right: -12vmax; top: -16vmax; background: radial-gradient(circle, rgba(0, 255, 229, .28), transparent 65%); animation: flutuar-b 22s ease-in-out infinite alternate; }
.grade {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--linha) 1px, transparent 1px), linear-gradient(90deg, var(--linha) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .25;
  mask-image: radial-gradient(ellipse at 60% 45%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 0%, transparent 70%);
}
@keyframes flutuar-a { to { transform: translate(8vmax, -6vmax) scale(1.12); } }
@keyframes flutuar-b { to { transform: translate(-6vmax, 7vmax) scale(1.08); } }

/* ---------- Topo ---------- */
.topo {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(16px, 5vw, 64px);
}
.marca { display: inline-flex; align-items: center; gap: 12px; }
.marca-svg { height: 40px; width: auto; overflow: visible; }
.m-branco, .m-rosa { stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; fill-opacity: 0; }
.m-branco { stroke: #F4F4F4; fill: #F4F4F4; animation: desenhar 1.4s .1s cubic-bezier(.65, 0, .35, 1) forwards, preencher .5s 1.1s forwards; }
.m-rosa { stroke: var(--rosa); fill: var(--rosa); animation: desenhar 1.4s .35s cubic-bezier(.65, 0, .35, 1) forwards, preencher .5s 1.35s forwards; }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes preencher { to { fill-opacity: 1; stroke-width: 0; } }
.marca-txt { font-size: 26px; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; opacity: 0; animation: subir .7s 1s ease-out forwards; }
.selo-aiom {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(14, 18, 22, .7);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mu);
  opacity: 0; animation: subir .7s 1.2s ease-out forwards;
}
.selo-aiom i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--rosa), var(--ciano)); }

/* ---------- Palco ---------- */
.palco {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(16px, 4vh, 48px) clamp(16px, 5vw, 64px) 40px;
}

/* entrada escalonada */
.e1, .e2, .e3, .e4, .e5, .e6 { opacity: 0; animation: subir .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.e1 { animation-delay: .5s; } .e2 { animation-delay: .65s; } .e3 { animation-delay: .8s; }
.e4 { animation-delay: .95s; } .e5 { animation-delay: 1.1s; } .e6 { animation-delay: .7s; animation-duration: 1.1s; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sobre {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--ciano-2);
}
.sobre::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--rosa), var(--ciano)); }
h1 {
  margin: 0 0 22px; font-size: clamp(46px, 7.2vw, 96px); line-height: .92; font-weight: 700; font-stretch: 75%;
  letter-spacing: -.005em; text-transform: uppercase;
}
.rosa {
  color: var(--rosa);
  background: linear-gradient(90deg, var(--rosa) 0%, #FF4D8D 40%, var(--rosa) 60%, var(--rosa) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: brilhar 5s 2s ease-in-out infinite;
}
@keyframes brilhar { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
.traco { color: var(--rosa); display: inline-block; animation: piscar 1.1s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.lead { max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); color: #D3DAE0; margin-bottom: 32px; }

/* cartão de entrada (vidro) */
.cartao-entrar {
  max-width: 470px; padding: 22px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(22, 26, 32, .86), rgba(10, 12, 16, .8));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.erro {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 15px;
  color: #FFD3E2; background: rgba(254, 1, 94, .14); border: 1px solid rgba(254, 1, 94, .45);
}
.btn-ms {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 26px;
  border-radius: 99px; background: var(--rosa-btn); color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(254, 1, 94, .35), 0 0 0 0 rgba(254, 1, 94, .5);
  transition: transform .2s ease, box-shadow .25s ease, background .2s;
}
.btn-ms::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: reflexo 4.5s 2.4s ease-in-out infinite;
}
.btn-ms:hover { background: #F5005A; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(254, 1, 94, .5); }
.btn-ms:hover::before { animation-duration: 1.2s; }
@keyframes reflexo { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.btn-ms:active { transform: translateY(0); }
.ms { width: 22px; height: 22px; flex: none; padding: 2px; background: #fff; border-radius: 4px; }
.seta { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn-ms:hover .seta { transform: translateX(4px); }
.nota { margin-top: 12px; text-align: center; font-size: 14px; color: var(--mu); }

.recursos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.recursos li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 14px; color: #D3DAE0;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
}
.recursos svg { width: 17px; height: 17px; fill: none; stroke: var(--ciano-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Vitrine do instrutor ---------- */
.vitrine { position: relative; justify-self: center; width: min(100%, 420px); }
.moldura {
  position: relative; padding: 2px; border-radius: 30px; isolation: isolate; overflow: hidden; will-change: transform;
  animation: boiar 7s ease-in-out infinite;
}
/* borda em degradê girando (rosa → ciano) */
.moldura::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(var(--rosa), transparent 30%, var(--ciano) 50%, transparent 70%, var(--rosa));
  animation: girar 6s linear infinite; will-change: transform;
}
.vitrine::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50px; pointer-events: none;
  background: radial-gradient(circle at 30% 80%, rgba(254, 1, 94, .35), transparent 60%), radial-gradient(circle at 80% 15%, rgba(0, 255, 229, .22), transparent 55%);
  filter: blur(30px);
}
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes boiar { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }

.cartao-avatar {
  position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 602 / 674;
  background: #08080a; /* as fotos já trazem o fundo AIOM; o palco 3D tem o dele */
}
.av {
  /* as miniaturas trazem uma moldura no alto (~7%): sobem para fora do cartão */
  position: absolute; left: 0; right: 0; bottom: 0; top: -8%; width: 100%; height: 108%; object-fit: cover; object-position: center bottom;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease-out;
}
.av.ativo { opacity: 1; transform: scale(1); }
/* Vídeos da vitrine (cada instrutor com o seu gesto, já com o fundo AIOM): duas camadas que se dissolvem uma na outra */
.palco3d { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.palco3d video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; will-change: opacity; }
.palco3d video.ativo { opacity: 1; }
.em-3d .palco3d { opacity: 1; }
.em-3d .av { opacity: 0; transition: opacity .5s ease; }
/* linha de leitura que atravessa o cartão */
.varredura {
  position: absolute; left: 0; right: 0; height: 30%; top: 0; transform: translateY(-100%); will-change: transform;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 229, .1) 70%, rgba(0, 255, 229, .45) 100%);
  mix-blend-mode: screen; animation: varrer 5.5s 1.8s ease-in-out infinite;
}
@keyframes varrer { 0% { transform: translateY(-100%); } 45%, 100% { transform: translateY(370%); } }

.etiqueta {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; font-size: 15px;
  background: rgba(0, 8, 14, .78); border: 1px solid rgba(255, 255, 255, .14);
}
.ao-vivo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--rosa); color: #fff; }
.ao-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: piscar 1.4s ease-in-out infinite; }
.quem { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #D3DAE0; }
.quem b { color: #fff; }
#nome-instrutor, #papel-instrutor { display: inline-block; transition: opacity .35s, transform .35s; }
.trocando #nome-instrutor, .trocando #papel-instrutor { opacity: 0; transform: translateY(6px); }
.onda { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.onda i { width: 3px; height: 100%; border-radius: 3px; background: linear-gradient(var(--ciano), var(--rosa)); transform-origin: center; animation: falar 1s ease-in-out infinite; }
.onda i:nth-child(2) { animation-delay: -.2s; } .onda i:nth-child(3) { animation-delay: -.45s; }
.onda i:nth-child(4) { animation-delay: -.7s; } .onda i:nth-child(5) { animation-delay: -.3s; }
@keyframes falar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* balões flutuando ao redor do cartão */
.balao {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 16px; font-size: 15px; white-space: nowrap;
  background: rgba(10, 16, 22, .9); border: 1px solid rgba(255, 255, 255, .14); color: #E8EEF2;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  opacity: 0;
}
.b2 { bottom: 24%; right: -14%; border-top-left-radius: 4px; animation: aparecer .7s 2.6s forwards, boiar 8s 3.3s ease-in-out infinite reverse; }
.b2 b { color: var(--ciano); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }

/* ---------- Rodapé ---------- */
.rodape {
  position: relative; z-index: 1; padding: 18px clamp(16px, 5vw, 64px) 24px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: #77838C; text-align: center;
}
.rodape .mu { color: #59656E; }

/* ---------- Dois caminhos e troca de senha (docs/adr/0013) ---------- */
body[data-tela="login"] #tela-senha, body[data-tela="senha"] #tela-login { display: none; }
.caminho-tit { margin: 0 0 10px; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ciano-2); }
.cliente { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cliente summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; margin: 0; }
.cliente summary::-webkit-details-marker { display: none; }
.cliente summary::after { content: "+"; font-size: 20px; color: var(--mu); }
.cliente[open] summary::after { content: "−"; }
.cliente[open] summary { margin-bottom: 6px; }
.cliente .nota { text-align: left; margin-top: 8px; }
.form-local { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.form-local label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #D3DAE0; }
.form-local input {
  font: inherit; color: var(--tx); background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 10px 14px; min-height: 46px;
}
.form-local input:focus-visible { outline: 2px solid var(--ciano); outline-offset: 2px; border-radius: 12px; }
.erro-campo { min-height: 1em; font-size: 14px; color: #FFD3E2; }
.erro-campo:empty { display: none; }
.btn-local {
  min-height: 50px; padding: 12px 22px; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 600;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); transition: background .2s, border-color .2s;
}
.btn-local:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-local:disabled { opacity: .6; cursor: wait; }
#tela-senha .nota a { color: var(--mu); }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .b2 { right: -4%; }
}
@media (max-width: 900px) {
  .palco { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .vitrine { order: -1; width: min(100%, 300px); }
  .balao { display: none; }
  .cartao-entrar { max-width: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .selo-aiom { display: none; }
  .vitrine { width: min(78%, 260px); }
  .etiqueta { font-size: 13px; gap: 8px; padding: 10px; }
  .rodape .mu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .e1, .e2, .e3, .e4, .e5, .e6, .marca-txt, .selo-aiom, .balao { opacity: 1; }
  .m-branco, .m-rosa { stroke-dashoffset: 0; fill-opacity: 1; stroke-width: 0; }
  .rosa { -webkit-text-fill-color: var(--rosa); background: none; }
}
