:root {
  color-scheme: dark;
  --bg: #0d1110;
  --surface: #151a18;
  --surface-2: #1b211f;
  --border: #303936;
  --text: #f2f5f3;
  --muted: #a2aca7;
  --accent: #42b883;
  --accent-strong: #65d59f;
  --danger: #ff8d8d;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e2b84b 50%, #e96d6d);
}

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

.login-panel {
  width: min(460px, 100%);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 22px 60px rgb(0 0 0 / 36%);
}

.login-panel > header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #07130d;
  font-size: 20px;
  font-weight: 900;
}

.login-panel header div { display: grid; gap: 2px; }
.login-panel header strong { font-size: 16px; }
.login-panel header small { color: var(--muted); font-size: 11px; }

.login-heading { padding: 30px 30px 18px; }
.login-heading > span { color: var(--accent-strong); font-size: 12px; font-weight: 800; }
.login-heading h1 { margin: 7px 0 6px; font-size: 27px; line-height: 1.2; }
.login-heading p { margin: 0; color: var(--muted); font-size: 15px; }

form { display: grid; gap: 18px; padding: 8px 30px 32px; }
label { display: grid; gap: 8px; }
label span { color: #cbd2ce; font-size: 14px; font-weight: 700; }
input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #46504c;
  border-radius: 4px;
  outline: 0;
  background: #0f1412;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(66 184 131 / 16%); }

button {
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #07130d;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
button:hover { background: var(--accent-strong); }
button:disabled { cursor: wait; opacity: .65; }

#login-error {
  margin: -3px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: rgb(255 94 94 / 9%);
  color: var(--danger);
  font-size: 14px;
}

.login-panel > footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.login-panel > footer span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(66 184 131 / 70%);
}
