/* Telas de entrada (gestão e portal do professor).
   Duas colunas: painel de marca na cor principal da rede, com o vídeo ao fundo,
   e o painel de acesso claro com logo, campos arredondados e botão primário.
   Cor e fonte vêm de /cor-principal.css e /static/css/padrao.css (carregar antes). */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--fonte); color: var(--tinta); background: var(--papel) !important; }

.entrada { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

/* ---------- Painel de marca (esquerda) ---------- */
.vitrine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 48px 56px 40px;
  background: linear-gradient(150deg, var(--cor) 0%, color-mix(in srgb, var(--cor) 55%, black) 100%);
  color: #fff;
}
.vitrine-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; opacity: .22; mix-blend-mode: luminosity;
}
/* Textura: círculos claros e suaves sobre a cor da rede */
.vitrine-corpo, .vitrine-rodape { position: relative; }
.vitrine-sombra { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .35); }
.vitrine::before, .vitrine::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 62%);
}
.vitrine::before { inset: -30% -30% auto auto; width: 780px; height: 780px; }
.vitrine::after { inset: auto auto -22% -18%; width: 520px; height: 520px; opacity: .8; }

.vitrine-corpo { margin: auto 0; padding: 32px 0; }
.vitrine-selo {
  display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.vitrine-titulo { margin: 0; color: #fff !important; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; max-width: 16ch; }
.vitrine-sub { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .85) !important; max-width: 46ch; }

.vitrine-lista { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.vitrine-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  animation: sobe .55s cubic-bezier(.22, 1, .36, 1) backwards;
}
.vitrine-item:nth-child(2) { animation-delay: .06s; }
.vitrine-item:nth-child(3) { animation-delay: .14s; }
.vitrine-item .ti { font-size: 22px; opacity: .9; }
.vitrine-item strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.vitrine-item span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
@keyframes sobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vitrine-rodape {
  margin-top: auto; padding-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12.5px; color: rgba(255, 255, 255, .8);
}
.vitrine-rodape img { width: 130px; height: auto; opacity: .85; }

/* ---------- Cartões ilustrativos ----------
   Conteúdo fixo e fictício (página pública): só nomes de turma, nunca de pessoa. */
.vitrine { --demo-cor: color-mix(in srgb, var(--cor) 35%, white); --demo-ambar: #ffc95c; --demo-verde: #6ee7a8; }
.demo { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.demo-rotulo { margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.demo-card {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
  animation: sobe .55s cubic-bezier(.22, 1, .36, 1) backwards;
}
.demo-card:nth-of-type(2) { animation-delay: .12s; }
.demo-card:nth-of-type(3) { animation-delay: .24s; }
.demo-barra { width: 6px; height: 40px; border-radius: 999px; flex-shrink: 0; background: var(--demo-cor); box-shadow: 0 0 12px var(--demo-cor); }
.demo-barra.ambar { background: var(--demo-ambar); box-shadow: 0 0 12px var(--demo-ambar); }
.demo-barra.verde { background: var(--demo-verde); box-shadow: 0 0 12px var(--demo-verde); }
.demo-info { flex: 1; min-width: 0; }
.demo-titulo { font-size: 14px; font-weight: 700; color: #fff; }
.demo-desc { font-size: 12.5px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tempo { flex-shrink: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); }
.demo-pulso { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--demo-verde); animation: pulso 1.7s ease-in-out infinite; }
@keyframes pulso {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--demo-verde); }
  50% { opacity: .75; box-shadow: 0 0 0 6px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-card, .vitrine-item { animation: none; }
  .demo-pulso { animation: none; }
}

/* ---------- Painel de acesso (direita) ---------- */
.acesso { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--papel); }
.acesso-caixa { width: 100%; max-width: 430px; }

.acesso-logo { display: block; max-width: 330px; max-height: 120px; width: auto; height: auto; margin-bottom: 30px; }
.acesso-logo-vazia { margin-bottom: 24px; padding: 14px; border: 1px dashed var(--linha); border-radius: 10px; font-size: 13px; color: var(--tinta-3); }
.acesso-titulo { margin: 0; color: var(--tinta) !important; font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.acesso-sub { margin: 7px 0 0; color: var(--tinta-2); font-size: 14.5px; }

.campo-flutuante { position: relative; margin-top: 18px; }
.campo-flutuante input {
  width: 100%; height: 54px; padding: 20px 14px 6px; font-size: 15px; color: var(--tinta);
  border: 1.5px solid var(--linha); border-radius: 10px; background: var(--papel);
  transition: border-color .15s, box-shadow .15s;
}
.campo-flutuante input:focus { outline: none; border-color: var(--cor); box-shadow: 0 0 0 3px var(--cor-suave); }
.campo-flutuante label {
  position: absolute; left: 15px; top: 17px; font-size: 15px; color: var(--tinta-3);
  pointer-events: none; transition: all .14s ease-out;
}
.campo-flutuante input:focus + label,
.campo-flutuante input:not(:placeholder-shown) + label,
.campo-flutuante input:-webkit-autofill + label { top: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--cor-texto); }
.campo-flutuante.com-olho input { padding-right: 52px; }

.ver-senha {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px;
  border: none; border-radius: 8px; background: transparent; color: var(--tinta-3); cursor: pointer; line-height: 0;
}
.ver-senha:hover { background: var(--papel-2); color: var(--tinta); }
.ver-senha:focus-visible { outline: 2px solid var(--cor); }

.acesso-opcoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--tinta-2); }
.acesso-opcoes label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.acesso-opcoes input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cor); }
.acesso-opcoes a { color: var(--cor-texto); font-weight: 600; text-decoration: none; }
.acesso-opcoes a:hover { text-decoration: underline; }

.btn-entrar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; margin-top: 22px; border: none; border-radius: 10px;
  background: var(--btn-primario, var(--cor)); color: var(--btn-primario-texto, var(--papel));
  font-family: var(--fonte); font-size: 15.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .08s;
}
.btn-entrar:hover:not(:disabled) { background: var(--btn-primario-hover, var(--cor)); }
.btn-entrar:active:not(:disabled) { transform: scale(.99); }
.btn-entrar:disabled { opacity: .6; cursor: not-allowed; }
.btn-entrar:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
/* Entrar com o CORTEX ID (login único): secundário, abaixo do "Entrar" com senha */
.btn-entrar.btn-cortex-id {
  margin-top: 12px; background: transparent; color: var(--cor); border: 1.5px solid var(--cor); text-decoration: none;
}
.btn-entrar.btn-cortex-id:hover { background: var(--cor); color: var(--papel); }

.acesso-rodape {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linha);
  display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--tinta-3);
}
.acesso-rodape img { max-height: 32px; width: auto; opacity: .8; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .entrada { grid-template-columns: 1fr; }
  .vitrine { display: none; }
  .acesso { min-height: 100vh; }
}
@media (max-width: 420px) {
  .acesso { padding: 24px 20px; }
  .acesso-logo { max-width: 100%; }
}
