:root {
  --primary: #b08951;
  --primary-hover: #9a7544;
  --text: #1c2230;
  --muted: #8b909a;
  --label: #4a4f59;
  --border: #e6e8ec;
  --link: #5b8def;
  --card: #ffffff;
  --focus: rgba(176, 137, 81, .22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #eef1f5;
}
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
}
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 16px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand .name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand .sys {
  font-size: 15px;
  font-weight: 500;
  color: #5f6673;
  margin-left: 2px;
}
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  padding: 12px 0 8px;
}
.hero {
  flex: 0 1 460px;
  max-width: 460px;
}
.hero h1 {
  font-size: clamp(40px, 4.4vw, 54px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1a2030;
}
.hero h1 .line2 {
  display: block;
  color: var(--primary);
  margin-top: 2px;
}
.hero .divider {
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  margin: 18px 0 12px;
}
.hero .tagline {
  color: #7a8190;
  font-size: 16px;
  margin-bottom: 32px;
}
.features { display: grid; gap: 20px; }
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 6px 16px rgba(31, 36, 48, .06);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #2a303c;
}
.feature span {
  color: #8b909a;
  font-size: 13px;
  line-height: 1.5;
}
.card {
  width: 400px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(31, 36, 48, .12);
  padding: 40px 36px 32px;
}
.card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2430;
}
.sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.6;
}
.field { margin-bottom: 18px; }
label {
  display: block;
  font-size: 14px;
  color: var(--label);
  margin-bottom: 8px;
  font-weight: 500;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .icon-left {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #9aa0aa;
  pointer-events: none;
}
.input-wrap .icon-right {
  position: absolute;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #9aa0aa;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.input-wrap .icon-right:hover { color: #6b7280; }
.input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.input-wrap input::placeholder { color: #b0b5bf; }
.input-wrap input:focus,
.field > input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}
.field > input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.field > input::placeholder { color: #b0b5bf; }
.row-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 13px;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}
.forgot {
  color: var(--link);
  text-decoration: none;
}
.forgot:hover { text-decoration: underline; }
button[type="submit"] {
  width: 100%;
  height: 46px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--primary-hover); }
.links {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.links a {
  color: var(--link);
  text-decoration: none;
  margin-left: 2px;
}
.links a:hover { text-decoration: underline; }
.hint {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.msg {
  margin-bottom: 14px;
  padding: .75rem 1rem;
  border-radius: 8px;
  display: none;
  font-size: .9rem;
}
.msg.err { display: block; background: #fef2f2; color: #b91c1c; }
.msg.ok { display: block; background: #ecfdf5; color: #047857; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #8b909a;
  font-size: 13px;
  padding-top: 4px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: #8b909a;
  text-decoration: none;
}
.footer-links a:hover { color: #6b7280; }
@media (max-width: 960px) {
  .page { padding: 16px; }
  .main {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-width: 460px;
    margin: 0 auto;
  }
  .hero {
    text-align: center;
    max-width: none;
    flex: none;
  }
  .hero .divider { margin-left: auto; margin-right: auto; }
  .features { text-align: left; }
  .card { width: 100%; }
  .footer { justify-content: center; text-align: center; }
  .footer-links { width: 100%; justify-content: center; gap: 16px; }
}
