/* 注册页 2026-11-17：与登录页同一套 auth-stage（光束背景 + 玻璃卡片），右侧表单、左侧「会员可以做什么」。
   portal-layout-20261110.css 在本文件之后加载，所以选择器都带 .auth-stage.reg-stage 提高优先级。 */
.auth-stage.reg-stage .reg-auth{width:min(460px,calc(100% - 32px))}
.auth-stage.reg-stage .reg-card{padding:28px 26px 22px}
.auth-stage.reg-stage .reg-card .member-lede{margin:8px auto 20px;max-width:34em;font-size:14.5px;line-height:1.65}
.auth-stage.reg-stage .reg-card .ref-invited{margin:0 0 18px}
.auth-stage.reg-stage .reg-form .auth-fields{gap:18px}
.auth-stage.reg-stage .reg-form .field-help{margin-top:7px;font-size:12.5px;line-height:1.55;color:#5B6B85}
.auth-stage.reg-stage .reg-form .check-row{margin:2px 0 0;padding:12px 14px;border:1px solid #E1E7F2;border-radius:12px;background:rgb(255 255 255/.6);cursor:pointer}
.auth-stage.reg-stage .reg-form .check-row span{font-size:13.5px;font-weight:500;line-height:1.6;color:#334155}
.auth-stage.reg-stage .reg-form .check-row:has(input:checked){border-color:rgb(37 99 235/.45);background:rgb(37 99 235/.06)}
.auth-stage.reg-stage .reg-form .has-error .check-row{border-color:#ef4444;background:#fef2f2}
.auth-stage.reg-stage .reg-form .member-submit{margin-top:20px}
.auth-stage.reg-stage .reg-form .field-help,.auth-stage.reg-stage .reg-card .member-lede,.reg-perks small,.reg-note{text-wrap:pretty}
.auth-stage.reg-stage .reg-form .has-error .field-help{display:none}  /* 出错时只留错误提示 */
.auth-stage.reg-stage .reg-form .has-error :is(input:not([type=checkbox]),select){border-color:#ef4444;background:#fef2f2}
.auth-stage.reg-stage .reg-form .field-error{margin-top:7px;font-size:13px;line-height:1.5}

/* 会员可以做什么 */
.reg-perks{width:100%;color:#1E2A4A}
.reg-perks-art{display:block;width:min(100%,300px);height:auto;margin:0 auto 6px;filter:drop-shadow(0 14px 18px rgb(30 45 100/.14))}
.reg-perk-icon{flex:0 0 auto;width:46px;height:46px;margin:-4px 0 -4px -4px;object-fit:contain}
.reg-perks h2{margin:0 0 12px;font-size:17px;font-weight:700;color:#14213D}
.reg-perks ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.reg-perks li{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid rgb(255 255 255/.9);border-radius:16px;background:rgb(255 255 255/.62);box-shadow:0 8px 20px rgb(30 45 100/.07)}
.reg-perks li>.ui-icon{flex:0 0 auto;width:36px;height:36px;padding:8px;border-radius:11px;background:#E8EFFE;color:#2563EB}
.reg-perks li>span{display:grid;gap:3px;min-width:0}
.reg-perks strong{font-size:15px;color:#14213D}
.reg-perks small{font-size:13px;line-height:1.6;color:#4A5873}
.reg-note{display:flex;gap:8px;align-items:flex-start;margin:14px 2px 0;font-size:12.5px;line-height:1.6;color:#4A5873}
.reg-note .ui-icon{flex:0 0 auto;width:15px;height:15px;margin-top:3px;color:#2563EB}

@media(min-width:980px){
  .auth-stage.reg-stage .reg-auth{display:grid;width:min(1000px,calc(100% - 48px));grid-template-columns:minmax(0,1fr) 460px;grid-template-areas:"perks logo" "perks card" "perks lang";column-gap:64px;row-gap:18px;align-items:center}
  .auth-stage.reg-stage .reg-auth>.auth-logo{grid-area:logo;justify-self:center}
  .auth-stage.reg-stage .reg-auth>.reg-card{grid-area:card}
  .auth-stage.reg-stage .reg-auth>.auth-lang{grid-area:lang;justify-self:center}
  .reg-perks{grid-area:perks;align-self:center;max-width:440px;justify-self:end}
  .reg-perks-art{width:min(100%,420px);margin:0 auto 10px;filter:drop-shadow(0 18px 22px rgb(30 45 100/.16))}
  .reg-perks h2{font-size:20px}
}
@media(max-width:979px){
  .auth-stage.reg-stage .reg-auth{padding-bottom:8px}
  .reg-perks{margin-top:6px}
}
@media(max-width:420px){
  .auth-stage.reg-stage .reg-card{padding:24px 18px 20px}
  .reg-perks li{padding:12px 14px}
}

:root[data-theme="dark"] .auth-stage.reg-stage .reg-form .field-help{color:#A9B8D0}
:root[data-theme="dark"] .auth-stage.reg-stage .reg-form .check-row{background:rgb(255 255 255/.04);border-color:#33425C}
:root[data-theme="dark"] .auth-stage.reg-stage .reg-form .check-row span{color:#D5DFEE}
:root[data-theme="dark"] .auth-stage.reg-stage .reg-form .has-error :is(input:not([type=checkbox]),select),:root[data-theme="dark"] .auth-stage.reg-stage .reg-form .has-error .check-row{border-color:#f87171;background:rgb(239 68 68/.12)}
:root[data-theme="dark"] .auth-stage.reg-stage .reg-form .check-row:has(input:checked){background:rgb(59 130 246/.12);border-color:#3B82F6}
:root[data-theme="dark"] .reg-perks{color:#E8EEF8}
:root[data-theme="dark"] .reg-perks h2,:root[data-theme="dark"] .reg-perks strong{color:#E8EEF8}
:root[data-theme="dark"] .reg-perks li{background:rgb(20 28 43/.7);border-color:rgb(255 255 255/.10);box-shadow:none}
:root[data-theme="dark"] .reg-perks li>.ui-icon{background:rgb(59 130 246/.16);color:#7AA7FF}
:root[data-theme="dark"] .reg-perks small,:root[data-theme="dark"] .reg-note{color:#A9B8D0}
:root[data-theme="dark"] .reg-note .ui-icon{color:#7AA7FF}

/* 重设密码页：同一套 auth-stage；短信重设在前，Authenticator 折叠在下面 */
.auth-stage.reset-stage .reset-again{margin:12px 0 0;text-align:center;font-size:13.5px}
.auth-stage.reset-stage .reset-again a,.auth-stage.reset-stage .reset-note a{color:#2563EB;font-weight:600}
.auth-stage.reset-stage .reset-alt{margin:20px 0 0;border:1px solid #E1E7F2;border-radius:14px;background:rgb(255 255 255/.6)}
.auth-stage.reset-stage .reset-alt>summary{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 14px;list-style:none;cursor:pointer;font-size:14px;font-weight:600;color:#1E2A4A}
.auth-stage.reset-stage .reset-alt>summary::-webkit-details-marker{display:none}
.auth-stage.reset-stage .reset-alt>summary>span{flex:1}
.auth-stage.reset-stage .reset-alt>summary .ui-icon{flex:0 0 auto;width:18px;height:18px;color:#2563EB}
.auth-stage.reset-stage .reset-alt>summary .ui-icon:last-child{width:14px;height:14px;color:#64748B;transition:transform .2s}
.auth-stage.reset-stage .reset-alt[open]>summary .ui-icon:last-child{transform:rotate(180deg)}
.auth-stage.reset-stage .reset-alt>summary:hover{color:#2563EB}
.auth-stage.reset-stage .reset-alt>:not(summary){margin-left:14px;margin-right:14px}
.auth-stage.reset-stage .reset-alt>form{padding-bottom:16px}
.auth-stage.reset-stage .reset-alt .member-submit{margin-top:16px}
.auth-stage.reset-stage .reset-alt-lede{margin-top:0;margin-bottom:14px;font-size:13px;line-height:1.6;color:#4A5873;text-wrap:pretty}
.auth-stage.reset-stage .reset-note{margin:16px 2px 0}
.auth-stage.reset-stage .reset-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
:root[data-theme="dark"] .auth-stage.reset-stage .reset-alt{background:rgb(255 255 255/.04);border-color:#33425C}
:root[data-theme="dark"] .auth-stage.reset-stage .reset-alt>summary{color:#E8EEF8}
:root[data-theme="dark"] .auth-stage.reset-stage .reset-alt-lede{color:#A9B8D0}
:root[data-theme="dark"] .auth-stage.reset-stage :is(.reset-again,.reset-note) a,:root[data-theme="dark"] .auth-stage.reset-stage .reset-alt>summary .ui-icon:first-child{color:#7AA7FF}
@media(prefers-reduced-motion:reduce){.auth-stage.reset-stage .reset-alt>summary .ui-icon{transition:none}}

/* 输入说明收进小「!」：指过去 / 点一下才显示 */
.tip-row{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.tip-row>label{margin-bottom:0!important}
.field-tip{position:relative;display:inline-flex}
.tip-btn{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#DCE6FB;color:#2563EB;font:800 12px/1 system-ui,sans-serif;cursor:help;transition:background .15s,color .15s}
.tip-btn:before{content:"";position:absolute;inset:-12px}   /* 手指好点：触控区 42px */
.tip-btn:hover,.field-tip.is-open .tip-btn,.tip-btn:focus-visible{background:#2563EB;color:#fff}
.tip-btn:focus-visible{outline:2px solid #2563EB;outline-offset:2px}
.tip-body{position:absolute;z-index:20;top:calc(100% + 10px);left:-14px;width:max-content;max-width:min(270px,calc(100vw - 64px));padding:10px 12px;border-radius:12px;background:#14213D;color:#F1F5FB;font-size:12.5px;font-weight:500;line-height:1.55;text-wrap:pretty;box-shadow:0 14px 30px rgb(20 33 61/.28);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none}
.tip-body:before{content:"";position:absolute;top:-5px;left:20px;width:10px;height:10px;background:inherit;transform:rotate(45deg);border-radius:2px}
.field-tip.is-open .tip-body,.tip-btn:focus-visible+.tip-body{opacity:1;visibility:visible;transform:none}
@media(hover:hover){.field-tip:hover .tip-body{opacity:1;visibility:visible;transform:none}}
:root[data-theme="dark"] .tip-btn{background:rgb(59 130 246/.2);color:#7AA7FF}
:root[data-theme="dark"] .tip-btn:hover,:root[data-theme="dark"] .field-tip.is-open .tip-btn{background:#3B82F6;color:#fff}
:root[data-theme="dark"] .tip-body{background:#E8EEF8;color:#14213D;box-shadow:0 14px 30px rgb(0 0 0/.45)}
@media(prefers-reduced-motion:reduce){.tip-body,.tip-btn{transition:none}}

/* ChatGPT 3D 配图 */
.auth-stage.reset-stage .reset-art{display:block;width:150px;height:auto;margin:-8px auto 4px;filter:drop-shadow(0 12px 16px rgb(30 45 100/.14))}
@media(max-width:420px){.auth-stage.reset-stage .reset-art{width:124px}}
