/* 登录 / 注册：独立于应用导航，沿用衣序变量与现有摄影。 */
.auth-page { min-height: 100svh; max-width: 1120px; margin: auto; background: var(--paper); }
.auth-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.auth-editorial { position: relative; height: 350px; height: clamp(260px, 43svh, 390px); background: url('/assets/fashion-hero.png') center 8% / cover; }
.auth-editorial::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #fbf8f51c 45%, #fbf8f500 68%, var(--paper) 100%); pointer-events: none; }
.auth-back { position: absolute; z-index: 1; left: 16px; top: max(12px, env(safe-area-inset-top)); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.auth-editorial > .auth-back { background: #fbf8f57a; }
.auth-brand { position: absolute; top: max(48px, calc(env(safe-area-inset-top) + 44px)); left: 28px; z-index: 1; }
.auth-wordmark { display: inline-flex; align-items: center; gap: 6px; font: 44px/1.2 var(--serif); letter-spacing: 3px; color: #512e28; }
.auth-wordmark .icon { width: 35px; height: 35px; color: var(--rose-dark); stroke-width: 1.1; }
.auth-brand > p { font-size: 11px; margin-top: 9px; letter-spacing: 1px; color: #665a51; }
.auth-photo-caption { position: absolute; z-index: 1; top: 58%; left: 26px; font: 23px/1.6 var(--serif); color: #fffdf9; transform: rotate(-5deg); text-shadow: 0 1px 9px #352e2b66; }
.auth-photo-caption span { margin-left: 22px; }
.auth-content { padding: 0 25px max(22px, env(safe-area-inset-bottom)); }
.auth-heading { text-align: center; padding: 1px 0 22px; }
.auth-heading h1 { font: 32px/1.4 var(--serif); letter-spacing: 1px; outline: none; }
.auth-heading p { font-size: 13px; color: #7a6c64; margin-top: 7px; }
.auth-field { min-height: 52px; display: flex; align-items: center; border: 1px solid #eaddd6; border-radius: 13px; background: #f8f4f166; margin-bottom: 12px; overflow: hidden; }
.auth-field:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px #bc766e12; }
.auth-field input { background: transparent; border: 0; padding: 13px 15px; border-radius: 0; font-size: 16px; min-width: 0; flex: 1; }
.auth-field input:focus { box-shadow: none; }
.auth-field input::placeholder, .auth-input::placeholder { color: #a89b92; }
.auth-country { flex: 0 0 78px; display: flex; align-items: center; justify-content: center; gap: 7px; border-right: 1px solid #e4d8d1; font-size: 15px; }
.auth-country .icon { width: 12px; height: 12px; transform: rotate(90deg); }
.auth-send { flex: 0 0 auto; padding: 4px 15px 4px 5px; min-height: 44px; font-size: 13px; color: var(--rose-dark); white-space: nowrap; }
.auth-send:disabled { cursor: default; opacity: .62; }
.auth-label { display: block; font-size: 14px; margin: 17px 0 7px; }
.auth-input { min-height: 52px; font-size: 16px; background: #f8f4f166; border-color: #eaddd6; }
.auth-help { font-size: 11px; line-height: 1.55; color: var(--muted); margin: 5px 0 7px; }
.auth-primary { display: block; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 28px; color: #fffdfb; background: var(--rose); font-size: 17px; letter-spacing: 1px; margin-top: 14px; }
.auth-primary:hover { background: var(--rose-dark); }
.auth-switch { text-align: center; font-size: 13px; color: #8a7b72; margin-top: 16px; }
.auth-switch a, .auth-error a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 4px; margin-left: 5px; }
.auth-consent { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; color: #80756e; font-size: 11px; margin-top: 20px; min-height: 44px; }
.auth-consent input { appearance: none; width: 20px; height: 20px; min-width: 20px; border: 1px solid #918077; padding: 0; border-radius: 50%; margin: 0 5px 0 0; cursor: pointer; }
.auth-consent input:checked { background: var(--rose); border-color: var(--rose); box-shadow: inset 0 0 0 4px var(--paper); }
.auth-consent label { cursor: pointer; padding: 8px 0; }
.auth-consent a { text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; display: inline-block; }
.auth-error, .auth-notice { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-error { color: #9b4238; }
.auth-notice { color: #7b7f62; }
.auth-error:empty, .auth-notice:empty { display: none; }
.auth-availability { font-size: 11px; text-align: center; color: var(--muted); margin-top: 10px; }
.auth-availability:empty { display: none; }
.auth-availability button { color: var(--rose-dark); min-height: 44px; text-decoration: underline; }
.auth-invite-link, .auth-legacy-link { display: block; width: fit-content; margin: 4px auto 0; padding: 10px 14px; font-size: 12px; color: #88766b; }
.auth-invite-link[hidden] { display: none; }
.auth-legacy-link[hidden] { display: none; }
.auth-register .auth-editorial { display: none; }
.auth-register .auth-content { padding-top: max(16px, env(safe-area-inset-top)); }
.auth-register-header { display: flex; justify-content: center; align-items: center; position: relative; height: 48px; }
.auth-register-header .auth-back { left: -12px; top: 0; }
.auth-register-header .auth-wordmark { font-size: 28px; }
.auth-register-header .auth-wordmark .icon { width: 27px; height: 27px; }
.auth-register .auth-heading { padding: 14px 0 16px; text-align: left; }
.auth-register .auth-heading h1 { font-size: 32px; line-height: 1.4; }
.auth-register .auth-heading p { font-size: 12px; margin-top: 9px; line-height: 1.9; }
.auth-detail-photo { height: 112px; border-radius: 16px; background: url('/assets/fashion-hero.png') 43% 35% / 120%; margin-bottom: 16px; }
.auth-register .auth-label { margin-top: 12px; }
.auth-register .auth-field { margin-bottom: 0; }
.auth-register .auth-consent { margin: 10px 0 1px; font-size: 10px; }
.auth-register .auth-primary { margin-top: 8px; }
.auth-footnote { display: flex; align-items: center; gap: 12px; color: #b09587; font-size: 10px; letter-spacing: 1px; margin: 14px 0 6px; justify-content: center; }
.auth-footnote::before, .auth-footnote::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-legal { max-width: 660px; min-height: 100svh; padding: max(24px, env(safe-area-inset-top)) 25px 55px; margin: auto; }
.auth-legal-back { display: flex; align-items: center; gap: 6px; min-height: 44px; width: fit-content; margin: 0 0 30px; color: var(--muted); }
.auth-legal h1 { font: 30px var(--serif); margin-top: 35px; }
.auth-legal-version { font-size: 12px; color: var(--muted); margin-top: 10px; }
.auth-legal h2 { font-size: 17px; margin: 28px 0 10px; }
.auth-legal p { line-height: 1.95; }
.auth-legal-review { padding-top: 25px; margin-top: 30px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (min-width: 781px) {
  .auth-page { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100dvh; }
  .auth-editorial { height: auto; min-height: 100%; background-position: center; }
  .auth-editorial::after { background: linear-gradient(90deg, transparent 80%, var(--paper)); }
  .auth-brand { top: 80px; left: 38px; }
  .auth-wordmark { font-size: 52px; }
  .auth-brand > p { font-size: 12px; }
  .auth-photo-caption { top: auto; bottom: 75px; font-size: 28px; }
  .auth-content { width: 100%; max-width: 430px; margin: auto; padding: 70px 25px; }
  .auth-heading { padding-bottom: 30px; }
  .auth-heading h1 { font-size: 35px; }
  .auth-register .auth-editorial { display: block; }
  .auth-register .auth-content { padding-top: 36px; padding-bottom: 36px; }
  .auth-register-header .auth-back { display: none; }
  .auth-register .auth-heading { padding-top: 25px; }
  .auth-detail-photo { height: 100px; margin-bottom: 15px; }
}
@media (max-width: 360px) { .auth-content { padding-left: 20px; padding-right: 20px; } .auth-register .auth-heading h1 { font-size: 30px; } .auth-consent { font-size: 10px; } }
@media (prefers-reduced-motion: no-preference) { .auth-content { animation: auth-appear .3s ease-out; } @keyframes auth-appear { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } } }

@media(max-width:780px){
  .auth-consent,.auth-register .auth-consent{font-size:12px;line-height:1.7;column-gap:4px}
  .auth-invite-link,.auth-legacy-link,.auth-availability{font-size:13px}
  .auth-brand>p{font-size:12px}
}

/* 摄影背景上的品牌说明使用浅底，避免落在深色窗框上难以辨认。 */
.auth-brand>p{width:fit-content;padding:4px 8px;margin-left:-8px;border-radius:6px;background:#fff8efe8;color:#5b463c}
