:root {
  --ink: #20251f;
  --muted: #7a8178;
  --paper: #f4f0e7;
  --panel: #fffdf8;
  --line: #dedbd2;
  --copper: #b8683a;
  --copper-dark: #884827;
  --sage: #70866d;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); min-height: 100vh; }
.login-stage { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 32px 7vw 30px; overflow: hidden; color: #fff8ed; background: var(--ink); }
.login-stage::before, .login-stage::after { position: absolute; content: ""; pointer-events: none; }
.login-stage::before { width: 430px; height: 430px; right: -120px; top: 10%; border: 1px solid rgba(240, 216, 187, .2); border-radius: 50%; box-shadow: 0 0 0 38px rgba(240, 216, 187, .04), 0 0 0 76px rgba(240, 216, 187, .03); }
.login-stage::after { width: 620px; height: 1px; right: -120px; bottom: 24%; transform: rotate(-32deg); transform-origin: right; background: rgba(240, 216, 187, .18); }
.stage-topline, .stage-footer, .panel-footer { display: flex; justify-content: space-between; gap: 16px; color: rgba(255, 248, 237, .52); font-size: 10px; letter-spacing: .18em; }
.stage-content { position: relative; z-index: 1; max-width: 610px; margin: auto 0; padding: 80px 0; }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 30px; border: 1px solid rgba(240, 216, 187, .44); border-radius: 15px 15px 5px 15px; color: #f7dfc2; font: 28px Georgia, "Songti SC", serif; }
.eyebrow { margin: 0 0 12px; color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.login-stage .eyebrow { color: #d9976d; }
h1, h2, p { margin: 0; }
h1 { max-width: 620px; font: 500 clamp(42px, 5vw, 76px)/1.08 Georgia, "Songti SC", serif; letter-spacing: -.02em; }
h1 em { color: #e3b98f; font-style: normal; }
.stage-copy { max-width: 425px; margin-top: 28px; color: rgba(255, 248, 237, .66); font-size: 14px; line-height: 1.9; }
.service-note { display: flex; align-items: center; gap: 10px; max-width: 425px; margin-top: 44px; padding-top: 15px; border-top: 1px solid rgba(240, 216, 187, .2); color: rgba(255, 248, 237, .62); font-size: 11px; }
.service-note strong { margin-left: auto; color: #f2c29b; font-size: 11px; letter-spacing: .08em; }
.service-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ec392; box-shadow: 0 0 0 5px rgba(158, 195, 146, .12); }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 32px 6vw 30px; background: var(--panel); }
.login-panel-inner { width: min(370px, 100%); margin: auto; }
.login-heading h2 { font: 500 32px/1.2 Georgia, "Songti SC", serif; letter-spacing: .01em; }
.login-heading > p:last-child { margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-form { margin-top: 38px; }
.login-form label { display: grid; gap: 8px; margin-top: 18px; color: #4d554c; font-size: 12px; font-weight: 700; }
.login-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: #fff; transition: .18s ease; }
.login-form input:focus { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(184, 104, 58, .12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 68px; }
.password-toggle { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); padding: 5px 7px; border: 0; background: transparent; color: var(--copper-dark); font-size: 11px; }
.login-error { min-height: 18px; margin-top: 13px; color: #a34e3e; font-size: 12px; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 50px; margin-top: 13px; padding: 0 16px 0 20px; border: 0; border-radius: 7px; background: var(--copper); color: #fffaf2; font-weight: 700; box-shadow: 0 12px 22px rgba(184, 104, 58, .18); transition: .18s ease; }
.login-submit:hover:not(:disabled) { background: var(--copper-dark); transform: translateY(-1px); }
.login-submit b { font: 24px Georgia, serif; font-weight: 400; }
.login-submit:disabled { cursor: wait; opacity: .72; }
.login-submit.loading b { animation: arrow-pulse 1s infinite; }
.login-help { margin-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.panel-footer { color: #a1a59e; }
@keyframes arrow-pulse { 50% { transform: translateX(5px); } }
@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-stage { min-height: 330px; padding: 24px 26px 20px; }
  .stage-content { padding: 30px 0 36px; }
  .stage-content h1 { font-size: clamp(36px, 11vw, 58px); }
  .stage-copy { display: none; }
  .service-note { margin-top: 28px; }
  .login-panel { min-height: calc(100vh - 330px); padding: 38px 26px 24px; }
  .login-panel-inner { margin: auto; }
}
@media (max-width: 460px) {
  .stage-topline span:last-child, .stage-footer span:last-child { display: none; }
  .login-stage { min-height: 286px; }
  .login-panel { min-height: calc(100vh - 286px); }
}
