/* Nexis Business (10/11/2026): login e escolha de módulo da marca mãe.
   Identidade própria (briefing do dono): verde profundo + esmeralda, fundo claro,
   Montserrat. Não usa o padrão Nexis Tickets (Clash itálico caixa alta). */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --nb-fundo-escuro: #09251b;
  --nb-esmeralda: #00854a;
  --nb-esmeralda-hover: #006e3d;
  --nb-esmeralda-claro: #2ed678;
  --nb-fundo: #f7f8f5;
  --nb-texto: #171b19;
  --nb-texto-2: #4b544f;
  --nb-linha: #dfe3dd;
  --nb-erro: #b42318;
  --nb-erro-fundo: #fef3f2;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--nb-fundo);
  color: var(--nb-texto);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--nb-esmeralda); }
a:hover { color: var(--nb-esmeralda-hover); }
:focus-visible { outline: 3px solid var(--nb-esmeralda-claro); outline-offset: 2px; }
.nb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
/* a arte do prédio ainda tem fundo escuro (recorte transparente pendente):
   "screen" apaga o preto e a máscara esfuma as bordas no verde */
.nb-arte { mix-blend-mode: screen; pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 62%, transparent 100%); }

/* ── Login ── */
.nb-login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.nb-painel { display: none; }
.nb-lado-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 24px; }
.nb-form-caixa { width: 100%; max-width: 400px; }
.nb-topo-celular { display: flex; justify-content: center; margin-bottom: 28px; }
.nb-topo-celular img { height: 44px; width: auto; }
.nb-x-form { display: none; }
.nb-titulo { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin: 0; line-height: 1.15; }
.nb-sub { margin: 8px 0 28px; text-align: center; color: var(--nb-texto-2); font-size: 16px; }
.nb-campo { margin-bottom: 18px; }
.nb-campo label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.nb-entrada { position: relative; }
.nb-campo input {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--nb-texto);
  background: #fff; border: 1.5px solid #2a312d; border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.nb-campo input::placeholder { color: #8a928d; }
.nb-campo input:focus { border-color: var(--nb-esmeralda); box-shadow: 0 0 0 3px rgba(0, 133, 74, .18); }
.nb-campo input[aria-invalid="true"] { border-color: var(--nb-erro); }
.nb-entrada input { padding-right: 56px; }
.nb-olho {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: none; color: #3c4540; border-radius: 999px; cursor: pointer;
}
.nb-olho:hover { background: #eef1ec; }
.nb-linha-opcoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; flex-wrap: wrap; }
.nb-check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 44px; }
.nb-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--nb-esmeralda); cursor: pointer; }
.nb-link-forte { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.nb-botao {
  width: 100%; height: 54px; border: 0; border-radius: 10px; background: var(--nb-esmeralda); color: #fff;
  font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; transition: background .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.nb-botao:hover { background: var(--nb-esmeralda-hover); }
.nb-botao[disabled] { opacity: .75; cursor: progress; }
.nb-giro { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: nb-gira .7s linear infinite; }
@keyframes nb-gira { to { transform: rotate(360deg); } }
.nb-erro {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--nb-erro-fundo);
  color: var(--nb-erro); font-size: 14px; font-weight: 600; border: 1px solid #fecdca;
}
.nb-ajuda { text-align: center; margin: 24px 0 0; font-size: 15px; }
.nb-ajuda a { font-weight: 700; text-decoration: none; }
.nb-rodape { width: 100%; max-width: 400px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--nb-linha); text-align: center; }
.nb-rodape strong { display: block; font-size: 15px; }
.nb-rodape nav { margin-top: 6px; font-size: 13px; color: var(--nb-texto-2); }
.nb-rodape nav a { color: var(--nb-texto-2); text-decoration: none; }
.nb-rodape nav a:hover { color: var(--nb-texto); text-decoration: underline; }

@media (min-width: 960px) {
  .nb-login { grid-template-columns: 47.5fr 52.5fr; }
  .nb-painel {
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    background: radial-gradient(120% 80% at 20% 0%, #0f3a2a 0%, var(--nb-fundo-escuro) 55%, #061a13 100%);
    color: #fff; padding: 56px 56px 0;
  }
  .nb-painel-logo { height: 84px; width: auto; align-self: flex-start; }
  .nb-painel h2 { font-size: clamp(40px, 3.8vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 56px 0 14px; }
  .nb-painel p { font-size: clamp(18px, 1.6vw, 24px); margin: 0; color: rgba(255,255,255,.92); }
  /* arte em fundo escuro: o "screen" apaga o preto e deixa o halo como brilho */
  .nb-predio { position: absolute; left: 50%; bottom: -3%; width: min(112%, 860px); transform: translateX(-48%); }
  .nb-lado-form { padding: 48px 32px 32px; }
  .nb-topo-celular { display: none; }
  .nb-x-form { display: block; height: 92px; width: auto; margin: 0 auto 22px; }
  .nb-titulo { font-size: 38px; }
  .nb-sub { font-size: 18px; }
}
@media (min-width: 960px) and (max-height: 760px) {
  .nb-predio { width: min(95%, 700px); }
  .nb-painel h2 { margin-top: 36px; }
}

/* ── Escolha de módulo ── */
.nb-barra { background: var(--nb-fundo-escuro); color: #fff; }
.nb-barra-in { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nb-barra-in > a img { height: 38px; width: auto; display: block; }
.nb-barra-acoes { display: flex; align-items: center; gap: 4px; }
.nb-barra-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: #fff; text-decoration: none; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.nb-barra-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nb-barra-sep { width: 1px; height: 26px; background: rgba(255,255,255,.25); margin: 0 6px; }
.nb-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--nb-fundo-escuro); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.nb-menu { position: relative; }
.nb-menu-caixa {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; color: var(--nb-texto);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(9, 37, 27, .22); padding: 8px; z-index: 20;
}
.nb-menu-caixa[hidden] { display: none; }
.nb-menu-quem { padding: 10px 12px 12px; border-bottom: 1px solid var(--nb-linha); margin-bottom: 6px; }
.nb-menu-quem strong { display: block; font-size: 15px; }
.nb-menu-quem span { font-size: 13px; color: var(--nb-texto-2); word-break: break-all; }
.nb-menu-caixa a, .nb-menu-caixa button {
  display: flex; width: 100%; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--nb-texto); text-decoration: none; background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; text-align: left;
}
.nb-menu-caixa a:hover, .nb-menu-caixa button:hover { background: #eef1ec; color: var(--nb-texto); }

.nb-conteudo { max-width: 1240px; margin: 0 auto; padding: 28px 16px 24px; }
.nb-conteudo h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.nb-conteudo > p { margin: 6px 0 22px; color: var(--nb-texto-2); font-size: 16px; }
.nb-faixa {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 96px; padding: 22px 20px; display: flex; align-items: center;
  background: linear-gradient(100deg, #0b3324 0%, var(--nb-fundo-escuro) 55%, #0d3d2b 100%); color: #fff;
}
.nb-faixa strong { position: relative; z-index: 1; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; max-width: 62%; line-height: 1.2; }
.nb-faixa img { position: absolute; right: -24px; bottom: -10px; height: 125%; width: auto; }
/* flex centralizado: a última linha incompleta fica no meio (4 + 3 como na referência) */
.nb-grade { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; --nb-gap: 12px; --nb-col: 2; gap: var(--nb-gap); }
.nb-grade > li { width: calc((100% - (var(--nb-col) - 1) * var(--nb-gap)) / var(--nb-col)); }
.nb-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%;
  padding: 18px 10px 16px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--nb-texto);
  box-shadow: 0 1px 2px rgba(9,37,27,.06), 0 6px 18px rgba(9,37,27,.07); border: 1px solid #edf0eb;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.nb-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(9,37,27,.08), 0 14px 30px rgba(9,37,27,.12); border-color: #cfe9da; color: var(--nb-texto); }
.nb-card img { height: 72px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 6px; }
.nb-card b { font-size: 17px; font-weight: 800; text-align: center; }
.nb-card span { font-size: 14px; font-weight: 700; color: var(--nb-esmeralda); display: inline-flex; align-items: center; gap: 6px; }
.nb-aviso { margin-top: 24px; background: #fff; border-radius: 16px; padding: 28px 20px; text-align: center; border: 1px solid #edf0eb; }
.nb-aviso h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.nb-aviso p { margin: 0 0 18px; color: var(--nb-texto-2); }
.nb-aviso .nb-botao { width: auto; padding: 0 28px; text-decoration: none; height: 48px; font-size: 16px; }
.nb-carregando { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nb-carregando div { height: 150px; border-radius: 16px; background: linear-gradient(90deg, #eceee9 0%, #f4f5f2 50%, #eceee9 100%); background-size: 200% 100%; animation: nb-brilho 1.2s ease-in-out infinite; }
@keyframes nb-brilho { to { background-position: -200% 0; } }
.nb-rodape-pag { max-width: 1240px; margin: 12px auto 0; padding: 20px 16px 28px; border-top: 1px solid var(--nb-linha); text-align: center; font-size: 13px; color: var(--nb-texto-2); }
.nb-rodape-pag strong { color: var(--nb-texto); font-size: 15px; margin-right: 10px; }
.nb-rodape-pag a { color: var(--nb-texto-2); text-decoration: none; }
.nb-rodape-pag a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .nb-grade { --nb-col: 3; --nb-gap: 16px; }
  .nb-carregando { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .nb-faixa strong { font-size: 28px; }
}
@media (min-width: 960px) {
  .nb-barra-in { height: 76px; padding: 0 40px; }
  .nb-barra-in > a img { height: 46px; }
  .nb-conteudo { padding: 30px 40px 24px; }
  .nb-conteudo h1 { font-size: 42px; }
  .nb-conteudo > p { font-size: 18px; }
  .nb-faixa { min-height: 128px; padding: 24px 56px; margin-top: 30px; }
  .nb-faixa strong { font-size: 40px; max-width: 70%; }
  .nb-faixa img { right: 30px; bottom: -14px; height: 128%; }
  .nb-grade { --nb-col: 4; --nb-gap: 20px; margin-top: 30px; padding: 0 30px; }
  .nb-card { padding: 22px 14px 20px; }
  .nb-card img { height: 138px; margin-bottom: 8px; }
  .nb-card b { font-size: 24px; }
  .nb-card span { font-size: 17px; }
  .nb-carregando { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 30px; }
  .nb-carregando div { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-card, .nb-botao { transition: none; }
  .nb-giro, .nb-carregando div { animation: none; }
}
