/* ============================================================
   As telas de ENTRADA do cliente no "Noite Encaixe": Entrar, PIN, criar acesso,
   esqueci a senha, senha nova, escolher empresa e "em revisao".
   Prefixo en-. So usa os TOKENS de tema-noite.css (nenhuma cor fixa aqui) e as
   mesmas letras (Bricolage nos titulos, Instrument no texto).

   O desenho e o da previa aprovada em 12/10/2026: no computador (a partir de
   960px) a tela se divide ao meio - a metade marinho, que e a mesma nos dois
   modos, diz onde a pessoa esta; a outra metade e a caixa com o formulario. No
   celular, o topo marinho vem em cima e a folha com o formulario sobe por cima
   dele, com a quina arredondada.
   ============================================================ */
body.en { margin: 0; font-size: 16px; line-height: 1.45; }
.en *, .en *::before, .en *::after { box-sizing: border-box; }
.en :where(h1, h2, h3, p) { margin: 0; }

.en-pag { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------- a metade marinho */
.en-cima { position: relative; overflow: hidden; background: var(--cab-fundo); color: var(--cab-texto); padding: 38px 56px 56px; display: flex; flex-direction: column; }
.en-cima::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 15% 105%, var(--cab-acento-veu), transparent 70%); pointer-events: none; }
.en-marca { position: relative; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.en-marca .n-tema { color: var(--cab-texto-2); border-color: var(--cab-borda); }
.en-marca .n-tema:hover { color: var(--cab-texto); border-color: var(--cab-texto-2); }
.en-marca .n-tema:focus-visible { outline-color: var(--cab-acento); }
.en-lg { display: inline-flex; align-items: center; gap: 12px; color: var(--cab-texto); }
.en-lg img { width: 44px; height: 44px; display: block; flex: none; }
.en-lg b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.en-lg small { display: block; font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--cab-acento); margin-top: 5px; line-height: 1; }
.en-lente-fundo { position: absolute; width: 200px; height: 200px; right: 0; bottom: calc(100% + 6px); opacity: .16; pointer-events: none; }
.en-texto { position: relative; z-index: 2; margin-top: auto; padding-top: 80px; }
.en-texto h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.9vw, 52px); line-height: 1.04; letter-spacing: -.025em; max-width: 12em; color: var(--cab-texto); }
.en-apoio { color: var(--cab-texto-2); font-size: 17px; line-height: 1.45; margin-top: 16px; max-width: 30em; }
.en-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.en-chips span { background: var(--cab-chip); color: var(--cab-chip-texto); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.en-chips span.lima { background: var(--cab-acento-veu); color: var(--cab-acento); }
.en-itens { list-style: none; margin: 34px 0 0; padding: 0; max-width: 440px; }
.en-itens li { padding: 13px 0; border-top: 1px solid var(--cab-linha); font-size: 16px; color: var(--cab-texto-2); line-height: 1.35; }
.en-itens li b { display: block; color: var(--cab-texto); font-weight: 600; margin-bottom: 1px; }

/* ---------------------------------------------------- a metade do formulario */
.en-folha { background: var(--fundo-faixa); display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
[data-tema="claro"] .en-folha { background: var(--fundo); }
.en-caixa { width: 100%; max-width: 400px; color: var(--texto); }
.en-caixa h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; color: var(--texto); }
.en-caixa h2.en-h2-menor { font-size: 22px; }
.en-caixa p { color: var(--texto-2); font-size: 15px; line-height: 1.5; margin-top: 12px; max-width: 42ch; }
.en-caixa p.en-ap { margin-top: 10px; max-width: 38ch; }
.en-caixa b { color: var(--texto); font-weight: 600; }
.en-caixa a { color: var(--acento-texto); font-weight: 600; text-underline-offset: 3px; }

.en-campo { margin-top: 20px; }
.en .en-campo label { display: block; font-weight: 600; font-size: 14px; color: var(--texto-2); margin: 0 0 7px; }
.en .en-campo input { width: 100%; font: inherit; font-size: 16px; color: var(--texto); background: var(--superficie); border: 1px solid var(--linha-2); border-radius: 12px; padding: 0 16px; height: 50px; }
.en .en-campo input:focus { border-color: var(--acento); }
.en .en-enviar { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 24px; min-height: 52px; font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 12px; background: var(--acento-fundo); color: var(--acento-tinta); cursor: pointer; text-decoration: none; }
.en .en-enviar:hover { filter: brightness(1.06); }
/* o botao de segunda ordem (reenviar, juntar a empresa): contorno, sem cor cheia */
.en .en-enviar.en-contorno { background: transparent; color: var(--texto); border: 1px solid var(--linha-2); }
.en .en-enviar.en-contorno:hover { border-color: var(--texto-2); filter: none; }
.en-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 20px; font-size: 15px; }
.en .en-caixa .en-links a.suave, .en .en-caixa a.suave { color: var(--texto-2); font-weight: 500; }

/* avisos: o vermelho do erro e o verde do "pronto" */
.en .en-caixa .aviso { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.en-ok { margin-top: 18px; background: var(--veu-ok); border: 1px solid var(--entrou); color: var(--acento-texto); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.en-ok b { color: inherit; }
.en .en-caixa .en-ok { margin-top: 18px; max-width: none; color: var(--acento-texto); }

/* o selo do estado (encerrado, expirado, em revisao) */
.en-selo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 18px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; }
.en-selo svg { width: 24px; height: 24px; display: block; }
.en-selo-aviso { background: var(--alerta-veu-a); color: var(--alerta-texto); }
.en-selo-neg { background: var(--negativo-veu); color: var(--negativo-texto); }

/* a ajuda embaixo do PIN */
.en-ajuda { color: var(--texto-2); font-size: 14px; margin-top: 18px; max-width: 42ch; }
.en .en-caixa p.en-ajuda { font-size: 14px; margin-top: 18px; }
.en .en-caixa p.en-cadeado { display: flex; align-items: center; gap: 8px; color: var(--texto-3); font-size: 14px; margin-top: 12px; }
.en-cadeado svg { width: 16px; height: 16px; flex: none; }

/* os 6 digitos do PIN */
.en-pin { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 24px; }
.en .en-pin input { width: 100%; height: 62px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--texto); background: var(--superficie); border: 1px solid var(--linha-2); border-radius: 14px; padding: 0; }
.en .en-pin input:focus { border-color: var(--acento); }

/* "ja tenho acesso": o formulario que abre */
.en-mais { margin-top: 22px; background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px; }
.en-mais > summary { cursor: pointer; list-style: none; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; color: var(--texto); }
.en-mais > summary::-webkit-details-marker { display: none; }
.en-mais > summary::after { content: ""; flex: none; width: 8px; height: 8px; transform: rotate(-45deg); transition: transform .2s; border-right: 2px solid var(--texto-2); border-bottom: 2px solid var(--texto-2); }
.en-mais[open] > summary::after { transform: rotate(45deg); }
.en-mais-corpo { padding: 0 16px 18px; }
.en-mais-corpo .en-campo:first-of-type { margin-top: 14px; }
[data-tema="claro"] .en-mais { border-color: var(--borda-painel); }

/* a lista de empresas */
.en-lista { margin-top: 22px; background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; }
.en-lista form { margin: 0; }
.en-lista form + form { border-top: 1px solid var(--linha); }
.en .en-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: transparent; font: inherit; color: var(--texto); text-align: left; cursor: pointer; min-height: 56px; }
.en .en-item:hover { background: var(--veu-hover); }
.en-item .en-tx { flex: 1; min-width: 0; }
.en-item .en-tx b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.en-item .en-tx small { display: block; color: var(--texto-3); font-size: 14px; margin-top: 2px; }
.en-item .en-seta { flex: none; font-size: 22px; line-height: 1; color: var(--texto-2); }
[data-tema="claro"] .en-lista { border-color: var(--borda-painel); }

.en-rodape { margin-top: 22px; font-size: 15px; }

/* ================================================= CELULAR */
@media (max-width: 959px) {
  .en-pag { display: flex; flex-direction: column; }
  .en-cima { padding: 22px 20px 54px; }
  .en-lg img { width: 38px; height: 38px; }
  .en-lg b { font-size: 23px; }
  .en-texto { padding-top: 46px; }
  .en-texto h1 { font-size: 31px; }
  .en-apoio { font-size: 15px; margin-top: 12px; }
  .en-itens { display: none; }
  .en-lente-fundo { display: none; }
  .en-folha { margin-top: -26px; border-radius: 26px 26px 0 0; position: relative; z-index: 3; align-items: flex-start; padding: 30px 20px 48px; background: var(--fundo); flex: 1; }
  [data-tema="claro"] .en-folha { box-shadow: 0 -1px 0 var(--borda-painel); }
  .en-caixa h2 { font-size: 26px; }
  .en-caixa h2.en-h2-menor { font-size: 20px; }
  .en-pin { gap: 7px; }
  .en .en-pin input { height: 56px; font-size: 24px; border-radius: 12px; }
}
@media (max-width: 380px) {
  .en-texto h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .en * { transition: none !important; } }
@media print { .en .n-tema { display: none; } }

/* o erro em cima do formulario que abre com um titulo (criar acesso), e a lista sem titulo */
.en .en-caixa .aviso + form > h2 { margin-top: 20px; }
.en-caixa > .en-lista:first-child { margin-top: 0; }
