:root {
  color-scheme: light;
  --forest: #0b3d30;
  --forest-deep: #072b22;
  --green: #0f6f57;
  --green-hover: #0a513f;
  --sage: #d8e2cf;
  --ivory: #f7f5e8;
  --paper: #fbfcf8;
  --orange: #f09f28;
  --text: #15231e;
  --muted: #62736a;
  --border: #c8d3c2;
  --error: #a33a2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--sage);
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(470px, 1.1fr);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 72px);
  color: var(--ivory);
  background:
    radial-gradient(circle at 80% 45%, rgba(216, 226, 207, 0.2), transparent 23%),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(247, 245, 232, 0.05) 76px 77px),
    linear-gradient(125deg, var(--forest-deep), #315d49 76%, #66866b);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -44px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(247, 245, 232, 0.28);
  border-radius: 50%;
}

.brand-lockup,
.brand-copy,
.brand-note { position: relative; z-index: 1; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 6px;
  border-radius: 12px;
  background: rgba(247, 245, 232, 0.92);
}

.brand-lockup div { display: grid; gap: 4px; }
.brand-lockup strong { font-size: 19px; letter-spacing: 0.01em; }
.brand-lockup span { font-size: 10px; letter-spacing: 0.16em; color: #c7d4c3; }

.brand-copy { max-width: 570px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: 0.18em; color: #d8e2cf; }
.brand-copy h1 { margin: 0; font: 700 clamp(36px, 4vw, 58px)/1.18 "Songti SC", STSong, serif; }
.brand-copy > p:last-child { max-width: 520px; margin: 24px 0 0; font-size: 17px; line-height: 1.9; color: #d2ddd0; }
.brand-note { font-size: 13px; color: #b9c9bb; }

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 44%), var(--sage);
}

.login-card {
  width: min(100%, 430px);
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(15, 111, 87, 0.14);
  border-radius: 16px;
  background: rgba(251, 252, 248, 0.96);
  box-shadow: 0 24px 70px rgba(7, 43, 34, 0.12);
}

.mobile-brand { display: none; }
.kicker { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.login-card h2 { margin: 0; font: 700 32px/1.25 "Songti SC", STSong, serif; }
.helper { margin: 10px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-card form { display: grid; gap: 9px; }
.login-card label { margin-top: 9px; font-size: 14px; font-weight: 600; }

.login-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}

.login-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 111, 87, 0.16);
}

.login-card button {
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 15px/1 inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 111, 87, 0.2);
  transition: background 140ms, transform 140ms;
}

.login-card button:hover { background: var(--green-hover); }
.login-card button:active { transform: translateY(1px); }
.notice, .error { min-height: 0; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.notice:not(:empty) { margin: -8px 0 10px; padding: 10px 12px; background: #e4efe0; color: #245642; }
.error:not(:empty) { margin: -8px 0 10px; padding: 10px 12px; background: #f7e7e3; color: var(--error); }
.support { margin: 22px 0 0; text-align: center; color: #7a8a81; font-size: 12px; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--green); font-weight: 700; }
  .mobile-brand img { width: 32px; height: 32px; object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
