:root {
  --bg: #f4f5ef;
  --surface: #fbfcf8;
  --ink: #17251f;
  --ink-soft: #415148;
  --muted: #7a857d;
  --muted-light: #9ba49d;
  --line: #e2e6dc;
  --green: #214f3f;
  --green-bright: #2e6b55;
  --lime: #dced8d;
  --font-sans: "Aptos", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-number: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
p, h1, h2 { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(440px, 1.03fr) minmax(470px, .97fr);
  min-height: 100vh;
}
.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 44px clamp(40px, 5.5vw, 84px) 32px;
  color: #f3f8ed;
  background:
    radial-gradient(1000px 700px at 92% 4%, rgba(99, 143, 112, .43), transparent 62%),
    linear-gradient(148deg, #173a2f 0%, #1e483a 48%, #163b2f 100%);
}
.showcase-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(232, 244, 220, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 220, .3) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 35% 50%, #000 1%, transparent 72%);
}
.showcase-orb {
  position: absolute;
  border: 1px solid rgba(225, 242, 205, .14);
  border-radius: 50%;
  pointer-events: none;
}
.showcase-orb-a {
  right: -180px;
  bottom: -235px;
  width: 650px;
  height: 650px;
  box-shadow: 0 0 0 58px rgba(222, 239, 197, .025), 0 0 0 128px rgba(222, 239, 197, .018);
}
.showcase-orb-b {
  top: 24%;
  right: 16%;
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--lime);
  box-shadow: -32px 45px 0 rgba(220, 237, 141, .28), 41px -55px 0 rgba(220, 237, 141, .18);
}
.showcase-header, .showcase-copy, .showcase-tags, .showcase-footer { position: relative; z-index: 2; }
.showcase-header { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 13px;
  background: #f2f7e9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .12);
}
.brand-slat { position: absolute; left: 10px; height: 5px; border-radius: 3px; background: var(--green); }
.slat-a { top: 11px; width: 17px; }
.slat-b { top: 19px; width: 12px; opacity: .62; }
.slat-c { top: 27px; width: 20px; opacity: .9; }
.brand-dot { position: absolute; top: 11px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #9bbd4f; }
.brand-type { display: flex; flex-direction: column; gap: 2px; }
.brand-type strong { font-size: 21px; line-height: 1.1; font-weight: 700; letter-spacing: .13em; }
.brand-type small { font-size: 7.5px; line-height: 1.3; letter-spacing: .19em; color: rgba(240, 248, 233, .55); font-weight: 600; }
.showcase-copy { margin-top: auto; margin-bottom: auto; padding: 80px 0 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .18em;
}
.eyebrow i { display: inline-block; width: 18px; height: 1px; background: rgba(220, 237, 141, .72); }
.showcase-copy .eyebrow { color: rgba(232, 243, 222, .59); }
.showcase-copy h1 {
  max-width: 650px;
  margin-top: 21px;
  font-family: var(--font-number);
  font-size: clamp(42px, 4.8vw, 69px);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -.06em;
}
.showcase-copy h1 em { position: relative; z-index: 1; display: inline-block; color: var(--lime); font-style: normal; }
.showcase-copy h1 em::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: .1em;
  left: -3px;
  z-index: -1;
  height: .14em;
  border-radius: 999px;
  background: rgba(220, 237, 141, .15);
}
.showcase-copy p { max-width: 500px; margin-top: 25px; color: rgba(234, 244, 225, .56); font-size: 13px; line-height: 1.9; }
.showcase-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.showcase-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 11px;
  border: 1px solid rgba(229, 243, 214, .12);
  border-radius: 999px;
  background: rgba(232, 243, 222, .035);
  color: rgba(236, 246, 227, .62);
  font-size: 9px;
  letter-spacing: .03em;
}
.pulse { width: 5px; height: 5px; border-radius: 50%; background: #8dbf9e; box-shadow: 0 0 0 3px rgba(141, 191, 158, .1); }
.showcase-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 62px;
  color: rgba(235, 245, 226, .28);
  font-size: 7.5px;
  letter-spacing: .15em;
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 32px clamp(30px, 5.5vw, 86px) 22px;
  background:
    radial-gradient(700px 460px at 100% 0%, rgba(224, 233, 211, .56), transparent 66%),
    #f6f7f1;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mobile { display: none; }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8.5px; letter-spacing: .02em; }
.secure-pill svg { width: 14px; height: 14px; color: #668a71; }
.login-form-wrap { width: min(368px, 100%); margin: auto; animation: formIn .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes formIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow-dark { color: #89958b; }
.eyebrow-dark i { background: #b6c2b3; }
.login-form-wrap h2 { margin-top: 15px; font-family: var(--font-number); font-size: 36px; font-weight: 650; line-height: 1.2; letter-spacing: -.05em; }
.login-intro { margin-top: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
#login-form { margin-top: 30px; }
.login-field label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.login-field + .login-field { margin-top: 15px; }
.account-control,
.password-control {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #dce2d7;
  border-radius: 11px;
  background: rgba(255, 255, 255, .84);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.account-control:focus-within,
.password-control:focus-within { border-color: #9db59e; background: #fff; box-shadow: 0 0 0 4px rgba(46, 107, 85, .07); }
.field-lock { width: 16px; height: 16px; margin-left: 14px; color: #8d9c91; flex: 0 0 auto; }
.account-control input,
.password-control input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.account-control input { letter-spacing: .02em; }
.password-control input { letter-spacing: .08em; }
.account-control input::placeholder,
.password-control input::placeholder { color: #a8b0a9; font-size: 12px; letter-spacing: 0; }
.password-toggle { height: 30px; padding: 0 13px 0 8px; color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.password-toggle:hover { color: var(--green); }
.field-hint { margin-top: 7px; color: var(--muted-light); font-size: 8.5px; }
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  margin-top: 17px;
  border-radius: 11px;
  background: var(--green);
  color: #f4f9ee;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(33, 79, 63, .15), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.login-submit:hover { background: #2a5b49; box-shadow: 0 14px 30px rgba(33, 79, 63, .2); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { pointer-events: none; opacity: .64; }
.login-submit svg { width: 16px; height: 16px; color: var(--lime); }
.login-submit.is-loading .submit-label { font-size: 0; }
.login-submit.is-loading .submit-label::after { content: "正在验证…"; font-size: 12px; }
.login-submit.is-loading svg { display: none; }
.login-submit.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login-error { min-height: 18px; margin-top: 9px; color: #a34338; font-size: 9.5px; line-height: 1.6; }
.login-error.shake { animation: shake .3s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.login-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #e5e9df;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.login-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: #7c9482; }
.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  color: #a4ada5;
  font-size: 8px;
  letter-spacing: .02em;
}
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }

@media (max-width: 900px) {
  .login-shell { display: block; }
  .login-showcase { display: none; }
  .login-panel { min-height: 100svh; padding: max(22px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); }
  .brand-mobile { display: flex; }
  .brand-mobile .brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--green); }
  .brand-mobile .brand-slat { left: 8px; height: 4px; background: #f2f7e9; }
  .brand-mobile .slat-a { top: 9px; width: 14px; }
  .brand-mobile .slat-b { top: 16px; width: 9px; }
  .brand-mobile .slat-c { top: 23px; width: 16px; }
  .brand-mobile .brand-dot { top: 9px; right: 6px; width: 4px; height: 4px; background: var(--lime); }
  .brand-mobile .brand-type strong { font-size: 19px; color: var(--ink); }
  .brand-mobile .brand-type small { display: none; }
  .secure-pill { display: none; }
  .login-form-wrap { width: min(390px, 100%); margin: auto; padding: 34px 0; }
  .login-form-wrap h2 { margin-top: 13px; font-size: 33px; }
  .login-intro { font-size: 11.5px; }
  .panel-footer { width: min(390px, 100%); margin: 0 auto; }
  body { background: #f6f7f1; }
}
@media (max-width: 400px) {
  .login-panel { padding-inline: 18px; }
  .login-form-wrap { padding: 26px 0 24px; }
  .login-form-wrap h2 { font-size: 31px; }
  .password-control { height: 49px; }
  #login-form { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
