/* Sixuan Lumina Auth — adapted from the Stitch account design. */
[hidden] { display: none !important; }
.account-page {
  --auth-bg: #f5f8fa;
  --auth-panel: rgba(255, 255, 255, .76);
  --auth-ink: #16313d;
  --auth-muted: #61727f;
  --auth-line: rgba(68, 91, 106, .14);
  --auth-input: #f0f4f6;
  --auth-rim: rgba(255, 255, 255, .95);
  --auth-lime: #b9f46a;
  --auth-lime-ink: #1b3010;
  --auth-shadow: 0 24px 70px -24px rgba(40, 66, 82, .19), 0 2px 5px rgba(50, 77, 94, .03);
  --auth-inset: inset 3px 3px 7px rgba(45, 67, 82, .045), inset -3px -3px 7px rgba(255, 255, 255, .9);
  color: var(--auth-ink);
  background: radial-gradient(ellipse at 0 15%, rgba(185, 244, 106, .17), transparent 37%), radial-gradient(ellipse at 98% 80%, rgba(162, 215, 235, .18), transparent 36%), var(--auth-bg);
  background-attachment: fixed;
  font-family: "Helvetica Neue", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] .account-page {
  --auth-bg: #0f1d25;
  --auth-panel: rgba(25, 42, 51, .8);
  --auth-ink: #eaf1f1;
  --auth-muted: #a7b8bf;
  --auth-line: rgba(184, 208, 213, .15);
  --auth-input: #142730;
  --auth-rim: rgba(210, 231, 234, .12);
  --auth-shadow: 0 24px 70px -24px rgba(0, 0, 0, .5), 0 2px 5px rgba(0, 0, 0, .1);
  --auth-inset: inset 3px 3px 7px rgba(0, 0, 0, .17), inset -2px -2px 6px rgba(255, 255, 255, .02);
  background-image: radial-gradient(ellipse at 0 15%, rgba(185, 244, 106, .055), transparent 37%), radial-gradient(ellipse at 98% 80%, rgba(103, 183, 203, .07), transparent 36%);
}
.account-page a, .account-page button { -webkit-tap-highlight-color: transparent; }
.account-page :is(a, button):focus-visible { outline: 2px solid var(--auth-ink); outline-offset: 4px; }
.account-header { background: color-mix(in srgb, var(--auth-bg) 82%, transparent); border-bottom: 1px solid var(--auth-line); backdrop-filter: blur(18px); }
.account-header .site-bar { width: min(1180px, calc(100% - 64px)); height: 80px; gap: 24px; }
.account-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px; }
.account-brand-mark { width: 42px; height: 42px; background: var(--auth-lime); border-radius: 14px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(145, 189, 87, .13); }
.account-brand-mark img { width: 28px; height: 28px; }
.account-brand-name { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: .03em; }
.account-brand-name small { display: block; font-size: 9px; font-weight: 500; color: var(--auth-muted); letter-spacing: .16em; margin-top: 3px; }
.account-back { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--auth-muted); font-size: 13px; min-height: 44px; white-space: nowrap; }
.account-back > span:first-child { font-size: 18px; }
.account-header .theme-switch { border-color: var(--auth-line); padding-left: 14px; gap: 2px; }
.account-header .theme-switch button { width: 36px; height: 36px; color: var(--auth-muted); border-radius: 10px; font-size: 18px; }
.account-header .theme-switch button[aria-pressed="true"] { background: var(--auth-ink); color: var(--auth-bg); box-shadow: 0 3px 8px rgba(22, 49, 61, .08); }
.account-layout { width: min(1120px, calc(100% - 96px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(48px, 7vw, 104px); align-items: center; padding: 64px 0 72px; min-height: calc(100svh - 154px); }
.account-intro { padding: 0; min-width: 0; }
.account-kicker { display: flex; align-items: center; gap: 9px; color: var(--auth-muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; line-height: 1.6; }
.account-kicker > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--auth-lime); box-shadow: 0 0 0 4px rgba(185, 244, 106, .12); flex-shrink: 0; }
.account-intro .intro-title { margin: 26px 0 20px; font-size: clamp(42px, 4.3vw, 58px); line-height: 1.3; font-weight: 650; letter-spacing: -.045em; }
.account-intro .intro-title em { font-style: normal; color: var(--auth-ink); }
.intro-description { font-size: 15px; line-height: 1.9; color: var(--auth-muted); }
.email-art { position: relative; height: 216px; max-width: 400px; margin: 32px 0 26px; overflow: hidden; }
.art-orbit { position: absolute; width: 235px; height: 235px; border: 1px solid var(--auth-line); border-radius: 50%; top: -29px; left: 52px; }
.orbit-two { width: 300px; height: 300px; top: -60px; left: 20px; opacity: .45; }
.mail-glass { position: absolute; top: 20px; left: 88px; width: 164px; height: 128px; background: var(--auth-panel); border: 1px solid var(--auth-rim); border-radius: 28px; box-shadow: var(--auth-shadow); transform: rotate(-9deg); backdrop-filter: blur(20px); display: grid; place-items: center; }
.mail-glass svg { width: 92px; height: 72px; color: var(--auth-ink); opacity: .8; }
.art-check { position: absolute; top: 105px; left: 224px; width: 48px; height: 48px; border: 5px solid var(--auth-bg); border-radius: 50%; background: var(--auth-lime); color: var(--auth-lime-ink); box-shadow: 0 8px 20px rgba(132, 165, 89, .12); display: grid; place-items: center; }
.art-check svg { width: 24px; height: 24px; }
.art-caption { position: absolute; bottom: 5px; left: 82px; color: var(--auth-muted); font-size: 12px; text-align: center; width: 180px; }
.art-caption span { display: block; font-size: 8px; letter-spacing: .2em; margin-top: 6px; opacity: .8; }
.intro-note { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--auth-line); font-size: 13px; }
.note-mark { width: 34px; height: 34px; border-radius: 50%; background: rgba(185, 244, 106, .22); color: var(--auth-ink); display: grid; place-items: center; flex-shrink: 0; }
.intro-note small { display: block; color: var(--auth-muted); font-size: 11px; margin-top: 3px; }
.account-note { max-width: 355px; color: var(--auth-muted); font-size: 11px; line-height: 1.8; margin-top: 24px; }
.account-card { border: 1px solid var(--auth-rim); border-radius: 28px; background: var(--auth-panel); box-shadow: var(--auth-shadow), inset 0 0 0 1px rgba(60, 80, 95, .025); padding: 32px; backdrop-filter: blur(24px); min-width: 0; }
.account-tabs { display: flex; padding: 4px; background: var(--auth-input); border: 1px solid var(--auth-line); border-radius: 14px; box-shadow: var(--auth-inset); margin-bottom: 28px; }
.account-tabs button { border: 0; background: transparent; border-radius: 10px; flex: 1; color: var(--auth-muted); font-size: 13px; padding: 8px 4px; min-height: 38px; white-space: nowrap; transition: background .18s, box-shadow .18s; }
.account-tabs button[aria-pressed="true"] { background: var(--auth-panel); color: var(--auth-ink); font-weight: 650; box-shadow: 0 2px 7px rgba(26, 49, 65, .07), inset 0 1px 0 var(--auth-rim); }
.account-journey { padding: 0; margin: 0 0 30px; display: flex; justify-content: space-between; gap: 6px; list-style: none; }
.account-journey li { display: flex; align-items: center; gap: 6px; color: var(--auth-muted); font-size: 10px; line-height: 1.4; position: relative; }
.account-journey li:not(:last-child)::after { content: ''; position: absolute; left: calc(100% + 7px); width: clamp(12px, 2vw, 32px); height: 1px; background: var(--auth-line); }
.journey-number { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--auth-input); color: var(--auth-muted); font-size: 10px; font-weight: 600; flex-shrink: 0; }
.account-journey .is-current { color: var(--auth-ink); font-weight: 600; }
.is-current .journey-number, .is-complete .journey-number { background: var(--auth-lime); color: var(--auth-lime-ink); box-shadow: 0 2px 8px rgba(159, 201, 104, .15); }
.form-heading { margin-bottom: 24px; }
.form-eyebrow { font-size: 11px; letter-spacing: .04em; margin-bottom: 10px; }
.form-heading h1 { color: var(--auth-ink); font-size: 29px; font-weight: 650; line-height: 1.4; letter-spacing: -.04em; margin: 0 0 10px; }
.account-muted { color: var(--auth-muted); font-size: 13px; line-height: 1.8; }
.account-card form { margin: 0; }
.account-card label { display: block; font-size: 12px; font-weight: 550; margin: 18px 0 8px; }
.account-card form > label:first-child { margin-top: 0; }
.account-card input:not([type="checkbox"]) { width: 100%; display: block; min-height: 52px; border: 1px solid var(--auth-line); border-radius: 12px; background: var(--auth-input); box-shadow: var(--auth-inset); color: var(--auth-ink); font-size: 16px; line-height: 1.5; padding: 12px 14px; transition: border-color .18s, box-shadow .18s; }
.account-card input::placeholder { color: var(--auth-muted); opacity: 1; }
.account-card input:focus { outline: none; border-color: var(--auth-ink); box-shadow: 0 0 0 4px rgba(185, 244, 106, .26), var(--auth-inset); }
.password-control { position: relative; }
.password-control input { padding-right: 52px !important; }
.password-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--auth-muted); border-radius: 9px; display: grid; place-items: center; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle[aria-pressed="true"] { color: var(--auth-ink); background: rgba(185, 244, 106, .16); }
.account-card .remember-row { display: flex; gap: 8px; align-items: center; color: var(--auth-muted); font-size: 11px; font-weight: 400; margin-top: 12px; min-height: 44px; }
.remember-row input { width: 17px; height: 17px; margin: 0; accent-color: #6e992e; }
.account-primary, .account-secondary { display: block; width: 100%; border: 1px solid var(--auth-line); border-radius: 12px; min-height: 52px; padding: 12px 16px; text-align: center; font-size: 14px; font-weight: 650; margin-top: 24px; transition: box-shadow .18s, transform .18s; }
.account-primary { border-color: transparent; background: var(--auth-lime); color: var(--auth-lime-ink); box-shadow: 0 8px 20px -4px rgba(156, 204, 91, .32), inset 0 1px 0 rgba(255, 255, 255, .35); }
.account-primary::after { content: '→'; float: right; font-size: 20px; font-weight: 400; line-height: 24px; margin-left: 8px; }
.account-primary:hover:not(:disabled) { box-shadow: 0 11px 26px -5px rgba(156, 204, 91, .48); }
.account-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 8px rgba(156, 204, 91, .2); }
.account-secondary { background: transparent; color: var(--auth-ink); margin-top: 12px; min-height: 46px; }
.account-text-button, .recovery-return { display: block; border: 0; background: transparent; color: var(--auth-muted); font-size: 12px; min-height: 44px; margin: 10px auto 0; padding: 8px 12px; border-radius: 8px; }
.recovery-return { margin-top: 16px; color: var(--auth-ink); }
.account-card button:disabled { cursor: default; opacity: .55; }
.account-card button:disabled.account-primary { cursor: wait; }
#code { text-align: center; font-family: "SFMono-Regular", Consolas, monospace; font-size: 22px; letter-spacing: .3em; }
#code::placeholder { font-family: inherit; font-size: 15px; letter-spacing: .05em; }
#verify-form > .account-muted { margin-top: 10px; font-size: 11px; }
.account-status { margin: 16px 0 0; padding: 12px; border-radius: 10px; color: var(--auth-ink); background: rgba(185, 244, 106, .12); border: 1px solid rgba(148, 185, 95, .16); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.account-status:empty { display: none; }
.account-status.is-error { color: #b52c35; background: rgba(233, 78, 90, .045); border-color: rgba(204, 58, 70, .16); }
:root[data-theme="dark"] .account-status.is-error { color: #ffb6bb; background: rgba(244, 115, 130, .05); }
.account-privacy { border-top: 1px solid var(--auth-line); padding-top: 18px; margin-top: 22px; color: var(--auth-muted); font-size: 10px; line-height: 1.8; display: flex; gap: 8px; align-items: start; }
.account-privacy svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.completion-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--auth-lime); color: var(--auth-lime-ink); margin: 20px 0; box-shadow: 0 6px 24px rgba(156, 204, 91, .18); }
.completion-icon svg { width: 32px; height: 32px; }
#completion-text { color: var(--auth-muted); font-size: 14px; line-height: 1.9; }
#profile h3 { font-size: 24px; line-height: 1.6; margin-top: 12px; overflow-wrap: anywhere; }
#profile-email { color: var(--auth-muted); font-size: 13px; overflow-wrap: anywhere; }
.account-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.account-footer { border-top: 1px solid var(--auth-line); padding: 12px 0; color: var(--auth-muted); font-size: 11px; }
.account-footer .wrap { width: min(1180px, calc(100% - 64px)); display: flex; justify-content: space-between; gap: 16px; }
@media (max-width: 980px) {
  .account-layout { grid-template-columns: minmax(0, 470px); justify-content: center; width: calc(100% - 48px); padding: 36px 0 48px; gap: 0; }
  .account-intro { display: none; }
}
@media (max-width: 600px) {
  .account-header .site-bar { width: calc(100% - 32px); height: auto; min-height: 72px; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
  .account-brand { gap: 8px; }
  .account-brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .account-brand-mark img { width: 24px; height: 24px; }
  .account-brand-name { font-size: 14px; }
  .account-brand-name small { font-size: 7px; letter-spacing: .09em; }
  .account-back { font-size: 11px; gap: 4px; }
  .back-word { display: none; }
  .account-header .theme-switch { padding-left: 6px; margin-left: auto; }
  .account-header .theme-switch button { width: 44px; height: 44px; font-size: 17px; }
  .account-layout { width: calc(100% - 32px); padding: 22px 0 32px; min-height: calc(100svh - 140px); align-items: start; }
  .account-card { padding: 24px 22px; border-radius: 24px; }
  .account-tabs { margin-bottom: 24px; }
  .account-tabs button { min-height: 44px; font-size: 12px; }
  .account-journey { margin-bottom: 26px; }
  .account-journey li:not(:last-child)::after { width: 16px; }
  .form-heading h1 { font-size: 28px; }
  .account-footer .wrap { width: calc(100% - 40px); flex-direction: row; }
}
@media (max-width: 359px) {
  .account-header .site-bar { gap: 6px 10px; }
  .account-header .theme-switch { border: 0; margin-right: 0; padding-left: 0; }
  .account-card { padding: 22px 18px; }
  .account-journey li { font-size: 9px; gap: 4px; }
  .account-journey li:not(:last-child)::after { width: 9px; left: calc(100% + 5px); }
}
@media (prefers-reduced-motion: reduce) {
  .account-page *, .account-page *::after { transition: none !important; animation: none !important; }
}
