/* 重置密码页 —— 与桌面端同一套暗色视觉 */
:root {
  --bg: #0b0f14;
  --card: #161e29;
  --line: #24303f;
  --text: #e8eef6;
  --dim: #93a2b5;
  --faint: #6b7a8d;
  --accent: #3b82f6;
  --red: #ff6b60;
  --green: #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.card {
  width: min(400px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

h1 { margin: 0 0 6px; font-size: 19px; }
.sub { margin: 0 0 22px; color: var(--dim); font-size: 13px; }

form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; color: var(--dim); }

input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121821;
  color: var(--text);
  font: inherit;
  outline: none;
}
input:focus { border-color: var(--accent); }

.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }

.captcha {
  flex: none;
  width: 120px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef4ff;
  cursor: pointer;
  overflow: hidden;
}
.captcha svg { display: block; width: 100%; height: 100%; }

.send {
  flex: none;
  padding: 0 14px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1b2431;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.send:disabled { opacity: .5; cursor: not-allowed; }

.primary {
  height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.primary:disabled { opacity: .6; cursor: not-allowed; }

.message { margin: 0; min-height: 20px; font-size: 13px; color: var(--dim); }
.message.error { color: var(--red); }
.message.ok { color: var(--green); }

.back {
  display: inline-block;
  margin-top: 18px;
  color: var(--faint);
  font-size: 13px;
  text-decoration: none;
}
.back:hover { color: var(--text); }
