:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", sans-serif;
  color: #203329;
  background: #f1f3e9;
  font-synthesis: none;
  --forest: #244b38;
  --forest-2: #356148;
  --leaf: #8ea465;
  --sun: #e6c45b;
  --paper: #fffef9;
  --canvas: #f1f3e9;
  --ink: #203329;
  --muted: #6c786f;
  --line: #dbe2d5;
  --red: #aa5647;
  --shadow: 0 18px 54px rgba(48, 76, 55, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(22px, 4vw, 58px);
  place-items: center;
  background:
    radial-gradient(circle at 8% 9%, rgba(142, 164, 101, .16), transparent 25%),
    radial-gradient(circle at 92% 91%, rgba(230, 196, 91, .13), transparent 24%),
    var(--canvas);
}

.login-card {
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(430px, 1.1fr);
  width: min(1100px, 100%);
  min-height: min(720px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(44, 74, 54, .08);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  color: #fff;
  background: var(--forest);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--forest);
  border-radius: 14px;
  background: var(--sun);
  box-shadow: inset 0 1px rgba(255, 255, 255, .65);
  font-size: 20px;
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .04em; }
.brand small { margin-top: 4px; color: rgba(255, 255, 255, .62); font-size: 11px; }

.brand-message {
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.brand-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f0d77e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
}

.brand-label::before { width: 26px; height: 2px; border-radius: 2px; background: var(--sun); content: ''; }
.brand-message h1 { margin: 20px 0 17px; font-size: clamp(32px, 3.1vw, 45px); line-height: 1.42; letter-spacing: .02em; }
.brand-message p { max-width: 390px; margin: 0; color: rgba(255, 255, 255, .66); font-size: 14px; line-height: 1.9; }

.leaf-shape {
  position: absolute;
  width: 290px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 100% 0 100% 0;
  pointer-events: none;
}
.leaf-one { top: 23%; right: -155px; transform: rotate(-22deg); }
.leaf-two { top: 43%; left: -180px; transform: rotate(28deg); }

.form-panel {
  display: flex;
  min-width: 0;
  padding: clamp(34px, 5vw, 74px) clamp(36px, 6vw, 88px) 32px;
  flex-direction: column;
  background: var(--paper);
}

.form-content { width: min(100%, 430px); margin: auto; }
.mobile-brand { display: none; }
.form-header { margin-bottom: 34px; }
.form-kicker { display: flex; align-items: center; gap: 8px; color: var(--forest-2); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.form-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(230, 196, 91, .18); }
.form-header h2 { margin: 14px 0 0; color: var(--ink); font-size: clamp(28px, 3vw, 35px); line-height: 1.4; letter-spacing: .01em; }
.form-header p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.form-error {
  margin-bottom: 19px;
  padding: 12px 14px;
  color: #8f4638;
  border: 1px solid rgba(170, 86, 71, .18);
  border-radius: 10px;
  background: #f7e6df;
  font-size: 12px;
  line-height: 1.55;
}

.field { display: block; margin-bottom: 20px; }
.field > span:first-child { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 15px; width: 19px; height: 19px; fill: none; stroke: #879289; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 50px 0 45px;
  color: var(--ink);
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input::placeholder { color: #a6afa8; }
.input-wrap input:hover { border-color: #b9c6b8; }
.input-wrap input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(142, 164, 101, .14); }
.input-wrap input[aria-invalid='true'] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(170, 86, 71, .1); }
.input-wrap input:read-only { background: #f0f2ec; }

.password-toggle { position: absolute; right: 8px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #879289; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--forest); background: #edf1e8; }
.password-toggle:focus-visible { outline: 2px solid var(--leaf); outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.submit-button {
  display: flex;
  width: 100%;
  height: 50px;
  margin-top: 28px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  border: 1px solid var(--forest);
  border-radius: 11px;
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(36, 75, 56, .18), inset 0 1px rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.submit-button:hover:not(:disabled) { background: var(--forest-2); box-shadow: 0 12px 25px rgba(36, 75, 56, .23); transform: translateY(-1px); }
.submit-button:active:not(:disabled) { transform: translateY(1px); }
.submit-button:focus-visible { outline: 3px solid rgba(230, 196, 91, .55); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .76; }
.submit-button > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.submit-button:hover:not(:disabled) > svg { transform: translateX(3px); }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .spinner { display: block; }
.submit-button.is-loading > svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.security-note { display: flex; margin: 17px 0 0; align-items: center; justify-content: center; gap: 7px; color: #89938c; font-size: 10px; }
.security-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.success-panel { padding: 34px 26px; text-align: center; outline: none; border: 1px solid rgba(44, 74, 54, .09); border-radius: 17px; background: var(--paper); box-shadow: 0 12px 34px rgba(48, 76, 55, .1); }
.success-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 18px; place-items: center; color: var(--forest); border-radius: 18px; background: #dce8d8; }
.success-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.success-panel h3 { margin: 0; font-size: 23px; }
.success-panel p { margin: 11px 0 7px; color: #53625a; font-size: 13px; }
.success-panel small { color: var(--muted); font-size: 11px; line-height: 1.6; }

footer { margin-top: auto; padding-top: 36px; color: #98a199; font-size: 10px; text-align: center; }

@media (max-width: 880px) {
  .login-page { padding: 24px; }
  .login-card { grid-template-columns: minmax(320px, .78fr) minmax(400px, 1.22fr); }
  .brand-panel { padding: 34px; }
  .form-panel { padding-inline: 44px; }
}

@media (max-width: 700px) {
  .login-page { display: block; min-height: 100svh; padding: 0; background: var(--paper); }
  .login-card { display: block; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100svh; padding: 28px 24px 24px; background: radial-gradient(circle at 100% 0, rgba(142, 164, 101, .15), transparent 29%), var(--paper); }
  .mobile-brand { display: flex; align-items: center; gap: 11px; }
  .mobile-brand .brand-mark { width: 42px; height: 42px; flex-basis: 42px; font-size: 18px; }
  .mobile-brand strong, .mobile-brand small { display: block; }
  .mobile-brand strong { font-size: 14px; }
  .mobile-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
  .form-content { margin: auto; padding: 58px 0 44px; }
  .form-header h2 { font-size: 29px; }
  footer { margin-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 后台统一排版规范：仅使用微软雅黑、14px、正常字重。 */
body,
body * {
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
