/* =========================================================================
   OC Cloud - Sistema de Ativos
   Cores tiradas da logo (verde-água, verde escuro e menta).
   ========================================================================= */
:root {
  /* Marca */
  --primaria: #039d81;
  --primaria-escura: #025c50;
  --primaria-900: #013b33;
  --primaria-clara: #e4f7f2;
  --destaque: #39e5b5;
  --degrade: linear-gradient(135deg, #04b593 0%, #039d81 45%, #027a66 100%);
  --degrade-escuro: linear-gradient(160deg, #025c50 0%, #013b33 60%, #01231f 100%);

  /* Superfícies e texto */
  --bg: #f3f7f6;
  --card: #ffffff;
  --card-2: #f8fbfa;
  --texto: #0d2723;
  --texto-suave: #5d736f;
  --texto-fraco: #8a9c99;
  --borda: #e2ebe9;
  --borda-forte: #cfdedb;

  /* Estados */
  --ok: #0f9f62;
  --ok-fundo: #e2f6ec;
  --alerta: #b8740a;
  --alerta-fundo: #fdf3df;
  --erro: #d14343;
  --erro-fundo: #fdeaea;

  /* Formas */
  --raio: 16px;
  --raio-sm: 10px;
  --sombra: 0 1px 2px rgba(1, 59, 51, .04), 0 4px 18px rgba(1, 59, 51, .06);
  --sombra-forte: 0 12px 32px rgba(1, 59, 51, .14);
  --anel: 0 0 0 4px rgba(57, 229, 181, .28);

  /* Tipografia */
  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --fonte-marca: "Comfortaa", "Plus Jakarta Sans", system-ui, sans-serif;

  --lateral: 264px;
  --topo: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 15px;
  background: var(--bg);
  color: var(--texto);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primaria); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primaria-escura); }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 .25rem; font-weight: 800; letter-spacing: -.02em; color: var(--texto); }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; font-weight: 700; letter-spacing: -.01em; }
.suave { color: var(--texto-suave); }
.mono { font-family: var(--fonte-mono); font-size: .9em; letter-spacing: -.01em; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(57, 229, 181, .35); }

/* =========================================================================
   Estrutura: menu lateral + barra superior + conteúdo
   ========================================================================= */
.app { display: flex; min-height: 100vh; }

.lateral {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: var(--lateral);
  display: flex; flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--borda);
}
.lateral-marca { display: block; padding: 18px 22px 10px; }
.lateral-marca img { width: 168px; height: auto; display: block; }
.lateral nav { flex: 1; overflow-y: auto; padding: 8px 14px 16px; }
.nav-secao {
  margin: 18px 10px 6px; font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--texto-fraco);
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 2px 0; border-radius: 12px;
  color: var(--texto-suave); font-weight: 600; font-size: .94rem;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--primaria-clara); color: var(--primaria-escura); }
.nav-item.ativo {
  background: var(--degrade); color: #fff;
  box-shadow: 0 6px 18px rgba(3, 157, 129, .32);
}
.nav-item .nav-texto { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.sub { font-size: .9rem; padding: 8px 12px; }
.nav-item .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--borda-forte); margin: 0 6px; flex: none; }
.nav-item.ativo .ponto { background: var(--destaque); box-shadow: 0 0 0 3px rgba(57, 229, 181, .35); }

.lateral-rodape {
  margin: 12px; padding: 14px; border-radius: 14px;
  background: var(--degrade-escuro); color: #d8f5ec; font-size: .82rem;
  position: relative; overflow: hidden;
}
.lateral-rodape::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(57, 229, 181, .08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(57, 229, 181, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.lateral-rodape strong { display: block; color: #fff; font-size: .9rem; margin-bottom: 2px; }

.app-corpo { flex: 1; min-width: 0; margin-left: var(--lateral); display: flex; flex-direction: column; }

.barra-topo {
  position: sticky; top: 0; z-index: 20;
  height: var(--topo); display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: rgba(243, 247, 246, .82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--borda);
}
.barra-topo .contexto { display: flex; align-items: center; gap: 10px; color: var(--texto-suave); font-size: .9rem; min-width: 0; }
.barra-topo .contexto strong { color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700;
  background: var(--primaria-clara); color: var(--primaria-escura);
}
.espaco { flex: 1; }
.usuario { display: flex; align-items: center; gap: 12px; }
.usuario form { margin: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--degrade); color: #fff; font-weight: 800; font-size: .85rem;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--borda);
}
.usuario-texto { display: flex; flex-direction: column; line-height: 1.2; }
.usuario-texto .nome { font-weight: 700; font-size: .9rem; }
.usuario-texto .papel { font-size: .76rem; color: var(--texto-suave); }
.btn-icone {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--borda); background: var(--card);
  color: var(--texto-suave); cursor: pointer;
}
.btn-icone:hover { color: var(--primaria-escura); border-color: var(--borda-forte); background: var(--primaria-clara); }
.so-celular { display: none; }

main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 28px 56px; }

.fundo-menu { display: none; }

/* =========================================================================
   Componentes
   ========================================================================= */
.cabecalho {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.cabecalho h1 + .suave, .cabecalho .suave { font-size: .95rem; }

.card {
  background: var(--card); border: 1px solid var(--borda);
  border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 22px 24px; margin-bottom: 22px;
}
.card > h2:first-of-type, .card > .cabecalho:first-child h2 { display: flex; align-items: center; gap: 10px; }
.card > h2:first-of-type::before, .card > .cabecalho:first-child h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--degrade); flex: none;
}

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Indicadores */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.card.kpi { transition: transform .15s, box-shadow .15s; }
.card.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra-forte); }
.kpi-icone {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--primaria-clara); color: var(--primaria);
}
.kpi-icone .ico { width: 22px; height: 22px; }
.kpi.destaque .kpi-icone { background: var(--degrade); color: #fff; box-shadow: 0 6px 16px rgba(3, 157, 129, .3); }
.kpi .rotulo { font-size: .84rem; font-weight: 600; color: var(--texto-suave); }
.kpi .valor {
  font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.03em;
  color: var(--texto); font-variant-numeric: tabular-nums;
}
.kpi .valor small { font-size: .9rem; font-weight: 600; color: var(--texto-fraco); letter-spacing: 0; }
.barra { height: 8px; background: var(--primaria-clara); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.barra > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primaria), var(--destaque)); }
.barra.alta > div { background: linear-gradient(90deg, #e3a11b, var(--alerta)); }
.barra.cheia > div { background: linear-gradient(90deg, #ec6a6a, var(--erro)); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--degrade); color: #fff;
  border: 0; border-radius: 12px;
  padding: 10px 18px; font: inherit; font-weight: 700; font-size: .92rem;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: 0 4px 14px rgba(3, 157, 129, .28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(3, 157, 129, .38); filter: saturate(1.1); }
.btn:active { transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--anel); }
.btn .ico { width: 18px; height: 18px; }
.btn-sec {
  background: var(--card); color: var(--texto);
  border: 1px solid var(--borda-forte); box-shadow: none;
}
.btn-sec:hover { color: var(--primaria-escura); background: var(--primaria-clara); border-color: #b5ddd2; box-shadow: none; }
.btn-perigo { background: var(--card); color: var(--erro); border: 1px solid #f0c7c7; box-shadow: none; }
.btn-perigo:hover { color: var(--erro); background: var(--erro-fundo); box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; color: var(--primaria); cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.link-btn:hover { color: var(--primaria-escura); text-decoration: underline; }

/* Tabelas */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--borda); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
thead th {
  background: var(--card-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--texto-suave); font-weight: 700; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f4fbf9; }
td a { font-weight: 700; }
.vazio { text-align: center; color: var(--texto-suave); padding: 36px 20px !important; }

/* Etiquetas de status */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: #edf2f1; color: var(--texto-suave); white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tag-ok { background: var(--ok-fundo); color: var(--ok); }
.tag-ok::before { box-shadow: 0 0 0 3px rgba(15, 159, 98, .18); }
.tag-alerta { background: var(--alerta-fundo); color: var(--alerta); }
.tag-erro { background: var(--erro-fundo); color: var(--erro); }

/* Formulários */
.form-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo.largo { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: .86rem; color: var(--texto); }
.campo input[type=text], .campo input[type=email], .campo input[type=password],
.campo input[type=number], .campo input[type=date], .campo input[type=datetime-local], .campo input[type=url],
.campo input[type=file], .campo select, .campo textarea, select {
  width: 100%; padding: 10px 13px; font: inherit; font-size: .94rem; color: var(--texto);
  border: 1px solid var(--borda-forte); border-radius: var(--raio-sm); background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #b5ccc8; }
.campo input:focus, .campo select:focus, .campo textarea:focus, select:focus {
  outline: none; border-color: var(--primaria); box-shadow: var(--anel);
}
.campo .ajuda { font-size: .8rem; color: var(--texto-suave); }
.campo .erro { color: var(--erro); font-size: .82rem; font-weight: 600; }
.campo.com-erro input, .campo.com-erro select, .campo.com-erro textarea { border-color: var(--erro); }
.campo-check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; align-self: end; padding-bottom: 8px; }
.campo-check input { width: 18px; height: 18px; accent-color: var(--primaria); }
.campo-check .ajuda, .campo-check .erro { flex-basis: 100%; }
fieldset {
  border: 1px solid var(--borda); border-radius: 14px; padding: 18px 20px 20px; margin: 0 0 20px;
  background: var(--card-2);
}
legend {
  font-weight: 800; font-size: .95rem; padding: 0 8px; margin-left: -8px; color: var(--primaria-escura);
}
.erros-gerais {
  color: var(--erro); font-size: .88rem; font-weight: 600;
  background: var(--erro-fundo); border: 1px solid #f3cccc;
  padding: 11px 14px; border-radius: var(--raio-sm); margin-bottom: 16px;
}

/* Mensagens */
.mensagens { list-style: none; padding: 0; margin: 0 0 22px; }
.mensagens li {
  padding: 13px 16px 13px 18px; border-radius: 12px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--borda); box-shadow: var(--sombra);
  border-left: 4px solid var(--primaria); font-weight: 600;
}
.mensagens .success { border-left-color: var(--ok); }
.mensagens .warning { border-left-color: var(--alerta); }
.mensagens .error { border-left-color: var(--erro); }

/* Chave do agente: estilo terminal */
.chave { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.chave code {
  flex: 1; min-width: 0; overflow-wrap: anywhere;
  font-family: var(--fonte-mono); font-size: .86rem;
  background: var(--degrade-escuro); color: #8ff3d1;
  padding: 12px 14px 12px 34px; border-radius: 12px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(57, 229, 181, .18);
}
.chave code::before { content: "›"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); color: var(--destaque); font-weight: 700; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.dl dt { color: var(--texto-suave); font-size: .88rem; font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.logo-empresa {
  max-height: 60px; max-width: 160px; object-fit: contain;
  background: var(--card); border: 1px solid var(--borda); border-radius: 12px; padding: 6px;
}
details summary { cursor: pointer; font-weight: 600; }

/* Alertas */
.lista-alertas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista-alertas li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--borda); background: var(--card-2); }
.lista-alertas li a { display: flex; flex-direction: column; color: var(--texto); font-weight: 500; min-width: 0; }
.lista-alertas li a strong { font-weight: 700; }
.lista-alertas li a .suave { font-size: .85rem; }
.lista-alertas li a:hover strong { color: var(--primaria-escura); }
.alerta-icone { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--primaria-clara); color: var(--primaria); }
.alerta-erro { border-left: 4px solid var(--erro) !important; }
.alerta-erro .alerta-icone { background: var(--erro-fundo); color: var(--erro); }
.alerta-alerta { border-left: 4px solid var(--alerta) !important; }
.alerta-alerta .alerta-icone { background: var(--alerta-fundo); color: var(--alerta); }
.alerta-info { border-left: 4px solid var(--primaria) !important; }
.suprimento { padding: 12px 14px; border: 1px solid var(--borda); border-radius: 12px; background: var(--card-2); }

/* Filtros de lista */
.filtros { padding: 16px 18px; }
.filtros-grid { display: grid; gap: 10px; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto; align-items: center; }
.filtros .campo input, .filtros .campo select { padding: 9px 12px; }
@media (max-width: 960px) { .filtros-grid { grid-template-columns: 1fr 1fr; } .filtros .campo-busca { grid-column: 1 / -1; } }

/* Avisos em destaque (situação do mês etc.) */
.aviso { border-left: 4px solid var(--primaria); padding: 16px 20px; }
.aviso-ok { border-left-color: var(--ok); background: linear-gradient(90deg, var(--ok-fundo), var(--card) 60%); }
.aviso-alerta { border-left-color: var(--alerta); background: linear-gradient(90deg, var(--alerta-fundo), var(--card) 60%); }
.aviso textarea { width: 100%; padding: 10px 13px; font: inherit; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm); }
tfoot .linha-total td { font-weight: 800; background: var(--card-2); border-top: 2px solid var(--borda-forte); border-bottom: 0; }

/* Documentos (termo, inventário): folha A4 na tela e na impressão */
.documento { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra);
  max-width: 920px; margin: 0 auto 22px; padding: 36px 44px; font-size: .95rem; }
.doc-topo { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
  border-bottom: 2px solid var(--primaria); padding-bottom: 14px; margin-bottom: 22px; }
.doc-topo img { max-height: 64px; max-width: 200px; object-fit: contain; }
.doc-topo .doc-emissor { text-align: right; font-size: .85rem; color: var(--texto-suave); line-height: 1.45; }
.doc-topo .doc-emissor strong { color: var(--texto); font-size: .95rem; }
.documento h1 { text-align: center; font-size: 1.35rem; margin: 0 0 18px; }
.documento .doc-bloco { border: 1px solid var(--borda); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.documento .doc-bloco .dl { gap: 4px 18px; }
.documento table { font-size: .88rem; }
.documento p { text-align: justify; }
.assinaturas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 54px; }
.assinaturas div { border-top: 1px solid var(--texto); padding-top: 8px; font-size: .85rem; }
.assinaturas small { display: block; color: var(--texto-suave); margin-top: 18px; }
.lista-escolha { display: grid; gap: 6px; }
.lista-escolha label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--borda);
  border-radius: 10px; cursor: pointer; background: var(--card-2); }
.lista-escolha label:hover { border-color: var(--borda-forte); }
.lista-escolha input { width: 18px; height: 18px; accent-color: var(--primaria); }

/* Impressão / salvar como PDF */
.so-impressao { display: none; }
@media print {
  @page { margin: 14mm; }
  /* Os tamanhos usam rem (relativos à fonte da página): reduzir aqui reduz tudo junto na folha A4. */
  html { font-size: 12px; }
  body { background: #fff; font-size: 12px; }
  .lateral, .barra-topo, .fundo-menu, .nao-imprimir, .mensagens { display: none !important; }
  .app-corpo { margin-left: 0; }
  main { padding: 0; max-width: none; }
  .card, .card.kpi { box-shadow: none; border-color: #cfdedb; break-inside: avoid; }
  .card.kpi:hover { transform: none; }
  .kpi.destaque .kpi-icone { box-shadow: none; }
  .so-impressao { display: flex; }
  .cabecalho-impressao { align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primaria); }
  .cabecalho-impressao img { height: 56px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-icone { width: 32px; height: 32px; margin-bottom: 8px; }
  .kpi .valor { font-size: 1.35rem; white-space: nowrap; }
  .card { padding: 14px 16px; }
  .tabela-wrap { overflow: visible; }
  table { font-size: 10.5px; }
  th, td { padding: 6px 8px; }
  td:last-child, tfoot td { white-space: nowrap; }
  a { color: inherit; }
  .documento { border: 0; box-shadow: none; padding: 0; max-width: none; font-size: 1rem; }
  .assinaturas { margin-top: 26px; break-inside: avoid; page-break-inside: avoid; }
  .documento td:last-child { white-space: normal; }
  .documento table { font-size: .85rem; }
  .documento thead th { white-space: normal; letter-spacing: .03em; }
  .documento th, .documento td { padding: 4px 6px; }
  .documento h1 { margin-bottom: 10px; }
  .documento h2 { margin: 10px 0 4px !important; font-size: 1rem; }
  .documento .doc-bloco { margin-bottom: 10px; padding: 8px 12px; }
  .doc-topo { padding-bottom: 8px; margin-bottom: 12px; }
  .doc-topo img { max-height: 48px; }
  .assinaturas small { margin-top: 12px; }
  /* O layout de tela (flex com altura mínima de 100vh) empurrava o fim do documento para a próxima folha. */
  .app, .app-corpo { display: block; min-height: 0; }
}

/* =========================================================================
   Login
   ========================================================================= */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: var(--card); }
.login-hero {
  position: relative; overflow: hidden; color: #e6fbf4;
  padding: 56px clamp(32px, 6vw, 88px);
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(600px 420px at 85% 10%, rgba(57, 229, 181, .35) 0%, transparent 60%),
    radial-gradient(520px 520px at 0% 100%, rgba(4, 181, 147, .45) 0%, transparent 60%),
    var(--degrade-escuro);
}
.login-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(57, 229, 181, .09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(57, 229, 181, .09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.login-hero > * { position: relative; }
.login-hero .selo { align-self: flex-start; background: rgba(57, 229, 181, .14); color: var(--destaque); border: 1px solid rgba(57, 229, 181, .3); }
.login-hero h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.12; margin: 22px 0 14px; letter-spacing: -.035em; }
.login-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--destaque), #b6f7e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p { font-size: 1.05rem; color: #b9e6d8; max-width: 520px; margin: 0 0 30px; }
.recursos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 520px; }
.recursos li { display: flex; gap: 14px; align-items: flex-start; }
.recursos .kpi-icone { margin: 0; background: rgba(57, 229, 181, .12); color: var(--destaque); border: 1px solid rgba(57, 229, 181, .25); }
.recursos strong { display: block; color: #fff; font-size: .98rem; }
.recursos span { color: #a9d9ca; font-size: .9rem; }

.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-caixa { width: 100%; max-width: 400px; }
.login-logo { display: block; width: 230px; max-width: 75%; height: auto; margin: 0 auto 22px; }
.login-caixa h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; text-align: center; }
.login-caixa .suave { margin: 0 0 24px; text-align: center; }
.login-caixa .btn { width: 100%; padding: 13px 18px; font-size: .98rem; margin-top: 4px; }
.login-caixa .campo input { padding: 12px 14px; }
.login-link { text-align: center; margin: 18px 0 0; font-size: .9rem; }
.login-rodape { margin-top: 28px; font-size: .8rem; color: var(--texto-fraco); text-align: center; }

/* =========================================================================
   Celular e tablet
   ========================================================================= */
@media (max-width: 960px) {
  .lateral { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sombra-forte); }
  .menu-aberto .lateral { transform: none; }
  .menu-aberto .fundo-menu { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(1, 35, 31, .45); }
  .app-corpo { margin-left: 0; }
  .so-celular { display: inline-grid; }
  .barra-topo { padding: 0 16px; }
  main { padding: 20px 16px 48px; }
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.35rem; }
  .card { padding: 18px 16px; border-radius: 14px; }
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dd { margin-bottom: 10px; }
  .usuario-texto, .barra-topo .contexto .chip { display: none; }
  .chave code { flex-basis: 100%; }
  .kpi .valor { font-size: 1.55rem; }
  /* Indicadores dois por linha, mais compactos */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi-icone { width: 36px; height: 36px; margin-bottom: 10px; }
  .kpi .rotulo { font-size: .78rem; line-height: 1.3; }
}
