/* 登录页：手机优先，暖白底 + 深红主色，与 gmweb 的 app.css 同一套颜色。 */
:root {
  --bg: #f4f1ea;
  --ink: #1c1915;
  --muted: #6e675e;
  --card: #fffdf8;
  --line: #e4ddd2;
  --accent: #8b3a2f;
  --accent-ink: #fff8f4;
  --danger: #9b2c2c;
  --shadow: 0 8px 24px rgba(40, 28, 16, 0.08);
  --radius: 16px;
  --font: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.wrap {
  width: 100%;
  max-width: 420px;
  padding: 32px 20px 48px;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--accent);
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.note b { color: var(--ink); font-weight: 650; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field span { font-size: 13px; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 58, 47, 0.12);
}

button.primary {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
button.primary:disabled { opacity: 0.55; }

.msg {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8e8e6;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
}
.msg[hidden] { display: none; }
form[hidden], [hidden] { display: none !important; }

