/* Authentication only: business pages retain the existing design system. */
.auth.auth-stage {
  --auth-primary: #d20d40;
  --auth-wine: #68091d;
  --auth-ink: #17212b;
  --auth-muted: #75808f;
  --auth-line: #dce1e7;
  --auth-height: 54px;
  --auth-radius: 10px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 40px 32px 64px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 12% 94%, #f7c6ca 0, transparent 48%),
              radial-gradient(ellipse at 90% 0, #ffe9e6 0, transparent 48%), #fff8f6;
  color: var(--auth-ink);
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}
.auth-stage::before, .auth-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 120%;
  height: 46%;
  border: 36px solid #e8526810;
  border-radius: 50%;
  transform: rotate(25deg);
  pointer-events: none;
}
.auth-stage::before { left: -42%; bottom: -20%; border-top-color: #e9426230; }
.auth-stage::after { right: -64%; top: -20%; border-bottom-color: #f3c6c940; }
.hong-auth-card {
  display: grid;
  grid-template-columns: 46% 54%;
  width: min(1280px, 100%);
  min-width: 0;
  min-height: 780px;
  overflow: hidden;
  border: 1px solid #ffffffd9;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 80px #94172b1a;
}
.auth-stage .authaside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-width: 0;
  padding: 48px 62px 86px;
  color: #fff2de;
  background: radial-gradient(ellipse at 100% 15%, #b10b27, transparent 66%), linear-gradient(140deg, #48040e, #81071d);
}
.auth-stage .authaside > :not(.hong-auth-waves) { position: relative; z-index: 1; }
.auth-stage .authaside .hong-brand { gap: 24px; align-items: center; }
.auth-stage .authaside .hong-logo { width: 110px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 8px; }
.auth-stage .brandtext { display: block; min-width: 0; }
.auth-stage .authaside .hong-brand strong { font-size: 28px; font-weight: 700; }
.auth-stage .authaside .hong-brand small { margin-top: 8px; font-size: 13px; letter-spacing: 1.6px; color: #e9bdc3; }
.auth-stage .authaside h1 { margin: 28px 0 18px; font-size: 44px; font-weight: 750; line-height: 1.32; letter-spacing: -.6px; }
.auth-stage .hong-auth-tagline { margin: 0; font-size: 17px; line-height: 1.7; color: #f5e1db; }
.hong-auth-features { list-style: none; display: grid; gap: 18px; padding: 0; margin: 30px 0 0; }
.hong-auth-features li { display: flex; align-items: center; gap: 18px; }
.hong-auth-feature-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border: 1px solid #ffc69422; border-radius: 14px; color: #ffebbb; background: linear-gradient(135deg, #d5434f80, #b51a2a80); }
.hong-auth-feature-icon svg { width: 28px; height: 28px; }
.hong-auth-features strong { font-size: 19px; line-height: 1.5; font-weight: 650; }
.auth-stage .hong-auth-features p { font-size: 14px; line-height: 1.6; margin: 2px 0 0; color: #f3d3d4; }
.hong-auth-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 180px; pointer-events: none; }
.auth-stage .authmain { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 48px 64px; background: linear-gradient(140deg, #fff, #fffdfd); }
.auth-stage .authform { display: flex; flex-direction: column; width: 100%; max-width: 500px; min-width: 0; gap: 0; }
.hong-auth-heading { margin-bottom: 32px; }
.auth-stage .hong-auth-heading h1 { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 750; letter-spacing: -.8px; }
.auth-stage .hong-auth-heading p { margin: 12px 0 0; color: var(--auth-muted); font-size: 16px; line-height: 1.6; }
.hong-auth-field { min-width: 0; margin-bottom: 22px; }
.hong-auth-field > label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; line-height: 1.5; color: #29313d; }
.hong-auth-field > label span { color: var(--auth-muted); font-size: 12px; font-weight: 400; }
.hong-auth-control { position: relative; display: flex; align-items: center; }
.hong-auth-control > svg { position: absolute; left: 16px; width: 21px; height: 21px; color: #78818f; pointer-events: none; }
.hong-auth-control input { display: block; width: 100%; min-width: 0; height: var(--auth-height); padding: 0 16px 0 46px; border: 1px solid var(--auth-line); border-radius: var(--auth-radius); background: #fff; color: var(--auth-ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.hong-auth-control input[name=password], .hong-auth-control input[name=confirm_password] { padding-right: 50px; }
.hong-auth-control input::placeholder { color: #8a93a1; opacity: 1; }
.hong-auth-control input:hover { border-color: #b8c0cc; }
.hong-auth-control input:focus { outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 3px #d20d4014; }
.auth-stage .hong-auth-eye { position: absolute; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #7c8490; padding: 9px; }
.hong-auth-eye svg { width: 21px; height: 21px; }
.auth-stage .hong-auth-eye:hover { background: #fff0f4; color: var(--auth-primary); }
.auth-stage button:focus-visible, .hong-auth-options input:focus-visible { outline: 2px solid #ae0b32; outline-offset: 3px; }
.hong-auth-feedback { min-height: 34px; max-height: 78px; margin: 2px 0 0; overflow-y: auto; }
.auth-stage .hong-auth-field:has(+ .hong-auth-feedback) { margin-bottom: 0; }
.auth-stage #auth-status, .auth-stage #auth-error { margin: 0; padding: 7px 10px; border-radius: 7px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-stage #auth-status { background: #eef8f2; color: #25613f; }
.auth-stage #auth-error { background: #fff0f1; color: #b61a35; white-space: normal; }
.auth-stage #auth-status:empty, .auth-stage #auth-error:empty { display: none; }
.auth-stage button.hong-auth-submit { width: 100%; height: 56px; justify-content: center; text-align: center; padding: 0 20px; border: 1px solid #cf0d3c; border-radius: var(--auth-radius); color: #fff; background: linear-gradient(120deg, #d0043b, #d73558); font-size: 18px; font-weight: 650; }
.auth-stage button.hong-auth-submit:hover:not(:disabled) { background: linear-gradient(120deg, #ba0732, #c7274c); color: #fff; }
.auth-stage button:disabled { opacity: .55; cursor: not-allowed; }
.hong-auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.hong-auth-options label { display: inline-flex; min-height: 36px; align-items: center; gap: 9px; color: #64717e; font-size: 14px; cursor: pointer; }
.hong-auth-options input { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--auth-primary); }
.auth-stage .hong-auth-link { border: 0; padding: 5px 0; background: transparent; color: var(--auth-primary); font-size: 14px; font-weight: 600; }
.auth-stage .hong-auth-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hong-auth-divider { display: flex; align-items: center; gap: 20px; margin: 28px 0 20px; color: #89919e; font-size: 14px; }
.hong-auth-divider::before, .hong-auth-divider::after { content: ''; flex: 1; height: 1px; background: #e7e9ee; }
.auth-stage .hong-auth-secondary { width: 100%; height: 54px; justify-content: center; text-align: center; border: 1px solid var(--auth-primary); border-radius: var(--auth-radius); background: #fff; color: var(--auth-primary); font-size: 17px; font-weight: 600; }
.auth-stage .hong-auth-secondary:hover { background: #fff3f6; }
.auth-stage .hong-auth-back { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--auth-muted); }
.hong-auth-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 14px; }
.auth-stage:where(:not([data-auth-mode=login])) { --auth-height: 48px; }
.auth-stage:where(:not([data-auth-mode=login])) .authmain { padding: 36px 64px; }
.auth-stage:where(:not([data-auth-mode=login])) .hong-auth-heading { margin-bottom: 24px; }
.auth-stage:where(:not([data-auth-mode=login])) .hong-auth-heading h1 { font-size: 34px; }
.auth-stage:where(:not([data-auth-mode=login])) .hong-auth-heading p { margin-top: 8px; font-size: 15px; }
.auth-stage:where(:not([data-auth-mode=login])) .hong-auth-field { margin-bottom: 12px; }
.auth-stage:where(:not([data-auth-mode=login])) .hong-auth-field > label { font-size: 14px; margin-bottom: 6px; }
.auth-stage:where(:not([data-auth-mode=login])) button.hong-auth-submit { height: 52px; }
.auth-stage .hong-auth-email-row > .hong-auth-field { margin: 0; }
.auth-stage #send-code { height: var(--auth-height); padding: 0 16px; min-width: 124px; justify-content: center; border: 1px solid var(--auth-primary); border-radius: var(--auth-radius); background: #fff; color: var(--auth-primary); font-size: 14px; font-weight: 600; }
body:has(.auth-stage) .support-float { height: 48px; justify-content: center; font-size: 14px; right: 24px; bottom: 20px; padding: 0 22px; }
@media (min-width: 801px) and (max-height: 850px) {
  .auth.auth-stage { --auth-height: 46px; padding: 24px 28px 64px; }
  .hong-auth-card { min-height: 680px; }
  .auth-stage .authaside { padding: 32px 48px 64px; }
  .auth-stage .authaside .hong-logo { width: 90px; }
  .auth-stage .authaside .hong-brand { gap: 20px; }
  .auth-stage .authaside .hong-brand strong { font-size: 24px; }
  .auth-stage .authaside h1 { margin-top: 24px; font-size: 36px; }
  .auth-stage .hong-auth-tagline { font-size: 15px; }
  .hong-auth-features { margin-top: 24px; gap: 16px; }
  .hong-auth-feature-icon { width: 46px; height: 46px; }
  .hong-auth-features strong { font-size: 17px; }
  .auth-stage .hong-auth-features p { font-size: 13px; }
  .auth-stage .authmain { padding: 28px 54px; }
  .auth-stage .hong-auth-heading h1 { font-size: 34px; }
  .hong-auth-heading { margin-bottom: 24px; }
  .auth-stage .hong-auth-heading p { font-size: 15px; margin-top: 8px; }
  .hong-auth-field > label { font-size: 14px; margin-bottom: 6px; }
  .hong-auth-control input { font-size: 15px; }
  .hong-auth-field { margin-bottom: 18px; }
  .auth-stage:where(:not([data-auth-mode=login])) .hong-auth-field, .hong-auth-email-row { margin-bottom: 10px; }
  .auth-stage .hong-auth-email-row > .hong-auth-field { margin-bottom: 0; }
  .auth-stage button.hong-auth-submit, .auth-stage .hong-auth-secondary { height: 48px; font-size: 16px; }
  .hong-auth-divider { margin-top: 22px; margin-bottom: 16px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .auth-stage .authaside { padding-left: 32px; padding-right: 32px; }
  .auth-stage .authaside .hong-logo { width: 78px; }
  .auth-stage .authaside .hong-brand { gap: 14px; }
  .auth-stage .authaside .hong-brand strong { font-size: 22px; }
  .auth-stage .authaside h1 { font-size: 34px; }
  .auth-stage .hong-auth-tagline { font-size: 13px; }
  .auth-stage .authmain { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 800px) {
  body:has(.auth-stage) { min-height: 100svh; background: #fff3f2; }
  .auth.auth-stage { --auth-height: 50px; height: calc(100svh - 68px - env(safe-area-inset-bottom, 0px)); min-height: 0; overflow-y: auto; padding: 20px 14px 24px; place-items: start center; }
  .hong-auth-card { grid-template-columns: 1fr; max-width: 540px; min-height: 0; border-radius: 22px; }
  .auth-stage .authaside { display: block; padding: 20px 26px; }
  .auth-stage .authaside .hong-logo { width: 55px; }
  .auth-stage .authaside .hong-brand { gap: 16px; }
  .auth-stage .authaside .hong-brand strong { font-size: 23px; }
  .auth-stage .authaside .hong-brand small { font-size: 10px; margin-top: 6px; }
  .auth-stage .authaside h1, .auth-stage .hong-auth-tagline, .hong-auth-features, .hong-auth-waves { display: none; }
  .auth-stage .authmain { padding: 28px 24px; }
  .auth-stage .hong-auth-heading h1 { font-size: 30px; }
  .auth-stage .hong-auth-heading p { font-size: 14px; margin-top: 8px; }
  .hong-auth-heading { margin-bottom: 26px; }
  .hong-auth-field { margin-bottom: 18px; }
  .hong-auth-field > label { font-size: 14px; margin-bottom: 7px; }
  .hong-auth-control input { font-size: 14px; padding-left: 40px; }
  .hong-auth-control > svg { left: 13px; width: 19px; height: 19px; }
  .hong-auth-field > label span { font-size: 11px; }
  .auth-stage #send-code { min-width: 108px; font-size: 13px; padding: 0 10px; }
  .hong-auth-email-row { gap: 9px; }
  .auth-stage button.hong-auth-submit, .auth-stage .hong-auth-secondary { height: 50px; font-size: 16px; }
  .hong-auth-divider { margin: 22px 0 18px; }
  body:has(.auth-stage) .support-float { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); height: 44px; padding: 0 17px; font-size: 13px; }
}
@media (max-width: 800px) and (max-height: 700px) {
  .auth.auth-stage { --auth-height: 44px; padding-top: 12px; }
  .auth-stage .authaside { padding: 12px 24px; }
  .auth-stage .authaside .hong-logo { width: 40px; }
  .auth-stage .authaside .hong-brand strong { font-size: 20px; }
  .auth-stage .authmain { padding-top: 22px; padding-bottom: 22px; }
  .hong-auth-heading { margin-bottom: 20px; }
  .auth-stage .hong-auth-heading h1 { font-size: 28px; }
  .hong-auth-field { margin-bottom: 16px; }
}
@media (max-width: 360px) {
  .auth.auth-stage { padding-left: 8px; padding-right: 8px; }
  .auth-stage .authmain { padding-left: 18px; padding-right: 18px; }
  .hong-auth-email-row { grid-template-columns: 1fr; }
  .auth-stage #send-code { width: 100%; }
  .hong-auth-options, .hong-auth-options label, .auth-stage .hong-auth-link { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .hong-auth-control input { transition: none; } }
