:root {
  --background: #fff;
  --sage: #edf2e9;
  --forest: #244f3d;
  --ink: #18362b;
  --muted: #79847b;
  --border: #dce3d9;
  --danger: #a63131;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--background); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #90ad98; outline-offset: 5px; }
.wordmark { display: inline-block; flex-shrink: 0; white-space: nowrap; font-size: 29px; line-height: 1.2; font-weight: 700; letter-spacing: -.9px; }
.auth-layout { min-height: 100svh; display: grid; grid-template-columns: 46% 54%; }
.brand-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--sage); padding: 50px 5vw 40px; min-height: 100svh; }
.brand-copy { position: relative; z-index: 1; margin-top: clamp(125px, 16.5vh, 190px); }
.brand-copy h2 { margin: 0; font-size: clamp(44px, 5.1vw, 78px); letter-spacing: -.055em; line-height: 1.26; font-weight: 700; }
.brand-copy p { margin: 28px 0 0; font-size: clamp(19px, 2vw, 29px); line-height: 1.6; color: var(--muted); letter-spacing: -.04em; }
.brand-footer { position: absolute; bottom: 35px; left: 5vw; z-index: 1; margin: 0; color: #65756b; font-size: 16px; line-height: 1.6; }
.brand-orbits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orbit { position: absolute; width: 440px; height: 440px; border: 1px solid #aabbab; border-radius: 50%; }
.orbit-one { left: -205px; bottom: 55px; }
.orbit-two { left: 165px; bottom: -185px; }
.orbit-center { position: absolute; width: 116px; height: 116px; border-radius: 50%; background: var(--forest); left: 180px; bottom: 160px; }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 96px 6.2vw 96px 8.2vw; }
.auth-content { width: 100%; max-width: 560px; padding: 16px 0; }
.form-header h1 { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
.form-header p { margin: 8px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; letter-spacing: -.02em; }
.form-field + .form-field { margin-top: 27px; }
.form-field label { display: block; margin-bottom: 11px; font-size: 18px; font-weight: 500; line-height: 1.6; }
.field-optional { font-weight: 400; color: var(--muted); font-size: 15px; }
.form-field input, .form-field select { display: block; width: 100%; height: 64px; border: 1px solid #cdd8cf; border-radius: 11px; padding: 0 21px; font-size: 18px; line-height: normal; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-field input::placeholder { color: #929b97; opacity: 1; }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px #244f3d12; }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: var(--danger); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 35px; width: 100%; min-height: 68px; border: 1px solid var(--forest); border-radius: 11px; background: var(--forest); color: #fff; font-size: 21px; font-weight: 600; transition: background .15s; }
.primary-button svg { width: 25px; height: 25px; }
.primary-button:hover { background: #1c402f; }
.primary-button[aria-disabled="true"] { pointer-events: none; opacity: .6; }
.switch-prompt { margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.text-button { border: none; border-radius: 2px; background: none; padding: 0; font-size: inherit; line-height: inherit; color: var(--forest); font-weight: 600; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-footer { position: absolute; right: 42px; bottom: 34px; font-size: 14px; color: var(--muted); }
.form-message { margin: 18px 0 0; padding: 11px 14px; border-radius: 7px; background: #fcf1ef; color: var(--danger); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.form-message + .primary-button { margin-top: 22px; }
.form-message[hidden] + .primary-button { margin-top: 35px; }
.complete-page .auth-panel { align-items: flex-start; padding-top: 76px; padding-bottom: 110px; }
.google-identity { display: flex; align-items: center; gap: 18px; margin: 28px 0 33px; padding: 18px; background: var(--sage); border-radius: 12px; }
.google-identity .user-avatar { width: 58px; height: 58px; font-size: 26px; }
.google-identity strong { font-size: 18px; }
.google-identity p { margin: 5px 0 0; color: #667770; overflow-wrap: anywhere; }
.account-choice { border-top: 1px solid var(--border); padding: 26px 0 30px; }
.account-choice h2 { margin: 0 0 8px; font-size: 22px; }
.account-choice > p { margin: 0 0 19px; color: #667770; line-height: 1.65; }
.account-choice .primary-button { margin-top: 20px; font-size: 17px; min-height: 57px; }

.account-page { min-height: 100svh; display: flex; flex-direction: column; }
.site-header { min-height: 101px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 5.7vw; border-bottom: 1px solid var(--border); }
.site-header .wordmark { font-size: 32px; }
.outline-button { background: #fff; color: var(--forest); font-size: 17px; line-height: 1.5; padding: 10px 27px; border: 1px solid #6c8878; border-radius: 8px; transition: background .15s; }
.outline-button:hover { background: var(--sage); }
.account-main { width: calc(100% - 64px); max-width: 920px; margin: 0 auto; padding: 100px 0 90px; flex: 1; }
.account-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.account-intro h1 { margin: 0; font-size: 54px; font-weight: 700; line-height: 1.3; letter-spacing: -.045em; overflow-wrap: anywhere; }
.account-intro p { margin: 18px 0 0; color: #667770; font-size: 27px; line-height: 1.6; letter-spacing: -.04em; }
.user-avatar { flex-shrink: 0; display: grid; place-items: center; background: #dce8d7; width: 88px; height: 88px; border-radius: 50%; font-size: 39px; font-weight: 500; line-height: 1; }
.user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-details { margin-top: 60px; }
.account-details h2 { margin: 0 0 23px; font-size: 29px; font-weight: 600; line-height: 1.5; }
.profile-list { margin: 0; border-top: 1px solid var(--border); }
.profile-list > div { display: grid; grid-template-columns: 30.5% 1fr; align-items: start; padding: 31px 16px; min-height: 104px; border-bottom: 1px solid var(--border); gap: 12px; font-size: 22px; line-height: 1.8; }
.profile-list dt { color: #667770; }
.profile-list dd { margin: 0; overflow-wrap: anywhere; }
.profile-note { font-size: 17px; color: #667770; line-height: 1.6; margin: 22px 0 0; }
.account-footer { padding: 27px 24px 30px; text-align: center; background: var(--sage); color: #6e7b73; font-size: 17px; line-height: 1.6; }
.account-footer p { margin: 4px 0; }
.loading-message { font-size: 18px; line-height: 1.7; color: var(--muted); }
.retry-button { display: block; margin-top: 20px; font-size: 17px; }

@media (max-width: 1100px) {
  .auth-panel { padding-left: 5vw; padding-right: 5vw; }
  .brand-panel { padding-left: 4vw; padding-right: 3vw; }
  .brand-footer { left: 4vw; font-size: 13px; }
  .brand-copy p { font-size: 20px; }
  .brand-copy h2 { font-size: 5.1vw; }
  .form-header h1 { font-size: 38px; }
  .form-header p { font-size: 16px; }
  .account-main { max-width: 820px; }
}

@media (max-width: 720px) {
  .auth-layout { display: block; }
  .brand-panel { min-height: 0; padding: 27px 26px 28px; }
  .wordmark { font-size: 25px; }
  .brand-copy { margin-top: 34px; }
  .brand-copy h2 { font-size: clamp(36px, 8.6vw, 48px); line-height: 1.2; letter-spacing: -.04em; }
  .brand-copy p { margin-top: 13px; font-size: 15px; letter-spacing: 0; }
  .brand-orbits, .brand-footer { display: none; }
  .auth-panel { display: block; padding: 32px 26px 76px; }
  .auth-content { max-width: 480px; padding: 0; margin: 0 auto; }
  .form-header h1 { font-size: 31px; }
  .form-header p { font-size: 14px; }
  .form-field label { font-size: 16px; margin-bottom: 8px; }
  .form-field input, .form-field select { height: 55px; font-size: 16px; padding-left: 16px; border-radius: 9px; }
  .form-field + .form-field { margin-top: 20px; }
  .primary-button { min-height: 57px; font-size: 17px; border-radius: 9px; }
  .form-message[hidden] + .primary-button { margin-top: 25px; }
  .switch-prompt { margin-top: 20px; font-size: 15px; }
  .auth-footer { bottom: 25px; right: 26px; font-size: 12px; }
  .site-header { min-height: 84px; padding: 21px 24px; }
  .site-header .wordmark { font-size: 26px; }
  .outline-button { font-size: 14px; padding: 8px 15px; }
  .account-main { width: calc(100% - 48px); padding: 49px 0 55px; }
  .account-intro { gap: 14px; }
  .account-intro h1 { font-size: 31px; letter-spacing: -.04em; }
  .account-intro p { font-size: 16px; line-height: 1.8; margin-top: 12px; letter-spacing: 0; }
  .user-avatar { width: 51px; height: 51px; font-size: 23px; }
  .account-details { margin-top: 45px; }
  .account-details h2 { font-size: 23px; margin-bottom: 18px; }
  .profile-list > div { grid-template-columns: 34% 1fr; font-size: 17px; padding: 23px 6px; min-height: 79px; }
  .profile-note { font-size: 14px; margin-top: 19px; }
  .account-footer { font-size: 13px; padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
