* { box-sizing: border-box; }
body.login-page { margin: 0; line-height: 1.65; background: #fff; }
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.login-story { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(36px, 5vw, 84px); overflow: hidden; background: var(--ui-nav); color: white; }
.login-story::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, #315bff35, transparent 66%); bottom: -340px; right: -300px; }
.login-story::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #ffffff04 1px, transparent 1px), linear-gradient(#ffffff04 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(transparent 18%, #0008); }
.story-brand, .brand-line { display: flex; width: fit-content; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.login-mark, .brand-line > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; background: var(--ui-accent); color: #fff; border-radius: 12px; font-size: 25px; font-weight: 700; letter-spacing: -.09em; padding-right: 3px; }
.story-brand strong { display: block; font-size: 19px; letter-spacing: .13em; }
.story-brand small { display: block; font-size: 11px; color: #a6b5ce; margin-top: 2px; }
.story-content { margin: 90px 0 110px; max-width: 520px; }
.story-eyebrow { color: #91a8ff; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.story-content h2 { font-size: clamp(36px, 3.7vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1.4; margin: 20px 0 24px; }
.story-content > p { max-width: 360px; color: #aab8cf; font-size: 15px; line-height: 1.95; }
.story-flow { list-style: none; margin: 58px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-flow li { position: relative; min-width: 0; }
.story-flow li:not(:last-child)::after { content: ""; height: 1px; position: absolute; left: 12px; right: 0; top: 6px; background: #ffffff2b; }
.flow-dot { position: relative; z-index: 1; display: block; width: 13px; height: 13px; border: 3px solid #758ffe; border-radius: 50%; background: #111c30; margin-bottom: 18px; }
.story-flow strong { display: block; font-size: 14px; font-weight: 500; }
.story-flow small { color: #8d9ebc; font-size: 11px; }
.story-footer { color: #8292ae; font-size: 11px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.story-footer span { letter-spacing: .12em; font-size: 9px; }
.login-content { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 40px 30px; }
.login-card { width: 100%; max-width: 388px; padding: 0; }
.brand-line { display: none; }
.brand-line strong { display: block; font-size: 15px; }
.brand-line small { display: block; color: var(--ui-muted); font-size: 11px; }
.kicker { color: var(--ui-accent); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.login-card h1 { font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1.3; margin: 0 0 14px; }
.lead { color: var(--ui-muted); font-size: 14px; margin: 0; }
.login-stage { position: relative; margin-top: 34px; min-height: 320px; }
.login-card form, .login-card fieldset { display: grid; gap: 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.login-card form { gap: 0; }
.login-card label { color: #35445d; font-size: 13px; font-weight: 500; }
.login-card input { display: block; width: 100%; min-height: 48px; margin-top: 9px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ui-ink); background: #fff; border: 1px solid #d8dfeb; border-radius: 9px; transition: border-color .16s, box-shadow .16s; }
.login-card input::placeholder { color: #99a4b5; font-size: 14px; }
.login-card input:focus { outline: none; border-color: #7391ff; box-shadow: 0 0 0 4px #315bff0c; }
.login-card input:-webkit-autofill { -webkit-text-fill-color: var(--ui-ink); box-shadow: 0 0 0 1000px white inset; caret-color: var(--ui-ink); }
.login-card button { min-height: 48px; cursor: pointer; border: 0; border-radius: 9px; background: var(--ui-accent); color: #fff; font-weight: 600; padding: 12px 18px; font-size: 14px; transition: background .16s; }
.login-card button:hover { background: var(--ui-accent-hover); }
.login-card button:disabled { opacity: .6; cursor: wait; }
.login-card #submitButton { display: flex; justify-content: center; align-items: center; gap: 12px; box-shadow: 0 4px 10px #315bff15; }
.password-input { position: relative; }
.password-input input { padding-right: 70px; }
.login-card .password-input button { position: absolute; right: 4px; top: 4px; bottom: 4px; min-height: 0; width: 58px; padding: 0 8px; background: transparent; color: #607087; font-size: 12px; font-weight: 500; }
.login-card .password-input button:hover { background: #f2f5fc; color: var(--ui-accent); }
.login-card .remember-option { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: var(--ui-muted); cursor: pointer; margin: -5px 0; }
.login-card .remember-option input { width: 17px; height: 17px; min-height: 0; flex: 0 0 17px; margin: 0; padding: 0; accent-color: var(--ui-accent); cursor: pointer; }
.error { color: var(--ui-danger); font-size: 13px; line-height: 1.7; min-height: 22px; margin: 12px 0 0; overflow-wrap: anywhere; }
.login-note { color: #7d899d; font-size: 12px; line-height: 1.9; border-top: 1px solid var(--ui-line); margin: 23px 0 14px; padding-top: 22px; }
.login-help { display: flex; justify-content: space-between; gap: 15px; }
.login-help a { color: #63728a; text-decoration: none; padding: 8px 0; font-size: 12px; }
.login-help a:hover { color: var(--ui-accent); }
.login-footer { margin: 70px 0 0; text-align: center; color: #9aa4b2; font-size: 11px; }
.session-panel { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 20px 10px; }
.session-panel strong { font-size: 18px; margin-top: 20px; font-weight: 600; }
.session-panel p { font-size: 13px; color: var(--ui-muted); line-height: 1.85; max-width: 330px; margin: 12px 0 0; }
.session-panel button { margin-top: 22px; }
.session-indicator { width: 30px; height: 30px; border: 2px solid #e2e8fa; border-top-color: var(--ui-accent); border-radius: 50%; animation: session-spin .8s linear infinite; }
.login-stage[data-state=checking] form, .login-stage[data-state=unavailable] form { visibility: hidden; }
.login-stage[data-state=checking] .session-panel, .login-stage[data-state=unavailable] .session-panel { display: flex; }
.login-stage[data-state=unavailable] .session-indicator { animation: none; border-color: #dba45c; }
@keyframes session-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .login-story { padding: 34px; }.story-content h2 { font-size: 37px; }.login-content { padding-inline: 30px; } }
@media (max-width: 700px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-content { min-height: 100vh; min-height: 100dvh; justify-content: flex-start; padding: 35px 25px calc(22px + env(safe-area-inset-bottom)); }
  .brand-line { display: flex; margin-bottom: 48px; }
  .login-card { max-width: 410px; }
  .login-card h1 { font-size: 30px; }
  .login-stage { margin-top: 28px; }
  .login-footer { margin-top: auto; padding-top: 36px; }
  .login-note { margin-top: 10px; }
}

#loginForm[hidden],#wechatLogin[hidden]{display:none!important}.wechat-login-panel{padding:20px 0}.wechat-login-panel h2{font-size:22px;line-height:1.5;margin:0 0 16px}.wechat-login-panel p{line-height:1.8;color:#5b665d;margin:14px 0;overflow-wrap:anywhere}.wechat-login-panel button{min-height:48px;padding:12px 20px;border:0;border-radius:12px;background:#234c40;color:white;font-size:16px;width:100%}.wechat-login-panel [role=status]{font-size:13px}.login-page[data-miniprogram=true] .login-note{display:none}

.login-page[data-miniprogram=true] .login-stage{min-height:0;margin-top:12px}.login-page[data-miniprogram=true] .session-panel{position:static;padding:16px 0}.login-page[data-miniprogram=true] .login-stage[data-state=ready]{display:none}

.login-page[data-miniprogram=true] .app-install-card{display:none}
