@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@600;700;800&display=swap');

:root {
  --bg: #070b12;
  --bg-deep: #05080e;
  --card: rgba(14, 22, 36, 0.92);
  --border: rgba(96, 165, 250, 0.14);
  --text: #e8eef8;
  --muted: #7b8ba5;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --accent-strong: #60a5fa;
  --ok: #34d399;
  --danger: #f87171;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1220 0%, var(--bg) 40%, var(--bg-deep) 100%);
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok-text { color: var(--ok); }

.brand {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand span { color: var(--accent-strong); }

.login-body { display: grid; place-items: center; padding: 32px 16px; }
.login-wrap {
  width: min(960px, 100%);
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .login-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
}
.login-card { padding: 28px; }
.login-card h2 { margin: 0 0 8px; font-family: Outfit, sans-serif; font-weight: 700; }
.hint { margin-top: 14px; font-size: 12px; color: var(--muted); }

.shell {
  min-height: 100vh;
  display: grid;
}
@media (min-width: 900px) {
  .shell { grid-template-columns: 240px 1fr; }
}
aside {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(14px);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 900px) {
  aside { border-bottom: 0; border-right: 1px solid var(--border); min-height: 100vh; }
}
.brand-block .brand { font-size: 28px; }
.tag { font-size: 12px; color: var(--muted); margin-top: 4px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 900px) { nav { flex-direction: column; } }
nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}
nav a:hover { background: rgba(59, 130, 246, 0.08); color: var(--text); }
nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}
.aside-foot { margin-top: auto; display: grid; gap: 10px; }
main { padding: 28px 20px; max-width: 960px; }
main h1 { font-family: Outfit, sans-serif; margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.tip code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: #05080e;
  border-radius: 10px;
  color: var(--accent-strong);
  word-break: break-all;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 6px;
}
input {
  width: 100%;
  border: 1px solid var(--border);
  background: #05080e;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  background: #0a1220;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
  color: #b6c3d9;
}
.check input { width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: #2563eb; }
.btn.ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.btn.danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
.btn.xs { padding: 6px 10px; font-size: 12px; }
.inline { display: inline; }

.grid2, .grid3 { display: grid; gap: 10px 14px; }
@media (min-width: 700px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
}
.span2 { grid-column: 1 / -1; }
.end { display: flex; align-items: end; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 16, 28, 0.85);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  vertical-align: middle;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(59, 130, 246, 0.06);
}
.right { text-align: right; white-space: nowrap; }
.pill {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert.ok {
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
}
.alert.err {
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
