:root {
  --bg: #0f1419;
  --card: #1a2332;
  --line: #2b3848;
  --text: #e7eef7;
  --muted: #8aa0b5;
  --accent: #2f80ed;
  --danger: #e85d5d;
  --ok: #2ecc71;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1b2a44, transparent), var(--bg);
  color: var(--text);
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.login-card { width: min(380px, 92vw); display: grid; gap: 8px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(26,35,50,.9);
  position: sticky;
  top: 0;
}
.top a { color: var(--muted); text-decoration: none; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  padding: 14px;
}
h1,h2 { margin: 0 0 10px; }
label { display:block; margin: 8px 0 4px; color: var(--muted); font-size: 13px; }
input, select, textarea, button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #101826;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
button {
  background: var(--accent);
  border: none;
  cursor: pointer;
  margin-top: 8px;
  font-weight: 600;
}
button.secondary { background: #334155; }
button.danger { background: var(--danger); }
.row { display:flex; gap:8px; align-items:center; }
.row > * { flex: 1; }
.muted { color: var(--muted); font-size: 13px; }
.error { background:#3a1c1c; color:#ffb4b4; padding:8px 10px; border-radius:8px; }
.box {
  background:#0d1520;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  max-height:180px;
  overflow:auto;
  white-space:pre-wrap;
  font-size:12px;
}
table { width:100%; border-collapse: collapse; margin-top:10px; font-size:13px; }
th, td { border-bottom:1px solid var(--line); padding:6px 4px; text-align:left; }
#accountList { min-height: 180px; }
#toast {
  position: fixed; right: 16px; bottom: 16px; background:#111827; border:1px solid var(--line);
  padding:10px 14px; border-radius:10px; display:none; max-width:360px; z-index:9;
}
.filebtn {
  display:inline-flex; align-items:center; justify-content:center;
  background:#334155; border-radius:10px; padding:10px 12px; cursor:pointer; margin-top:8px; color:var(--text);
}
.filebtn input { display:none; }
hr { border:none; border-top:1px solid var(--line); margin:14px 0; }
