:root {
  color-scheme: dark;
  --bg: #080c13;
  --panel: #101824;
  --panel-strong: #152235;
  --text: #eef4ff;
  --muted: #93a1b5;
  --line: #27384f;
  --blue: #2f7af0;
  --blue-strong: #1f63d6;
  --green: #39bf6b;
  --red: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

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

.login-panel {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 12px;
}

.form-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  outline: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 122, 240, 0.18);
}

.primary-button {
  min-height: 52px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--blue-strong);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status-text {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.status-text.ok {
  color: var(--green);
}

.status-text.error {
  color: var(--red);
}

.login-hint {
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(47, 122, 240, 0.08);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .login-shell {
    align-items: stretch;
    padding: 16px;
  }

  .login-panel {
    align-self: center;
    padding: 22px;
  }
}
