:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#8aa0c6;
  --text:#e7eefc;
  --border:rgba(255,255,255,.08);
  --ok:#2dd4bf;
  --warn:#fbbf24;
  --bad:#fb7185;
  --btn:#2563eb;
  --btn2:#1d4ed8;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 10% 0%, #14224a 0%, var(--bg) 55%);
  color:var(--text);
}
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.brand{
  display:flex; flex-direction:column; gap:2px;
}
.brand h1{
  font-size:18px; margin:0; letter-spacing:.2px;
}
.brand span{
  color:var(--muted); font-size:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  background:linear-gradient(180deg,var(--btn),var(--btn2));
  color:white;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media(min-width: 920px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .span-2{ grid-column: span 2; }
}
.card{
  background: rgba(17,26,46,.75);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  backdrop-filter: blur(8px);
}
.card h2{
  margin:0 0 10px 0;
  font-size:14px;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.2px;
}
.kpis{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
@media(min-width: 520px){
  .kpis{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.kpi{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
.kpi .label{ color:var(--muted); font-size:12px; }
.kpi .value{ font-size:22px; margin-top:6px; font-weight:700; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
}
.dot{
  width:10px;height:10px;border-radius:99px;background:var(--ok);
  box-shadow:0 0 0 4px rgba(45,212,191,.12);
}
.dot.warn{ background: var(--warn); box-shadow:0 0 0 4px rgba(251,191,36,.12); }
.dot.bad{ background: var(--bad); box-shadow:0 0 0 4px rgba(251,113,133,.12); }
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  font-size:13px;
}
.table th{
  text-align:left;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-weight:600;
}
.table tr:last-child td{ border-bottom:none; }
.muted{ color:var(--muted); font-size:12px; }
.footer{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.2);
  color:var(--text);
  outline:none;
}
.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.center{
  min-height: calc(100vh - 56px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.login-card{
  width: min(420px, 92vw);
}
