
:root{
  --bg:#0E0E0E;
  --panel:#191919;
  --text:#EDEDED;
  --muted:#9CA3AF;
  --primary:#C51825;
  --primary-600:#aa141f;
  --input:#0f0f10;
  --border:#2a2a2a;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  background:var(--bg);
  color:var(--text);
}
.container-center{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:24px;
}
.card{
  width:340px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  box-shadow:0 10px 40px rgba(0,0,0,.35);
}
.logo-wrap{
  display:flex; align-items:center; justify-content:center;
  margin-bottom:10px;
}
.logo{
  height:64px; width:auto; filter: drop-shadow(0 0 18px rgba(255,0,0,.35));
}
h1{font-size:22px;text-align:center;margin:8px 0 18px 0}
label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.input{
  width:100%; padding:12px 14px; border-radius:10px;
  background:var(--input); border:1px solid var(--border); color:var(--text);
  outline:none; transition: border .2s ease;
}
.input:focus{border-color:#3b82f6}
.field{margin-bottom:14px}
.row{display:flex;gap:10px}
.btn{
  width:100%; padding:12px 14px; border-radius:10px; border:0; cursor:pointer;
  background:var(--primary); color:white; font-weight:600;
}
.btn:hover{background:var(--primary-600)}
.link{display:block;text-align:center;margin-top:12px;color:var(--muted);font-size:12px;text-decoration:none}
.link:hover{color:#fff; text-decoration:underline}
.error{background:#3b0a0f;border:1px solid #7f1d1d;color:#fecaca;padding:10px;border-radius:10px;margin-bottom:12px}
.success{background:#072d1d;border:1px solid #115e3b;color:#bbf7d0;padding:10px;border-radius:10px;margin-bottom:12px}

.header{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--panel); border-bottom:1px solid var(--border);
  padding:10px 16px; position:sticky; top:0; z-index:10;
}
.header .brand{display:flex; align-items:center; gap:10px; font-weight:700}
.header .brand img{height:28px}
.header .user{font-size:14px; color:var(--muted)}
.layout{display:flex; min-height:calc(100vh - 56px)}
.sidebar{
  width:240px; background:var(--panel); border-right:1px solid var(--border);
  padding:16px; position:sticky; top:56px; height:calc(100vh - 56px)
}
.sidebar a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px; color:var(--text); text-decoration:none;
  border:1px solid transparent;
}
.sidebar a.active, .sidebar a:hover{
  background:#111111; border-color:var(--border)
}
.content{flex:1; padding:20px}
.card-inline{background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:16px}
.table{width:100%; border-collapse:collapse; font-size:14px}
.table th,.table td{border-bottom:1px solid var(--border); padding:10px; text-align:left}
.badge{display:inline-block; padding:4px 8px; font-size:12px; border-radius:999px; background:#111; border:1px solid var(--border)}
