:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #13251f;
  background: #f4f6f2;
}

* { box-sizing: border-box; }

body { min-width: 320px; min-height: 100vh; margin: 0; }

.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 47%) 1fr; }

.login-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 72px);
  color: #eff8f0;
  background: #0c5e49;
}

.login-intro::before, .login-intro::after {
  position: absolute;
  z-index: -1;
  width: 110%;
  height: 46%;
  border: 1px solid rgba(219, 242, 223, .23);
  border-radius: 50%;
  content: "";
}
.login-intro::before { top: 23%; left: -42%; box-shadow: 0 0 0 36px rgba(219, 242, 223, .07), 0 0 0 78px rgba(219, 242, 223, .05), 0 0 0 128px rgba(219, 242, 223, .035); transform: rotate(-11deg); }
.login-intro::after { right: -63%; bottom: -5%; box-shadow: 0 0 0 32px rgba(219, 242, 223, .07), 0 0 0 75px rgba(219, 242, 223, .045); transform: rotate(22deg); }

.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.intro-copy { margin: auto 0; padding: 80px 0; }
.eyebrow { margin: 0 0 14px; color: #77d7b5; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.intro-copy h1 { max-width: 560px; margin: 0; font-size: clamp(2.5rem, 5vw, 4.9rem); font-weight: 650; letter-spacing: -.07em; line-height: 1.08; }
.intro-copy > p:last-child { max-width: 310px; margin: 28px 0 0; color: rgba(239,248,240,.78); font-size: 1rem; line-height: 1.8; }
.intro-footnote { margin: 0; color: rgba(239,248,240,.56); font-size: .75rem; letter-spacing: .07em; }

.login-panel { display: grid; place-items: center; padding: 32px; background: #f7f8f5; }
.login-card { width: min(100%, 420px); }
.panel-heading { margin-bottom: 29px; text-align: center; }
.panel-heading .eyebrow { margin-bottom: 10px; color: #0b8b67; }
.panel-heading h2 { margin: 0; color: #13251f; font-size: clamp(2rem, 4vw, 2.55rem); letter-spacing: -.06em; line-height: 1.15; }
.panel-heading > p:last-child { margin: 15px 0 0; color: #6b7d74; font-size: .93rem; line-height: 1.7; }

.wechat-login { padding: 24px; border: 1px solid #dde5de; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(33, 70, 51, .055); text-align: center; }
.qr-stage { position: relative; display: grid; width: 224px; height: 224px; margin: 0 auto 19px; place-items: center; overflow: hidden; border: 1px solid #e1e9e2; border-radius: 13px; background: #f6faf6; }
.qr-stage::after { position: absolute; right: 12px; bottom: 12px; width: 9px; height: 9px; border-radius: 50%; background: #9bafa3; content: ""; }
.qr-stage.is-ready::after { background: #21a675; box-shadow: 0 0 0 5px rgba(33,166,117,.12); }
.qr-placeholder { display: grid; gap: 8px; color: #9baea1; font-size: .79rem; }
.qr-placeholder-icon { color: #b5c7ba; font-size: 2rem; line-height: 1; }
.qr-stage.is-ready .qr-placeholder { display: none; }
#wechat-qr { display: block; width: 100%; height: 100%; padding: 12px; background: #fff; object-fit: contain; }
#wechat-qr[hidden] { display: none; }
.qr-expired-mask { position: absolute; inset: 0; z-index: 1; display: none; align-content: center; justify-items: center; gap: 7px; padding: 24px; background: rgba(18, 37, 30, .82); color: #fff; text-align: center; backdrop-filter: blur(2px); }
.qr-expired-mask strong { font-size: 1rem; }
.qr-expired-mask span { color: rgba(255,255,255,.76); font-size: .78rem; }
.qr-stage.is-expired .qr-expired-mask { display: grid; }

button { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: #087957; box-shadow: 0 5px 12px rgba(8,121,87,.18); color: #fff; font: inherit; font-size: .94rem; font-weight: 750; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
button:hover { background: #066b4c; box-shadow: 0 8px 17px rgba(8,121,87,.24); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .68; transform: none; }
.button-icon { font-size: 1.2rem; line-height: 1; }
#wechat-status { min-height: 1.45em; margin: 14px 0 0; color: #718178; font-size: .8rem; line-height: 1.5; }
#wechat-status:empty { display: none; }
.security-note { display: flex; justify-content: center; gap: 6px; margin: 20px 0 0; color: #8a9990; font-size: .72rem; line-height: 1.5; text-align: center; }
.security-note span { color: #36a77c; }

@media (max-width: 760px) {
  .login-layout { display: block; }
  .login-intro { min-height: 232px; padding: 26px 28px; }
  .intro-copy { margin: auto 0 0; padding: 35px 0 0; }
  .intro-copy h1 { font-size: 2rem; }
  .intro-copy > p:last-child, .intro-footnote { display: none; }
  .login-panel { min-height: calc(100vh - 232px); padding: 38px 24px; align-items: start; }
}

@media (max-width: 390px) {
  .login-panel { padding-right: 18px; padding-left: 18px; }
  .wechat-login { padding: 18px; }
  .qr-stage { width: min(224px, 100%); height: min(224px, calc(100vw - 84px)); }
}
