/* 浮动之锚 · 账号流程（登录、注册、Google 回调、设置昵称、密码、退出）
 * 消费 fa-chrome.css 的设计变量，Light / Dark 自动适配。 */

.au { padding: 48px 0 80px; }
.au-shell { width: min(100% - 48px, 1040px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.au-shell.is-single { grid-template-columns: minmax(0, 1fr); width: min(100% - 48px, 520px); }

/* 左侧品牌面板 */
.au-side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px; padding: 44px 40px; background: var(--deep); color: #f4ede1; }
.au-side::before { content: ""; position: absolute; right: -30%; top: -30%; width: 90%; height: 90%; background: radial-gradient(closest-side, rgba(239, 122, 60, .28), transparent); pointer-events: none; }
.au-side::after { content: ""; position: absolute; left: -20%; bottom: -40%; width: 80%; height: 80%; background: radial-gradient(closest-side, rgba(245, 195, 59, .12), transparent); pointer-events: none; }
.au-side > * { position: relative; }
.au-brand { display: flex; align-items: center; gap: 12px; color: #f6efe2; text-decoration: none; }
.au-brand:focus-visible { outline: 2px solid #f6a77a; outline-offset: 5px; border-radius: 4px; }
.au-brand .mark { display: block; width: 44px; height: 44px; flex: none; object-fit: contain; border-radius: 23%; }
.au-brand .brand-txt { display: flex; flex-direction: column; gap: 4px; }
.au-brand .brand-txt b { font: 900 19px/1 var(--serif); letter-spacing: .12em; }
.au-brand:hover .brand-txt b { color: #f6a77a; }
.au-brand .brand-txt small { display: flex; align-items: center; gap: 6px; line-height: 1; }
.au-brand .brand-txt em { font: 400 16px/1 var(--hand); font-style: normal; color: #f6a77a; }
.au-brand .brand-txt i { width: 3px; height: 3px; border-radius: 50%; background: rgba(244, 237, 225, .35); }
.au-brand .brand-txt small span { font: italic 500 12.5px/1 var(--italic); color: rgba(244, 237, 225, .6); }
.au-kicker { font: italic 500 24px/1.2 var(--italic); color: #f6a77a; }
.au-side h2 { margin-top: 8px; font: 900 clamp(26px, 2.6vw, 32px)/1.4 var(--serif); color: #fff; }
.au-side p { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: rgba(244, 237, 225, .72); }
.au-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.au-perks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.au-perks svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(239, 122, 60, .16); color: #f6a77a; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-perks b { display: block; font-size: 14.5px; color: #fff; line-height: 1.5; }
.au-perks span { font-size: 13px; color: rgba(244, 237, 225, .62); line-height: 1.6; }
.au-quote { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font: 400 22px/1.4 var(--hand); color: rgba(244, 237, 225, .78); }

/* 右侧表单 */
.au-main { padding: 48px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.au-head .k { display: inline-flex; align-items: center; gap: 8px; }
.au-head .k i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.au-head h1 { margin-top: 10px; font: 900 clamp(28px, 3vw, 34px)/1.3 var(--serif); }
.au-head p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.au-head.center { text-align: center; }
.au-icon { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; background: var(--accent-soft); color: var(--accent-ink); }
.au-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-icon.ok { background: rgba(47, 179, 109, .14); color: #2a9a5f; }
.au-icon.bad { background: rgba(196, 64, 64, .12); color: #c44040; }

.au-form { margin-top: 26px; display: grid; gap: 18px; }
.au-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.au-input { position: relative; }
.au-input input { width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg); color: var(--ink); font: 500 15px/1 var(--sans); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.au-input input::placeholder { color: var(--muted-2); }
.au-input input:hover { border-color: var(--muted-2); }
.au-input input:focus { outline: none; border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.au-input.has-toggle input { padding-right: 52px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.au-eye:hover { color: var(--ink); background: var(--bg-2); }
.au-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-eye .off, .au-eye[aria-pressed="true"] .on { display: none; }
.au-eye[aria-pressed="true"] .off { display: block; }
.au-field .hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.au-field .err { margin-top: 6px; font-size: 13px; color: #c44040; }
.au-field.is-invalid input { border-color: #c44040; }
html[data-theme="dark"] .au-field .err { color: #e5a0a8; }
html[data-theme="dark"] .au-field.is-invalid input { border-color: #e5a0a8; }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.au-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.au-check input { width: 16px; height: 16px; accent-color: var(--accent); }

.au-alert { margin-top: 20px; padding: 12px 16px; border: 1px solid rgba(196, 64, 64, .35); border-radius: 14px; background: rgba(196, 64, 64, .07); color: #a83a3a; font-size: 14px; line-height: 1.7; }
html[data-theme="dark"] .au-alert { color: #e5a0a8; border-color: rgba(229, 160, 168, .35); background: rgba(229, 160, 168, .08); }
.au-alert p + p { margin-top: 4px; }

.au-btn { width: 100%; justify-content: center; height: 52px; }
.au-btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.au-btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: au-spin .8s linear infinite; }
.au-btn:hover { transform: none; }
.au-btn-google { background: var(--card); color: var(--ink); border-color: var(--line-2); gap: 12px; }
.au-btn-google:hover { border-color: var(--ink); background: var(--bg); }
.au-btn-google svg { width: 20px; height: 20px; flex: none; }
.au-btn-danger { background: #c44040; color: #fff; }
.au-btn-danger:hover { background: #a83a3a; }

.au-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 13px; color: var(--muted-2); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.au-foot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.au-foot a, .au-link { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.au-foot a:hover, .au-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-quiet { color: var(--muted); font-weight: 500; }
.au-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.au-actions .btn { justify-content: center; }
.au-actions:has(> [hidden]) { grid-template-columns: 1fr; }

/* 注册方式切换 */
.au-tabs { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.au-tabs button { height: 42px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.au-tabs button:hover { color: var(--ink); }
.au-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 6px 14px -10px rgba(60, 40, 10, .5); }
.au-panel[hidden] { display: none; }
.au-panel-google { margin-top: 26px; display: grid; gap: 14px; }
.au-panel-google p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* Google 回调：进度步骤 */
.au-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.au-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 14.5px; color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.au-steps .dot { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); }
.au-steps li.is-active { color: var(--ink); border-color: var(--accent-line); background: var(--accent-wash); }
.au-steps li.is-active .dot { border-color: var(--accent); border-right-color: transparent; animation: au-spin .8s linear infinite; }
.au-steps li.is-done { color: var(--ink-2); }
.au-steps li.is-done .dot { border-color: var(--accent); background: var(--accent); }
.au-steps li.is-done .dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.au-slow { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.au-state[hidden] { display: none; }

@keyframes au-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .au-btn[aria-busy="true"]::before, .au-steps li.is-active .dot { animation-duration: 2.4s; }
}

@media (max-width: 860px) {
  .au { padding: 24px 0 56px; }
  .au-shell { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 560px); border-radius: 24px; }
  .au-side { padding: 26px 24px; gap: 16px; }
  .au-side h2 { font-size: 22px; }
  .au-perks, .au-quote, .au-side p { display: none; }
  .au-main { padding: 32px 24px 30px; }
}
@media (max-width: 420px) {
  .au-actions { grid-template-columns: 1fr; }
}
.au-form-tight { margin-top: 0; }
