:root {
  --login-ink: #14231f;
  --login-deep: #0c1916;
  --login-green: #0f715e;
  --login-green-strong: #095747;
  --login-orange: #e47742;
  --login-paper: #f5f7f6;
  --login-muted: #66736e;
  --login-line: #d7dfdb;
  --login-error: #a43d36;
}

* { box-sizing: border-box; }
html { min-height: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--login-ink); background: #fff; font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif; letter-spacing: 0; }
a { color: inherit; }
button, input { font: inherit; letter-spacing: 0; }
.login-page :focus-visible { outline: 3px solid #f2a77f; outline-offset: 2px; }
.login-skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; background: #fff; transform: translateY(-140%); }
.login-skip:focus { transform: translateY(0); }

.login-desktop-shell { display: grid; grid-template-columns: minmax(560px,1.08fr) minmax(480px,.92fr); min-height: 100vh; min-height: 100dvh; }
.login-context { position: relative; display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px max(48px,calc((100vw - 1320px)/2)); background: var(--login-deep); color: #fff; }
.login-context::after { position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: rgba(255,255,255,.12); content: ""; }
.login-brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.login-brand > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 4px; background: var(--login-green); color: #fff; font-family: SimSun, "Songti SC", serif; font-size: 17px; font-weight: 900; }
.login-brand strong { font-family: SimSun, "Songti SC", serif; font-size: 18px; }
.login-context-copy { position: relative; z-index: 2; max-width: 650px; margin: 70px 0 42px; }
.login-context-copy > p, .login-eyebrow { margin: 0 0 17px; color: #8cc5b6; font-family: Georgia, serif; font-size: 10px; font-weight: 800; }
.login-context-copy h1 { margin: 0; font-family: SimSun, "Songti SC", serif; font-size: 42px; line-height: 1.35; }
.login-context-copy > span { display: block; max-width: 560px; margin-top: 20px; color: #abbdb7; font-size: 13px; line-height: 1.8; }
.login-product-view { position: relative; z-index: 2; width: min(700px,100%); margin: 0; padding: 9px; border: 1px solid #3a4a45; background: #15251f; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.login-product-view img { display: block; width: 100%; aspect-ratio: 16/7; object-fit: cover; object-position: top left; border: 1px solid #4a5a55; }
.login-product-view figcaption { display: flex; justify-content: space-between; padding: 10px 2px 1px; color: #9eb0aa; font-size: 9px; }
.login-product-view figcaption span { color: #7eb8a9; font-family: Georgia, serif; font-weight: 800; }

.login-panel { display: flex; min-height: 100%; flex-direction: column; justify-content: center; padding: 44px max(52px,calc((100vw - 1320px)/2)); background: #fff; }
.login-form-wrap { width: min(420px,100%); margin: auto; }
.login-panel .login-eyebrow { color: var(--login-green); }
.login-panel h2, .login-mobile-main h1 { margin: 0; font-family: SimSun, "Songti SC", serif; font-size: 30px; line-height: 1.35; }
.login-subtitle { margin: 9px 0 31px; color: var(--login-muted); font-size: 13px; }
.login-error { margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid var(--login-error); background: #fff2f1; color: var(--login-error); font-size: 12px; line-height: 1.6; }
.login-form { display: grid; }
.login-field { display: grid; gap: 8px; margin-bottom: 19px; }
.login-field label { font-size: 12px; font-weight: 800; }
.login-field input { width: 100%; height: 50px; padding: 0 13px; border: 1px solid #c9d2ce; border-radius: 4px; background: #fff; color: var(--login-ink); font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.login-field input:hover { border-color: #95a39e; }
.login-field input:focus { border-color: var(--login-green); outline: 0; box-shadow: 0 0 0 3px rgba(15,113,94,.13); }
.login-field small { margin-top: -2px; color: var(--login-muted); font-size: 10px; line-height: 1.5; }
.login-remember { display: flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; margin: -4px 0 15px; color: #4f5d58; font-size: 12px; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--login-green); }
.login-submit { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 17px; border: 0; border-radius: 4px; background: var(--login-green); color: #fff; font-size: 13px; font-weight: 900; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.login-submit:hover { background: var(--login-green-strong); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .78; transform: none; }
.login-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; color: var(--login-muted); font-size: 11px; text-decoration: none; }
.login-back:hover { color: var(--login-green); }
.auth-switch { margin: 18px 0 0; color: var(--login-muted); font-size: 12px; text-align: center; }
.auth-switch a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 3px; color: var(--login-green); font-weight: 800; text-underline-offset: 3px; }
.login-panel > footer { display: flex; justify-content: center; gap: 24px; color: #85918d; font-size: 9px; }
.login-panel > footer span { position: relative; }
.login-panel > footer span + span::before { position: absolute; top: 50%; left: -13px; width: 2px; height: 2px; background: #9da8a4; content: ""; }
.login-transition { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 15px; background: var(--login-deep); color: #fff; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.login-transition[hidden] { display: none; }
.login-transition > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 5px; background: var(--login-green); font-family: SimSun, "Songti SC", serif; font-size: 20px; font-weight: 900; box-shadow: 0 0 0 8px rgba(15,113,94,.18); }
.login-transition > strong { font-size: 14px; }
.login-is-submitting .login-transition { opacity: 1; pointer-events: auto; }

.login-mobile { display: grid; grid-template-rows: auto 1fr auto; background: #fff; }
.login-mobile-header { display: flex; align-items: center; min-height: 66px; padding: max(12px,env(safe-area-inset-top)) 18px 10px; border-bottom: 1px solid var(--login-line); }
.login-mobile-header .login-brand > span { width: 34px; height: 34px; }
.login-mobile-header .login-brand strong { font-size: 17px; }
.login-mobile-main { display: flex; align-items: center; padding: 36px 20px 28px; }
.login-mobile-main .login-form-wrap { width: 100%; }
.login-mobile-main .login-eyebrow { color: var(--login-green); }
.login-mobile-main h1 { font-size: 28px; }
.login-mobile-main .login-subtitle { margin-bottom: 34px; }
.login-mobile .login-field { margin-bottom: 18px; }
.login-mobile .login-field input, .login-mobile .login-submit { min-height: 52px; }
.login-mobile .login-remember { min-height: 48px; margin-bottom: 14px; }
.register-panel { padding-top: 28px; padding-bottom: 28px; }
.register-panel .login-subtitle { margin-bottom: 22px; }
.register-panel .login-field { margin-bottom: 13px; }
.register-panel .login-back { margin-top: 8px; }
.register-mobile-main { align-items: flex-start; padding-top: 32px; }
.register-mobile-main .login-subtitle { margin-bottom: 26px; }
.register-mobile-main .login-field { margin-bottom: 16px; }
.login-mobile-footer { display: flex; justify-content: center; gap: 24px; min-height: 60px; padding: 10px 18px max(10px,env(safe-area-inset-bottom)); color: #87938f; font-size: 9px; }

@media (max-width: 1120px) {
  .login-desktop-shell { grid-template-columns: minmax(480px,1fr) minmax(440px,.9fr); }
  .login-context-copy h1 { font-size: 35px; }
}

@media (max-width: 900px) {
  .login-desktop-shell { grid-template-columns: 1fr; }
  .login-context { display: none; }
  .login-panel { min-height: 100vh; min-height: 100dvh; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .login-context-copy { margin: 35px 0 24px; }
  .login-context-copy h1 { font-size: 32px; }
  .login-product-view img { aspect-ratio: 16/6; }
  .login-panel { padding-top: 28px; padding-bottom: 28px; }
}

@media (max-width: 375px) {
  .login-mobile-main { align-items: flex-start; padding-top: 28px; }
  .login-mobile-main h1 { font-size: 25px; }
  .login-mobile-main .login-subtitle { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
