:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --card: #fffdf7;
  --ink: #17211b;
  --muted: #68716b;
  --line: #d9d5ca;
  --green: #176844;
  --green-dark: #0f4d33;
  --red: #a63d2f;
  --amber: #d8a633;
}

* { box-sizing: border-box; }
html { font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--green); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr); }
.auth-aside { position: relative; padding: clamp(32px, 7vw, 96px); color: #eef4ef; background: var(--green-dark); overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 56px rgba(255,255,255,.035), 0 0 0 112px rgba(255,255,255,.025); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 18px; }
.auth-aside h1 { max-width: 560px; margin: clamp(80px, 18vh, 180px) 0 18px; font: 500 clamp(36px, 5vw, 70px)/1.02 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.auth-aside p { max-width: 480px; color: #b9cbbf; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 750; color: var(--amber); }

.auth-main { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(100%, 480px); }
.auth-card h2 { margin: 0 0 8px; font: 600 32px/1.15 Georgia, "Songti SC", serif; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
.form-field { margin: 0 0 16px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 7px; }
.form-field input:focus, .form-field select:focus { outline: 3px solid rgba(23,104,68,.13); border-color: var(--green); }
.primary, .secondary, .danger { min-height: 44px; padding: 10px 16px; border-radius: 7px; border: 1px solid transparent; font-weight: 750; }
.primary { width: 100%; color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--ink); background: var(--card); border-color: var(--line); }
.danger { color: var(--red); background: transparent; border-color: #e2bdb6; }
.notice { display: none; margin: 14px 0; padding: 10px 12px; border: 1px solid #e8c1b9; border-radius: 7px; color: var(--red); background: #fff5f2; }
.notice.ok { color: var(--green); border-color: #b5d6c5; background: #f1faf5; }
.below { margin-top: 22px; color: var(--muted); font-size: 13px; }

.account-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 72px; }
.account-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0 28px; }
.account-nav .brand { color: var(--ink); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-panel { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.account-panel.wide { grid-column: 1 / -1; }
.account-panel h2 { margin: 0 0 6px; font: 600 24px/1.2 Georgia, "Songti SC", serif; }
.account-panel > p { margin: 0 0 20px; color: var(--muted); }
.inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline .form-field { flex: 1; min-width: 150px; }
.inline button { margin-bottom: 16px; }
.token-reveal { display: none; margin: 16px 0; padding: 14px; background: #122018; color: #d7eadf; border-radius: 8px; overflow-wrap: anywhere; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { overflow-x: auto; padding: 14px; color: #d7eadf; background: #122018; border-radius: 8px; white-space: pre-wrap; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.list-row small { display: block; color: var(--muted); }
.setup { width: min(850px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.setup h1 { font: 600 clamp(34px, 6vw, 60px)/1.05 Georgia, "Songti SC", serif; }
.setup section { margin-top: 38px; }
.setup .step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; color: white; background: var(--green); }

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 270px; }
  .auth-aside h1 { margin: 58px 0 12px; font-size: 42px; }
  .auth-main { padding: 40px 20px 64px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-panel.wide { grid-column: auto; }
}

