:root {
  --paper: #f0ede3; --paper-2: #faf8f1; --paper-3: #e8e3d5;
  --ink: #17211c; --ink-2: #2b3a33; --muted: #5f6358; --muted-2: #686c60;
  --line: #d6d0bf; --line-strong: #b7b09b;
  --pine: #14251f; --pine-2: #1d342b; --rail-ink: #e9e5d8; --rail-muted: #a4afa3;
  --seal: #a93426; --jade: #3e6b5b; --amber: #8a5e1d;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --data: "Bahnschrift", "DIN Alternate", "Cascadia Mono", "Consolas", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--seal); color: var(--paper-2); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

.login { min-height: 100%; display: grid; grid-template-columns: minmax(520px, 1.08fr) minmax(440px, .92fr); }
.login-brand {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 52px 26px; overflow: hidden;
  background: var(--pine); color: var(--rail-ink);
}
.login-brand::after {
  content: ""; position: absolute; right: 56px; top: 104px; width: 1px; height: 340px;
  background: rgba(233,229,216,.18);
}
.lb-top { display: flex; align-items: center; gap: 13px; }
.lb-mark {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(240,237,227,.55); color: var(--paper);
  font-family: var(--serif); font-size: 23px; line-height: 1;
  box-shadow: inset 0 0 0 4px var(--pine), inset 0 0 0 5px rgba(240,237,227,.35);
}
.lb-word b { display: block; font-family: var(--serif); font-size: 23px; letter-spacing: .16em; font-weight: 600; }
.lb-word span { display: block; margin-top: 1px; font-family: var(--data); font-size: 8px; letter-spacing: .18em; color: #93a095; }
.lb-copy { margin: auto 0; max-width: 610px; padding: 40px 0 30px; }
.lb-kicker { font-size: 10px; letter-spacing: .24em; color: #b8a686; margin-bottom: 18px; }
.lb-copy h1 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 52px); line-height: 1.38; font-weight: 600; letter-spacing: .02em; color: #f4f0e3; }
.lb-lede { margin-top: 18px; max-width: 470px; font-size: 12.5px; line-height: 1.9; color: #b9c2b7; }
.lb-points { list-style: none; margin: 34px 0 0; padding: 0; max-width: 500px; }
.lb-points li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 12px 0; border-top: 1px solid rgba(233,229,216,.13); }
.lb-points li:last-child { border-bottom: 1px solid rgba(233,229,216,.13); }
.lb-points li > span { font-family: var(--data); font-size: 9px; color: #c98978; padding-top: 3px; }
.lb-points b { display: block; font-size: 12px; font-weight: 500; color: #e9e5d8; }
.lb-points small { display: block; margin-top: 2px; font-size: 10px; color: #93a095; }
.lb-foot { display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: .08em; color: #7f8f83; }

.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 44px 64px 22px; background: var(--paper); }
.login-form-wrap { width: 100%; max-width: 392px; margin: auto; }
.lf-head { margin-bottom: 22px; }
.lf-kicker { font-size: 9px; letter-spacing: .22em; color: var(--seal); margin-bottom: 8px; }
.lf-head h2 { font-family: var(--serif); font-size: 32px; line-height: 1.3; font-weight: 600; }
.lf-head p { margin-top: 7px; font-size: 11px; line-height: 1.75; color: var(--muted); }
.lf-field { display: block; margin-bottom: 13px; }
.lf-field > span { display: block; margin-bottom: 5px; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.lf-field input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--paper-2); color: var(--ink); outline: none; font-size: 12.5px;
  transition: border-color .16s, background .16s;
}
.lf-field input:focus { border-color: var(--ink-2); background: #fdfbf5; }
.lf-pass { position: relative; }
.lf-pass input { padding-right: 48px; }
.lf-pass button { position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.lf-pass button:hover { color: var(--seal); }
.lf-error { margin: 0 0 11px; padding: 8px 10px; border: 1px solid rgba(169,52,38,.45); background: #f7ebe8; color: var(--seal); font-size: 10.5px; line-height: 1.5; border-radius: 2px; }
.lf-submit {
  width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 15px; border: 1px solid var(--pine); border-radius: 2px; background: var(--pine); color: var(--paper);
  font-size: 12.5px; letter-spacing: .06em; transition: background .16s, border-color .16s;
}
.lf-submit:hover { background: #29473a; border-color: #29473a; }
.lf-submit:disabled { opacity: .6; cursor: wait; }
.lf-submit span { font-family: var(--data); font-size: 15px; }
.lf-demo { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 13px; }
.lf-demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.lf-demo-head span { font-size: 9px; letter-spacing: .16em; color: var(--muted-2); }
.lf-demo-head small { font-size: 8.5px; color: var(--muted-2); }
.demo-account {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 9px; margin-top: 5px;
  text-align: left; border: 1px solid var(--line); border-radius: 2px; background: transparent;
  transition: border-color .16s, background .16s;
}
.demo-account:hover { border-color: var(--line-strong); background: var(--paper-2); }
.da-avatar { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #cfd9cc; font-family: var(--serif); font-size: 11px; color: var(--pine); }
.da-avatar--pine { background: var(--pine); color: var(--paper); }
.demo-account b { display: block; font-size: 10.5px; font-weight: 500; }
.demo-account small { display: block; font-size: 8.5px; color: var(--muted-2); }
.demo-account em { margin-left: auto; font-size: 9px; font-style: normal; color: var(--seal); }
.lf-note { margin-top: 13px; font-size: 9px; line-height: 1.7; color: var(--muted-2); }
.lf-note code { font-family: var(--data); font-size: 9px; color: var(--ink-2); background: var(--paper-3); padding: 1px 4px; }
.lf-foot { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; font-size: 8.5px; color: var(--muted-2); }
.lf-foot a { color: var(--muted-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.lf-foot a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { min-height: 320px; padding: 24px 30px 20px; }
  .login-brand::after { display: none; }
  .lb-copy { padding: 32px 0 24px; }
  .lb-copy h1 { font-size: 34px; }
  .lb-lede { max-width: 600px; }
  .lb-points { display: none; }
  .lb-foot { margin-top: auto; }
  .login-panel { padding: 36px 30px 22px; }
}
@media (max-width: 520px) {
  .login-brand { min-height: 248px; padding: 20px 20px 16px; }
  .lb-copy { padding: 22px 0 16px; }
  .lb-copy h1 { font-size: 28px; line-height: 1.42; }
  .lb-kicker { margin-bottom: 11px; }
  .lb-lede { display: none; }
  .lb-foot span:last-child { display: none; }
  .login-panel { padding: 28px 20px 18px; }
  .lf-head h2 { font-size: 27px; }
  .login-form-wrap { max-width: none; }
}
