:root {
  --orange: #e85d24;
  --orange-dark: #b93d15;
  --green: #356b52;
  --cream: #fff8eb;
  --ink: #28342d;
  --muted: #667069;
  --line: #eadfce;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; }
.member-header { height: 76px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.member-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.member-brand img { width: 42px; height: 42px; object-fit: contain; }
.member-brand strong { display: block; font-size: 20px; }
.member-brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.back-link { color: var(--green); font-weight: 700; text-decoration: none; }
.member-main { min-height: calc(100vh - 76px); padding: 56px 24px; display: grid; place-items: center; }
.auth-layout { width: min(960px, 100%); display: grid; grid-template-columns: 1fr 440px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(80, 61, 39, .12); }
.auth-story { padding: 56px; color: #fff; background: var(--green); }
.auth-story .eyebrow { color: #ffd2ab; font-weight: 800; }
.auth-story h1 { margin: 18px 0; font-size: 42px; line-height: 1.18; }
.auth-story p { font-size: 17px; line-height: 1.8; opacity: .9; }
.auth-story ul { margin: 30px 0 0; padding: 0; list-style: none; }
.auth-story li { margin: 14px 0; }
.auth-story li::before { content: "✓"; margin-right: 10px; color: #ffd2ab; font-weight: 900; }
.auth-panel { padding: 48px; }
.auth-panel h2 { margin: 0 0 8px; font-size: 28px; }
.auth-panel > p { margin: 0 0 28px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 12px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.auth-tabs button.is-active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.auth-form label { display: block; margin: 16px 0 7px; font-weight: 700; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d8cdbd; border-radius: 4px; font: inherit; outline: none; }
.auth-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 93, 36, .12); }
.primary-button, .secondary-button { min-height: 48px; padding: 0 20px; border-radius: 4px; border: 1px solid transparent; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary-button { width: 100%; margin-top: 24px; color: #fff; background: var(--orange); }
.primary-button:hover { background: var(--orange-dark); }
.secondary-button { color: var(--green); background: #fff; border-color: var(--green); }
.form-status { min-height: 24px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.form-status.error { color: #b42318; }
.form-status.success { color: var(--green); }
.account-shell { width: min(980px, 100%); }
.account-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.account-heading h1 { margin: 0 0 8px; font-size: 36px; }
.account-heading p { margin: 0; color: var(--muted); }
.text-button { border: 0; color: var(--orange-dark); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.account-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.account-card { padding: 30px; background: #fff; border: 1px solid var(--line); }
.account-card h2 { margin: 0 0 22px; font-size: 21px; }
.identity { display: flex; align-items: center; gap: 16px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 24px; font-weight: 900; }
.identity strong { display: block; font-size: 21px; }
.identity span { color: var(--muted); }
.member-id { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.membership-state { padding: 22px; background: #fff3e5; border-left: 4px solid var(--orange); }
.membership-state strong { display: block; color: var(--orange-dark); font-size: 24px; }
.membership-state span { display: block; margin-top: 7px; color: var(--muted); }
.account-actions { display: grid; gap: 12px; margin-top: 22px; }
.sso-wait { width: min(520px, 100%); padding: 44px; text-align: center; background: #fff; border: 1px solid var(--line); }
.sso-wait h1 { font-size: 27px; }
.spinner { width: 38px; height: 38px; margin: 0 auto 24px; border: 4px solid #f0dfcb; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .member-header { height: 66px; padding: 0 16px; }
  .member-main { min-height: calc(100vh - 66px); padding: 24px 16px; }
  .auth-layout, .account-grid { grid-template-columns: 1fr; }
  .auth-story { padding: 30px 26px; }
  .auth-story h1 { font-size: 30px; }
  .auth-story ul { display: none; }
  .auth-panel, .account-card { padding: 26px; }
  .account-heading { align-items: start; }
  .account-heading h1 { font-size: 28px; }
}
