:root {
  --fundo-base: #070a12;
  --fundo-sidebar: #0d1322;
  --fundo-card: #11192d;
  --fundo-hover: #1b2642;
  --borda-cor: rgba(255, 255, 255, 0.12);
  
  --texto-claro: #f8fafc;
  --texto-medio: #94a3b8;
  --texto-suave: #64748b;
  
  --azul-destaque: #2563eb;
  --azul-brilho: #3b82f6;
  --sucesso: #10b981;
  --perigo: #ef4444;
  
  --raio: 14px;
  --sombra: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--fundo-base);
  color: var(--texto-claro);
  min-height: 100vh;
  overflow-x: hidden;
}

/* tela de login com imagem de fundo da ponte estaiada */
.tela-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    linear-gradient(135deg, rgba(7, 10, 18, 0.72) 0%, rgba(13, 19, 34, 0.85) 100%),
    url('/imagens/fundo-login.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.tela-login.escondida {
  display: none;
}

.card-login {
  width: 100%;
  max-width: 420px;
  background: rgba(13, 19, 34, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 38px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(37, 99, 235, 0.15);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topo-login {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.icone-marca.grande {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.icone-marca.grande svg {
  width: 28px;
  height: 28px;
}

.topo-login h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.topo-login p {
  font-size: 0.85rem;
  color: var(--texto-medio);
}

.formulario-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campo-login {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo-login label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-medio);
}

.input-com-icone {
  position: relative;
  display: flex;
  align-items: center;
}

.input-com-icone svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  stroke: var(--texto-suave);
  transition: stroke 0.2s ease;
}

.input-com-icone input {
  width: 100%;
  background: rgba(7, 10, 18, 0.75);
  border: 1px solid var(--borda-cor);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  color: var(--texto-claro);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-com-icone input:focus {
  border-color: var(--azul-brilho);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(7, 10, 18, 0.9);
}

.input-com-icone input:focus + svg,
.input-com-icone input:focus ~ svg {
  stroke: var(--azul-brilho);
}

.mensagem-erro {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: center;
}

.mensagem-erro.ativa {
  display: block;
}

.botao-entrar {
  background: linear-gradient(135deg, var(--azul-destaque), var(--azul-brilho));
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  margin-top: 6px;
}

.botao-entrar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.botao-entrar svg {
  width: 18px;
  height: 18px;
}

.rodape-login {
  text-align: center;
  border-top: 1px solid var(--borda-cor);
  padding-top: 16px;
}

.selo-seguranca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.selo-seguranca svg {
  width: 14px;
  height: 14px;
  stroke: var(--sucesso);
}

/* estrutura do painel */
.aplicativo {
  display: none;
  min-height: 100vh;
}

.aplicativo.autenticado {
  display: flex;
}

.barra-lateral {
  width: 250px;
  background: var(--fundo-sidebar);
  border-right: 1px solid var(--borda-cor);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px 8px;
  border-bottom: 1px solid var(--borda-cor);
}

.icone-marca {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.icone-marca svg {
  width: 20px;
  height: 20px;
}

.texto-marca h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.texto-marca span {
  font-size: 0.68rem;
  color: var(--texto-suave);
  text-transform: uppercase;
  font-weight: 600;
}

.menu-navegacao {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.item-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--texto-medio);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.item-menu svg {
  width: 18px;
  height: 18px;
  stroke: var(--texto-medio);
}

.item-menu:hover {
  background: var(--fundo-hover);
  color: var(--texto-claro);
}

.item-menu.ativo {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-left: 3px solid var(--azul-brilho);
}

.item-menu.ativo svg {
  stroke: #60a5fa;
}

.rodape-lateral {
  padding-top: 16px;
  border-top: 1px solid var(--borda-cor);
}

.usuario-logado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--borda-cor);
}

.dados-usuario .nome-usuario {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--texto-claro);
}

.dados-usuario .cpf-usuario {
  font-size: 0.7rem;
  color: var(--texto-suave);
}

.botao-sair {
  background: transparent;
  border: none;
  color: var(--texto-suave);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.botao-sair:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

.botao-sair svg {
  width: 18px;
  height: 18px;
}

.conteudo-principal {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1400px;
}

.cabecalho-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titulo-secao h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.titulo-secao p {
  font-size: 0.9rem;
  color: var(--texto-medio);
  margin-top: 2px;
}

.painel-conteudo {
  flex: 1;
}

.cartao-vazio {
  background: var(--fundo-card);
  border: 1px solid var(--borda-cor);
  border-radius: var(--raio);
  padding: 32px;
  box-shadow: var(--sombra);
}

.cartao-vazio h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cartao-vazio p {
  color: var(--texto-medio);
  font-size: 0.9rem;
}
