:root {
  /* ===== 暖色底：宣纸 | 米白 | 纯白 ===== */
  --canvas: #faf7f2;
  --canvas-2: #f4efe7;
  --surface: #ffffff;
  --surface-warm: #fffdfb;

  /* ===== 暖调文字：暖近黑 → 暖灰 → 浅暖灰 ===== */
  --ink: #1e1a16;
  --ink-soft: #6b6156;
  --ink-faint: #a79c8d;

  /* ===== 暖调分隔线（棕调，不用冷蓝） ===== */
  --line: rgba(72, 56, 38, 0.1);
  --line-strong: rgba(72, 56, 38, 0.16);

  /* ===== 主色：赭铜（呼应敦煌土红）+ 石黄辅助 ===== */
  --accent: #c0703c;
  --accent-deep: #9a5326;
  --accent-soft: #fbf1e8;
  --gold: #d9a441;

  /* ===== 深色标题：暖褐，替代原深靛 ===== */
  --umber: #2e2016;

  /* ===== 语义色（暖调偏移，避免冷绿冷红） ===== */
  --ok: #4f7a52;
  --ok-bg: #eff5ec;
  --danger: #b4462f;

  /* ===== 圆角与阴影（阴影带棕调，不用冷灰） ===== */
  --radius-lg: 22px;
  --radius-md: 13px;
  --shadow-card: 0 18px 46px -20px rgba(72, 52, 30, 0.18), 0 2px 6px rgba(72, 52, 30, 0.04);
  --shadow-soft: 0 2px 8px rgba(72, 52, 30, 0.05);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- 左侧品牌光晕（暖色） ---------- */

.brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 44px 30px;
  background: linear-gradient(158deg, #fdf6ec 0%, #fbf2e6 42%, #fdfaf5 100%);
}

.brand::before,
.brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* 左上：石黄柔光 */
.brand::before {
  width: 540px;
  height: 540px;
  left: -160px;
  top: -180px;
  background: radial-gradient(circle at 50% 50%, rgba(217, 164, 65, 0.26), rgba(217, 164, 65, 0) 66%);
}

/* 右下：赭铜柔光 */
.brand::after {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -150px;
  background: radial-gradient(circle at 50% 50%, rgba(192, 112, 60, 0.14), rgba(192, 112, 60, 0) 70%);
}

.brand > * { position: relative; z-index: 1; }

.brand__logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__logo img {
  width: 36px;
  height: auto;
  display: block;
  border-radius: 9px;
}

.brand__wordmark {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--umber);
}

.brand__body {
  max-width: 340px;
  padding-bottom: 28px;
}

.brand__title {
  margin: 0 0 13px;
  font-size: 33px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--umber);
}

/* 强调词用赭铜，替代原亮蓝 */
.brand__title span { color: var(--accent); }

.brand__lede {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 26em;
}

.brand__meta {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- 右侧登录卡 ---------- */

.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 26px;
}

.card {
  width: 100%;
  max-width: 336px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-card);
}

.card__eyebrow {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.card__title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card__sub {
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.field { display: block; margin-bottom: 13px; }

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #f8f4ee;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.field input::placeholder { color: var(--ink-faint); }

.field input:hover { background: #f4eee6; }

.field input:focus {
  outline: none;
  background: #ffffff;
  border-color: rgba(192, 112, 60, 0.5);
  box-shadow: 0 0 0 3px rgba(192, 112, 60, 0.13);
}

.field input[aria-invalid="true"] {
  border-color: rgba(180, 70, 47, 0.55);
  background: #fffaf8;
  box-shadow: 0 0 0 3px rgba(180, 70, 47, 0.08);
}

.form-error {
  margin: 0 0 11px;
  font-size: 11.5px;
  color: var(--danger);
}

.btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #d08650, var(--accent));
  box-shadow: 0 8px 18px -8px rgba(192, 112, 60, 0.6);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    filter 0.18s var(--ease);
}

.btn:hover { filter: brightness(1.04); box-shadow: 0 11px 21px -10px rgba(192, 112, 60, 0.7); }
.btn:active { transform: translateY(1px) scale(0.994); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }

.card__foot {
  margin: 19px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.card__foot a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: none;
  margin-left: 3px;
}

.card__foot a:hover { text-decoration: underline; }

.form-note {
  margin: 13px 0 0;
  min-height: 15px;
  font-size: 10.5px;
  text-align: center;
  color: var(--ink-faint);
}

.form-note[data-tone="ok"] { color: var(--ok); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .brand { padding: 30px 26px 6px; }
  .brand::before { width: 400px; height: 400px; left: -140px; top: -170px; }
  .brand__body { padding: 34px 0 0; }
  .brand__title { font-size: 26px; }
  .brand__meta { display: none; }
  .panel { padding: 26px 20px 44px; align-items: flex-start; }
  .card { padding: 26px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
