:root {
  --bg-1: #eef3fc;
  --bg-2: #dfe9fb;
  --azul-1: #2f6fed;
  --azul-2: #1a3fae;
  --azul-claro: #8ec5ff;
  --indigo: #5b57e8;
  --verde: #1fb26a;
  --vermelho: #d1273f;
  --ink: #0f1c3d;
  --muted: #5b6b8c;
  --line: rgba(47, 111, 237, 0.18);
  --borda: rgba(15, 28, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2) 55%, #eaf0fd);
  display: flex;
  flex-direction: column;
}

.foto {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("fundo-diario.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.45) brightness(1.2) contrast(0.92);
}

.veu-foto {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(238, 243, 252, 0.9), rgba(223, 233, 251, 0.88) 55%, rgba(234, 240, 253, 0.94));
}

.orbe {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}
.orbe.a { width: 480px; height: 480px; background: radial-gradient(circle, var(--azul-1) 0%, transparent 70%); opacity: 0.16; top: -200px; right: -160px; }
.orbe.b { width: 420px; height: 420px; background: radial-gradient(circle, var(--indigo) 0%, transparent 70%); opacity: 0.12; bottom: -220px; left: -180px; }

header.topo {
  position: relative;
  z-index: 5;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borda);
}

header.topo .marca {
  display: flex;
  align-items: center;
  gap: 12px;
}

header.topo .marca img {
  height: 52px;
  display: block;
}

header.topo .marca span {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  border-left: 1px solid var(--borda);
  padding-left: 12px;
}

header.topo button#btn-sair {
  background: transparent;
  border: 1.5px solid var(--borda);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

header.topo button#btn-sair:hover {
  border-color: var(--azul-1);
  color: var(--azul-2);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.cartao {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 34px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(26, 63, 174, 0.35);
}

.cartao h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink);
}

.cartao p.subtitulo {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--azul-2);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="time"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--borda);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 18px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--azul-1);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.campo-senha-com-olho {
  position: relative;
}

.campo-senha-com-olho input {
  padding-right: 44px;
}

.botao-olho-senha {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -9px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.botao-olho-senha:hover {
  opacity: 1;
}

/* O Chrome (e outros navegadores) pintam de amarelo/azul-claro um campo
   quando ele reconhece uma senha salva (autopreenchimento), ignorando o
   fundo branco definido acima. Isso faz só o campo de senha parecer "fora
   do padrão" do site. Truque do "box-shadow inset" força a cor de fundo
   correta mesmo com autopreenchimento ativo. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.92) inset;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.92) inset;
  border: 1.5px solid var(--borda);
  transition: background-color 9999s ease-in-out 0s;
}

input.codigo {
  letter-spacing: 8px;
  font-size: 24px;
  text-align: center;
  font-weight: 700;
}

/* Placeholder com 6 bolinhas (●●●●●●) marcando as 6 casas do código — some
   assim que a pessoa começa a digitar, dando lugar aos números de verdade. */
input.codigo::placeholder {
  color: var(--muted);
  letter-spacing: 8px;
  opacity: 0.55;
}

button.primario {
  width: 100%;
  background: linear-gradient(100deg, var(--azul-1), var(--azul-2) 75%);
  color: white;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(26, 63, 174, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button.primario:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -10px rgba(26, 63, 174, 0.6);
}

button.primario:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

button.secundario {
  width: 100%;
  background: transparent;
  color: var(--azul-2);
  border: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

button.secundario:hover {
  text-decoration: underline;
}

.mensagem {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  font-weight: 500;
}

.mensagem.erro {
  background: rgba(209, 39, 63, 0.08);
  color: var(--vermelho);
  border: 1px solid rgba(209, 39, 63, 0.25);
}

.mensagem.sucesso {
  background: rgba(31, 178, 106, 0.1);
  color: #13804e;
  border: 1px solid rgba(31, 178, 106, 0.3);
}

.mensagem.info {
  background: rgba(47, 111, 237, 0.1);
  color: var(--azul-2);
  border: 1px solid var(--line);
}

.container-painel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 36px auto;
  padding: 0 24px;
}

.container-painel-largo {
  max-width: max(720px, min(1700px, calc(100vw - 10cm)));
  margin-top: -12px;
}

.grade-painel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .grade-painel {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  }
}

@media (min-width: 1180px) {
  .grade-painel {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 300px);
  }
}

.caixa-noticias {
  max-height: 660px;
  overflow-y: auto;
  padding-right: 4px;
}

.caixa-noticias .item-noticia {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--borda);
}

.caixa-noticias .item-noticia:last-child {
  border-bottom: none;
}

.caixa-noticias .item-noticia a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.caixa-noticias .item-noticia a:hover {
  color: var(--azul-1);
  text-decoration: underline;
}

.caixa-noticias .item-noticia-data {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  color: #889;
}

select option:disabled {
  color: var(--vermelho);
}

.bloco-banner {
  margin-bottom: 20px;
  text-align: center;
}

.bloco-banner img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.espaco-banner-vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

#banner-topo-container {
  max-width: max(720px, min(1700px, calc(100vw - 10cm)));
  margin: 0 auto 20px;
  padding: 0 24px;
}

#banner-topo-container .espaco-banner-vazio {
  height: 90px;
}

#banner-topo-container img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

#banner-lateral-1-container .espaco-banner-vazio,
#banner-lateral-2-container .espaco-banner-vazio {
  height: 100px;
  margin-bottom: 20px;
}

.orgao-desabilitado {
  opacity: 0.55;
  cursor: not-allowed;
}

.orgao-desabilitado input {
  cursor: not-allowed;
}

.selo-em-construcao {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(91, 107, 140, 0.15);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
}

.botao-estado {
  padding: 8px 4px;
  border: 1.5px solid var(--borda);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.botao-estado:hover {
  border-color: var(--azul-1);
}

.botao-estado.ativo {
  background: var(--azul-1);
  border-color: var(--azul-1);
  color: white;
}

.botao-estado.bloqueado {
  color: var(--vermelho);
  border-color: rgba(209, 39, 63, 0.3);
  background: rgba(209, 39, 63, 0.05);
  cursor: not-allowed;
}

.bloco {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -34px rgba(26, 63, 174, 0.3);
}

.bloco h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 16px;
}

.linha-cartorio {
  padding: 12px 0;
  border-bottom: 1px solid var(--borda);
}

.linha-cartorio:last-child {
  border-bottom: none;
}

.linha-cartorio .nome-cartorio {
  font-weight: 700;
  color: var(--ink);
}

.linha-cartorio .detalhe-cartorio {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.linha-orgaos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.linha-orgaos label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
  color: var(--ink);
  letter-spacing: normal;
}

.linha-orgaos input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--azul-1);
}

.linha-consentimento {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
}

.linha-consentimento input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--azul-1);
}

.linha-consentimento span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: normal;
}

.linha-dois-botoes {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.linha-dois-botoes button {
  width: auto;
  flex: 1;
}

button.secundario-forte {
  background: rgba(255, 255, 255, 0.85);
  color: var(--azul-2);
  border: 1.5px solid var(--line);
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

button.secundario-forte:hover {
  border-color: var(--azul-1);
}

.link-correcao {
  display: inline-block;
  margin-top: 6px;
  color: var(--vermelho);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.link-correcao:hover {
  text-decoration: underline;
}

.correcoes-do-cartorio {
  margin: 8px 0 0;
  padding-left: 2px;
}

.correcoes-do-cartorio .item-correcao {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.abas-filtro {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.aba-filtro {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.aba-filtro.ativa {
  background: rgba(255, 255, 255, 0.9);
  color: var(--azul-2);
  border-color: var(--azul-1);
}

.aba-filtro.aba-buscar-agora {
  background: var(--vermelho);
  color: white;
  border-color: var(--vermelho);
}

.aba-filtro.aba-buscar-agora:hover,
.aba-filtro.aba-buscar-agora.ativa {
  background: #b31f34;
  color: white;
  border-color: #b31f34;
}

.linha-processo-classe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.linha-processo-classe > div {
  flex: 1;
  min-width: 100px;
}

.lista-tags-filtro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-filtro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--azul-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 13px;
  font-weight: 600;
}

.tag-filtro button {
  width: 18px;
  height: 18px;
  line-height: 16px;
  border-radius: 50%;
  border: none;
  background: rgba(209, 39, 63, 0.15);
  color: var(--vermelho);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.tag-filtro button:hover {
  background: var(--vermelho);
  color: white;
}

.rodape-carregando {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

@media (max-width: 640px) {
  header.topo { padding: 12px 18px; flex-wrap: wrap; row-gap: 8px; }
  header.topo .marca span { display: none; }
  .cartao { padding: 30px 22px; }
  .container-painel { padding: 0 16px; margin: 24px auto; }
  .bloco { padding: 22px; }
}

[hidden] {
  display: none !important;
}
