:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #101418;
  --muted: #6d7885;
  --line: #e5e9ef;
  --accent: #1f8fff;
  --accent-hover: #0d7bf0;
  --danger: #d83a52;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "SF Pro Text", -apple-system, sans-serif;
  background: var(--bg);
}
.topbar {
  height: 64px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}
.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu a,
.link-btn {
  border: 0;
  background: transparent;
  color: #374250;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.container {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
h2 {
  margin: 0;
  font-size: 24px;
}
.hint {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.micro {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 8px;
}
input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d7dee8;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 143, 255, 0.12);
}
button {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
}
button:hover {
  background: var(--accent-hover);
}
.status {
  min-height: 18px;
  margin-top: 10px;
  color: #1e7a45;
  font-size: 13px;
}
.status.error {
  color: var(--danger);
}
.result {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafbfd;
  color: #4b5663;
  font-size: 12px;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
code {
  background: #f1f4f8;
  border-radius: 6px;
  padding: 2px 6px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-wrap .card {
  width: min(420px, 100%);
}
.error {
  color: var(--danger);
  margin: 8px 0;
}
@media (max-width: 680px) {
  .topbar {
    padding: 0 14px;
  }
  .container {
    margin: 22px auto;
  }
  .card {
    padding: 18px;
  }
  h2 {
    font-size: 20px;
  }
}
