:root {
  --bg: #eceaee;
  --ink: #111318;
  --muted: #5c5a63;
  --panel: #fffcf9;
  --line: #d4d0da;
  --accent: #8a5a22;
  --accent-deep: #6c4518;
  --ok: #2c6b56;
  --danger: #9f3b32;
  --font: "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ded9e0 0%, var(--bg) 42%, #e7e4e0 100%);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
  padding: 28px 28px 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.lede, .current-site {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0 18px;
  border: 1px solid var(--ink);
}

.tab {
  border: none;
  background: transparent;
  height: 42px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.tab + .tab { border-left: 1px solid var(--ink); }

.tab.is-active {
  background: var(--ink);
  color: #f6f3ee;
}

.field { margin-bottom: 14px; }

label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus { border-color: var(--accent); }

.current-site { margin-bottom: 14px; }

.submit {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: none;
  background: var(--accent);
  color: #fffaf3;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.submit:hover { background: var(--accent-deep); }
.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--danger);
}

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