/* Identidade MH2 Telecom — padrão premium (login, painel, administração) */
:root {
  --navy-0: #000a1c;
  --navy-1: #00173e;
  --navy-2: #001f4f;
  --azul: #1098f0;
  --azul-2: #4db4ff;
  --verde: #a0d830;
  --ok: #3ddc84;
  --atencao: #f5a524;
  --alerta: #ff4d4f;
  --texto: #eaf2ff;
  --texto-2: #9fb3d1;
  --texto-3: #6b80a3;
  --vidro: rgba(6, 26, 62, .58);
  --vidro-forte: rgba(4, 18, 44, .82);
  --borda: rgba(16, 152, 240, .28);
  --borda-forte: rgba(16, 152, 240, .55);
  --raio: 14px;
  --f-titulo: 'Sora', system-ui, sans-serif;
  --f-texto: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--f-texto);
  color: var(--texto);
  background: radial-gradient(120% 90% at 70% 10%, var(--navy-2) 0%, var(--navy-1) 45%, var(--navy-0) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
/* Grade tática discreta ao fundo */
body.grade::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(16,152,240,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,152,240,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 650; letter-spacing: -.01em; margin: 0; }
a { color: var(--azul-2); }
.destaque { color: var(--azul); }
.traco { display: block; width: 44px; height: 2px; background: var(--verde); border-radius: 2px; margin-bottom: 14px; }
.mono { font-family: var(--f-mono); }
.sobre { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--texto-2); }

.vidro {
  background: var(--vidro);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 20px 60px rgba(0,6,20,.55), 0 0 40px rgba(16,152,240,.06);
}
/* Cantos de HUD */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 1.5px solid var(--azul); opacity: .7;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--raio); }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--raio); }

/* Formulários */
label.campo { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--texto-2); letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  font: 500 15px var(--f-texto); color: var(--texto);
  background: rgba(0, 10, 28, .55); border: 1px solid rgba(159,179,209,.18); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(16,152,240,.18); }
.botao {
  font: 650 14px var(--f-titulo); letter-spacing: .01em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.botao.primario { background: linear-gradient(180deg, #22a5f7, #0b84d6); color: #fff; box-shadow: 0 8px 24px rgba(16,152,240,.28); }
.botao.primario:hover { box-shadow: 0 10px 30px rgba(16,152,240,.42); }
.botao.secundario { background: rgba(16,152,240,.08); color: var(--texto); border-color: var(--borda); }
.botao.secundario:hover { border-color: var(--borda-forte); background: rgba(16,152,240,.14); }
.botao.perigo { background: rgba(255,77,79,.1); color: #ff8a8b; border-color: rgba(255,77,79,.35); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: .55; cursor: wait; }
.botao.pequeno { padding: 8px 12px; font-size: 12.5px; }
.erro-msg { color: #ff8a8b; font-size: 13px; min-height: 18px; }

/* Cabeçalho comum (painel e administração) */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(0,10,28,.9), rgba(0,10,28,0));
}
.topo img.logo { height: 26px; display: block; }
.usuario-chip { display: flex; align-items: center; gap: 12px; }
.usuario-chip .nome { font-weight: 700; font-size: 14px; }
.usuario-chip .cargo { font-size: 12px; color: var(--texto-2); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1.5px solid var(--borda-forte); background: var(--navy-2);
  display: grid; place-items: center; font: 650 14px var(--f-titulo); color: var(--azul-2);
}
.conteudo { position: relative; z-index: 1; padding: 8px clamp(16px, 4vw, 56px) 64px; max-width: 1600px; margin: 0 auto; }

/* Modal */
.modal-fundo {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(0,6,20,.7); backdrop-filter: blur(6px);
  animation: aparece .2s ease;
}
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: hidden auto; padding: 28px; scrollbar-width: thin; scrollbar-color: rgba(16,152,240,.35) transparent; }
.modal.hud::before, .modal.hud::after { display: none; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
