:root {
  --bg: #050506;
  --panel: rgba(16, 16, 20, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --muted: #a7a7ad;
  --red: #b8121f;
  --red-hot: #e01d2e;
  --green: #5ad48a;
  --amber: #e7b95b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(184, 18, 31, 0.2), transparent 28rem),
    var(--bg);
}

a { color: inherit; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

.login-panel {
  width: min(430px, 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 900;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1; text-transform: uppercase; }
p { color: var(--muted); line-height: 1.55; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-2 { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.32);
  font: inherit;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(224, 29, 46, 0.72);
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-hot), #8e101a);
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 12px;
  cursor: pointer;
}

.button.secondary, button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.alert {
  border: 1px solid rgba(231, 185, 91, 0.35);
  background: rgba(231, 185, 91, 0.1);
  color: #ffe0a2;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.alert.bad {
  border-color: rgba(224, 29, 46, 0.45);
  background: rgba(184, 18, 31, 0.14);
  color: #ffb9bf;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th, td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: var(--muted);
  vertical-align: top;
}

th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
