/* auth.css —— 登录 / 注册 / 重置密码页
 * 含左侧平台介绍、背景装饰与动效、右侧表单、注册页同意勾选行。
 * 依赖 base.css；弹窗样式在 legal.css。 */


/* ===== 认证页（登录 / 注册） ===== */
/* 生信科研气质：浅蓝底；真正的方格纸与柔光在左右栏的 ::after / ::before 上。
   这里原先还画了 48px 方格 + 两处蓝色柔光，但整页被 .auth-shell 的不透明白底
   盖住、一次没生效过，已删除（留着只会误导后来人）。 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 铺满视口：原来在桌面端是居中留白的 812px 卡片，显得局促 */
  padding: 0;
  background-color: var(--bg);
}

/* 左（平台介绍）+ 右（表单）双栏外壳：铺满整个视口
   比例 1.1 : 0.9 —— 右栏（表单）收窄一些，表单体不顶着屏幕中线 */
.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--card);
  overflow: hidden;
}

/* ---- 左侧：平台介绍 ---- */
.auth-aside {
  position: relative;
  /* z-index:0 → 自建层叠上下文，使背景装饰（z-index:-1）落在“栏背景之上、内容之下” */
  z-index: 0;
  display: flex;
  flex-direction: column;
  /* 内容整体垂直居中：全屏高度下不至于上方堆成一坨、下方空一片 */
  justify-content: center;
  align-items: flex-start;
  /* 四边分写：下边距大于上（内容略偏上）。
     左边距 = (左栏宽 − 内容列宽)/2：左栏宽 = 0.55×屏宽、内容列 560px，
     即 (0.55vw − 560)/2 = 27.5vw − 280px，让内容块在左栏里左右对称。
     关键：必须同时收窄内容列（660→560）。只调 padding 没用——
     那一排能力标签会撑满内容列，实际视觉范围就是内容列宽。 */
  padding:
    clamp(30px, 1.2vh + 24px, 48px)
    clamp(30px, 2vw + 8px, 64px)
    clamp(58px, 6.5vh, 110px)
    clamp(24px, 27.5vw - 280px, 720px);
  /* 矮屏（如 1024×600）可纵向滚动；用 auto 而非 hidden，避免底部免责声明被裁掉 */
  overflow-x: hidden;
  overflow-y: auto;
  /* 近白极浅蓝：同一个渐变在 348px 卡片里显精致，铺满 1056px 就变成“科技蓝模板”。
     全屏版压到几乎看不出色，只留一丝冷暖差与右栏的纯白区分开 */
  background: linear-gradient(168deg, #fcfdff 0%, #f8fafd 60%, #f3f7fc 100%);
  border-right: 1px solid var(--border);
}

/* 内容列限宽：左栏是 1.1fr，在 1920 / 2560 屏上会被拉得很宽，
   不限宽则同一段文案的换行点与行长随屏宽变化，观感不一致。
   560px 是配合上面的居中公式定的：内容列越窄、两边留白越宽；
   同时 6 个迷您图表（454px）在 560px 内仍是单行。 */
.auth-aside > :not(.auth-bg):not(.auth-deco) {
  width: 100%;
  max-width: 560px;
}

/* 分子/互作网络水印：小尺寸下比双螺旋更易辨识；置于左侧文字栏右侧空白带，不与文案重叠。
   bottom 不能是 4px：页脚免责声明是 fixed 居中的，那会让网络底缘（y≈1055）
   与页脚文字（y≈1040~1066）重叠 15px */
.auth-deco {
  position: absolute;
  right: 8px;
  bottom: 56px;
  width: 112px;
  height: 112px;
  color: var(--primary);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

/* ---- 背景装饰层：DNA / RNA / 蛋白 α 螺旋 / 分子结构（纯装饰，不参与交互）----
   全部走 z-index:-1，落在栏背景与内容之间；分布在外围空白处，不与文案重叠 */
.auth-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--primary);
  pointer-events: none;
  overflow: hidden;
}

.auth-bg svg {
  position: absolute;
}

/* 分子结构（六边形苯环 + 键）—— 左上 */
.auth-bg-mol {
  left: 2px;
  top: 3%;
  width: 88px;
  height: 88px;
  opacity: 0.06;
}

/* DNA 双螺旋 —— 右侧（竖长，溢出部分被裁掉，看起来像从边上透出来）
   right 只给 -6px：路径本身右端在元素内 104.5px 处（原夹 -28px 会正好切到链尾） */
.auth-bg-dna {
  right: -6px;
  top: 4%;
  width: 132px;
  height: 330px;
  opacity: 0.06;
}

/* 蛋白 α 螺旋（重叠环）—— 右中 */
.auth-bg-helix {
  right: 48px;
  bottom: 26%;
  width: 74px;
  height: 164px;
  opacity: 0.06;
}
/* 数据统计公式图：正态分布 / 回归散点 / 统计符号
   （左栏装饰统一 0.06：一多一深就不“静”，会像贴纸堆砌） */
/* 正态分布曲线（钟形 + 面积阴影 + 均值虚线 + ±σ 刻度）—— 左侧中段 */
.auth-bg-normal {
  left: 28px;
  top: 38%;
  width: 200px;
  height: 110px;
  opacity: 0.06;
}

/* 回归散点 + 拟合线 —— 底部中右 */
.auth-bg-reg {
  right: 22%;
  bottom: 12%;
  width: 190px;
  height: 120px;
  opacity: 0.06;
}

/* 统计符号 Σ / x̄ / σ —— 左侧下段（rna 上方）*/
.auth-bg-formula {
  left: 36px;
  bottom: 26%;
  width: 130px;
  height: 98px;
  opacity: 0.06;
}

/* RNA 单链（波浪 + 碱基）—— 左下 */
.auth-bg-rna {
  left: -16px;
  bottom: 6%;
  width: 178px;
  height: 62px;
  opacity: 0.06;
}

/* 质谱峰图 —— 底部中间 */
.auth-bg-ms {
  left: 24%;
  bottom: 3%;
  width: 176px;
  height: 88px;
  opacity: 0.06;
}

/* 染色体核型（带横纹的竖条）—— 右侧偏上 */
.auth-bg-karyo {
  right: 20%;
  top: 14%;
  width: 100px;
  height: 176px;
  opacity: 0.06;
}

/* 质粒环（环状 DNA）—— 顶部中间 */
.auth-bg-plasmid {
  left: 28%;
  top: 3%;
  width: 108px;
  height: 108px;
  opacity: 0.06;
}

/* 品牌名可点击 → 回官网介绍页（2026-10-14）：display:flex 保持原布局；
   color 必须显式给：base.css 的 `a { color: var(--primary) }` 会把「Fig」也染蓝 */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.auth-brand:hover .auth-brand-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  /* 渐变压在那层纯色之上：老引擎不认 linear-gradient 时仍有纯色兑底 */
  background-image: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  flex-shrink: 0;
  /* 一点点投影让品牌块从浅蓝底上“浮”起来 */
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.auth-brand-mark svg {
  width: 21px;
  height: 21px;
}

.auth-brand-name {
  /* 品牌名是全页第一个视觉锚点：比正文大一截，字重拉满
     1920×1080 为基准屏（此屏下正好 34px），其余分辨率小幅浮动 */
  font-size: clamp(30px, 0.35vw + 27.3px, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand-name span {
  color: var(--primary);
}

.auth-aside-title {
  /* 与品牌拉开，随屏高伸缩：上面是“品牌 + 标题 + 描述”一组，下面是“卖点 + 能力”一组 */
  margin-top: clamp(30px, 1.2vh + 24px, 48px);
  font-size: clamp(26px, 0.35vw + 23.3px, 32px);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}

.auth-aside-desc {
  margin-top: 16px;
  font-size: clamp(15px, 0.12vw + 15.2px, 18.5px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.auth-points {
  list-style: none;
  /* 与上面那组分开，并用一道极细的上分割线把“品牌 + 标题 + 描述”与“卖点 + 能力”
     分成两个区。全屏版没有卡片边界，版面结构就靠这条线立，
     否则所有内容是一整块浮在空白里，显得散 */
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: clamp(15px, 0.12vw + 15.2px, 18.5px);
  line-height: 1.5;
}

/* 卖点关键词（便捷 / 省心 / 灵活 / 可追溯） */
.auth-point-key {
  color: var(--primary);
  font-weight: 600;
}

.auth-points svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  /* 与文字首行光学居中：行高 1.5em，图标固定 16px，
     需要的上偏移 = (1.5em − 16px)/2 ≈ 0.29em（17.5px 字号下约 5px）。
     原来写死的 2px 差了 3px，图标看起来是“浮在文字上方”的。
     四个图标的几何中心都在 viewBox 的 (12,12)，所以一个值四条都对齐。 */
  margin-top: 0.29em;
}

/* 能力标签（绘图 / 分析 / 表格处理）：与上面「卖点」列表区分，做成淡蓝药丸
   （不用白底/描边：左栏整体是浅蓝渐变，白盒子会跳出色调） */
.auth-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 30px;
}

.auth-tags li {
  /* 不用药丸底色：胶囊块在 1056px 宽的左栏里像一排“标签云”，显廉价；
     改成纯文字 + 圆点分隔，安静得多，也更像一句能力清单 */
  font-size: clamp(14px, 0.1vw + 14.1px, 17px);
  line-height: 1.5;
  color: var(--text-secondary);
}

.auth-tags li + li::before {
  /* 用转义序列而不是字面量「·」：与文件编码无关，避免非 UTF-8 解码时变乱码 */
  content: "\00B7";
  margin: 0 9px;
  color: var(--border);
}

/* ---- 迷您图表带：与上方能力标签呼应（热图 / 火山图 / 箱线图 / 富集气泡图 / PCA / 聚类树），纯装饰 ---- */
.auth-charts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 30px;
  color: var(--primary);
  /* 纯装饰（aria-hidden）：不接收鼠标事件。
     原先有个 li:hover 提亮，鼠标移上去会变亮、暗示可点，但点了没任何反应 */
  pointer-events: none;
}

.auth-charts svg {
  width: 64px;
  height: 48px;
  display: block;
  opacity: 0.42;
}

/* 免责声明：固定到整页页脚居中。
   原先挂在左栏内容流末尾——位置随左栏内容高度浮动，且窄屏会被 display:none 藏掉。
   左栏没有 transform / filter，所以 fixed 的包含块仍是视口，不会被左栏的 overflow 裁切。 */
.auth-note {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(13.5px, 0.08vw + 13.5px, 16px);
  line-height: 1.7;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

/* ---- 登录页：只有 2 个字段，靠加大纵向节奇把面板填满
   （注册页字段多，本来就占满，不受这里影响） ---- */
.auth-page--login .auth-card-sub {
  margin: 6px 0 26px;
}

.auth-page--login .form-group {
  margin-bottom: 28px;
}

.auth-page--login .form-group label {
  margin-bottom: 8px;
}

/* 登录页只有 2 个字段，纵向节奇本来靠加大输入框内距撑开；
   内距收窄后改为加在字距上（见下 letter-spacing 外的 .form-group 间距），
   面板仍填满，但输入框不再显高。 */
.auth-page--login .form-group input {
  padding: 9px 12px;
}

/* 密码框要给右侧的显/隐按钮留位（覆盖上一行的内距） */
.auth-page--login .input-wrap input {
  padding-right: 42px;
}

.auth-page--login .auth-submit {
  margin-top: 12px;
  padding: 14px 18px;
}

/* 「忘记密码？」是密码字段的辅助入口，跟在密码框右下角；
   「立即注册」已移到卡片标题行右侧（与重置页的「返回登录」同一位置），
   底部只留协议行，不再和它上下紧贴。 */
.auth-page--login .auth-forgot {
  margin-top: 8px;
  text-align: right;
  font-size: clamp(14.5px, 0.1vw + 14.6px, 17.5px);
}

/* ---- 右侧：表单 ---- */
.auth-panel {
  position: relative;
  /* 同左栏：自建层叠上下文，让右栏装饰落在背景与表单之间 */
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 右栏变窄了，内距相应收一点，免得表单被挤到两边贴边
     vw 系数压小：40~46px 就够，避免超宽屏上内距被拉到 56px 而白多一块 */
  padding: clamp(40px, 0.5vw + 33px, 56px);
}

/* ---- 右栏装饰：与左栏呼应，但更淡（表单区要干净）---- */
.auth-panel-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--primary);
  pointer-events: none;
  overflow: hidden;
}

.auth-panel-bg svg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 质谱峰图 —— 表单上方留白区 */
.auth-panel-bg-ms {
  top: 6%;
  width: 184px;
  height: 92px;
  opacity: 0.05;
}

/* 蛋白 α 螺旋 —— 表单下方留白区 */
.auth-panel-bg-helix {
  bottom: 6%;
  width: 72px;
  height: 160px;
  opacity: 0.05;
}

.auth-card {
  width: 100%;
  /* 纸片底座：卡片版最“高级”的地方就是“一张纸浮在网格上”的边界感，
     全屏版恰恰缺这个——表单一直散在右栏空白里。max-width 484 = 内宽 420
     （原表单宽度，不动字号就不该动它）+ 左右各 32 的内距 */
  max-width: 484px;
  margin: 0 auto;
  padding: 34px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  /* 阴影用 slate 色而不是纯黑：纯黑会发脏，slate 才“净” */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.auth-card-title {
  font-size: clamp(25px, 0.35vw + 22.3px, 31px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 标题行：右侧挂一个次级导航（重置页的「返回登录」）。
   原先它跟底部协议行上下紧贴（两行居中灰字 + 蓝链接），层级分不清；
   放到标题行右侧后，底部只剩协议行，「返回」也落到它该在的位置。 */
.auth-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-card-back {
  flex: none; /* 不被标题挤扁 */
  font-size: clamp(13.5px, 0.08vw + 13.5px, 16px);
  color: var(--primary);
  white-space: nowrap;
}

.auth-card-back:hover {
  text-decoration: underline;
}

/* 标题行右侧的「登录 | 注册」小字互切（当前页深色加粗、不可点）。
   与标题同处一个 flex 行，用 baseline 对齐——两边字号差很大，按基线才是一条水平线。 */
.auth-card-nav {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(13px, 0.06vw + 13px, 15px);
  white-space: nowrap;
}

.auth-card-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-card-nav a:hover {
  color: var(--primary);
}

.auth-card-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  cursor: default;
}

.auth-card-nav span {
  color: var(--border);
}

.auth-card-sub {
  /* 标题与表单之间加一道极细分隔线：卡片版内部是有分区的，不是一整块 */
  margin: 5px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(15px, 0.1vw + 15.1px, 18px);
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: clamp(14.5px, 0.1vw + 14.6px, 17.5px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

/* 标签行右侧的补充说明（如邀请码的奖励说明）。
   这类说明放 label 行而不是 placeholder：长句在窄框里会被截断，
   而且会和用户输入的内容抢同一个位置。
   说明独立成 span 而不是塞进 <label>，否则会被拼进输入框的无障碍名称。 */
.form-group label .label-note {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  /* 纵向内距刻意小（7px）：字号 16–19px 下再给 10px 会让单个框高近 50px，
     一排字段摞下来偏厚重；横向保持 12px 的呼吸感。 */
  padding: 7px 12px;
  /* 输入框字号原来继承浏览器默认（约 13.3px）且字体与页面不一致；显式指定 */
  font-family: inherit;
  font-size: clamp(16px, 0.1vw + 16.1px, 19px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  /* 已输入内容比标题轻一档（#374151 vs #1f2937）：邮箱 / 邀请码这类长串字
     用最深色整行铺满时偏压眼；聚焦时再恢复最深，当前在编的框依然明确 */
  color: #374151;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:hover {
  border-color: #d1d5db;
}

.form-group input:focus {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 校验失败：边框转红 + 下方内联提示 */
.form-group input[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-group input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--danger);
}

.field-error.show {
  display: block;
}

.field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 密码框 + 显示/隐藏按钮 */
.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 42px;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
}

.pw-toggle:hover {
  background: #f3f4f6;
  color: var(--text);
}

.pw-toggle svg {
  width: 17px;
  height: 17px;
}

.pw-toggle .pw-eye-off {
  display: none;
}

.pw-toggle.is-on .pw-eye {
  display: none;
}

.pw-toggle.is-on .pw-eye-off {
  display: block;
}


/* ── 以下内容来自原 style.css L683–877 ── */


/* 邮箱 + 发送验证码按钮同行布局 */
.code-send-row {
  display: flex;
  gap: 8px;
}

.code-send-row input {
  flex: 1;
  min-width: 0;
}

/* 纵向内距与同行输入框一致，否则 flex 拉伸时会由按钮撑高整行 */
.code-send-row .btn {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: clamp(14.5px, 0.1vw + 14.6px, 17.5px);
  white-space: nowrap;
}

.auth-submit {
  margin-top: 22px;
  padding: 12px 18px;
  font-weight: 600;
  /* 显式设号：不依赖全局 .btn 的值（那是聊天页共享的组件，不能改） */
  font-size: clamp(16px, 0.1vw + 16.1px, 19px);
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: clamp(14.5px, 0.1vw + 14.6px, 17.5px);
  color: var(--text-secondary);
}

/* 表单后直接跟协议行：重置页没有 .auth-switch 托位，10px 会贴住按钮。
   （登录页是 form + .auth-switch + .auth-legal，不相邻，不受影响） */
.auth-card form + .auth-legal {
  margin-top: 22px;
}

.auth-error {
  display: none;
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: clamp(14.5px, 0.1vw + 14.6px, 17.5px);
  margin-bottom: 16px;
}

.auth-error.show {
  display: block;
}

/* 成功提示（如「验证码已发送」） */
.auth-error.success {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

/* ===== 认证页背景动效 =====
   只动两层：右栏方格纸匀速斜向平移 + 左栏柔光缓慢漂移/呼吸。
   生信装饰一律静止——它们是“标本”，跟着飘反而抢注意力（浮游动画已移除）。 */
@keyframes auth-grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

/* 方格纸只铺右栏：左栏保持干净（只有柔光 + 生信装饰），不再铺格子。
   .auth-page 原本也有方格，但被不透明白底 .auth-shell 盖住了，那层一直是死背景。
   inset 必须为 0：一旦越界（哪怕 1px），就会被滚动容器变成滚动条。 */
.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: auth-grid-drift 15s linear infinite;
}

@keyframes auth-glow {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.75;
  }
  to {
    transform: translate3d(-3%, -2.5%, 0);
    opacity: 1;
  }
}

/* 左栏柔光：一团极淡的蓝缓慢漂移 + 明暗呼吸
   （用伪元素 + transform/opacity，不动 .auth-aside 的 background-position——后者会重绘）
   .auth-aside 已是 position:relative + z-index:0，故 -1 落在栏底色之上、内容之下。
   注意：inset 必须为 0，且只向左上位移——若用 scale() 或向右/下位移，
   超出部分会被父级的 overflow-y:auto 变成一条多余的滚动条（已踩过）。 */
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform, opacity;
  background:
    radial-gradient(circle at 46% 42%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(circle at 74% 78%, rgba(37, 99, 235, 0.08), transparent 62%);
  animation: auth-glow 24s ease-in-out infinite alternate;
}

/* 生信装饰（左栏 7 个 + 右下水印 + 右栏 2 个）一律静止：
   它们是背景上的“标本”，动起来反而与漂移的方格互抢注意力。
   （曾经给每个装饰配过 --dur/--delay/--fx/--fy 的浮游动画，已整体移除）*/

/* 无障碍：系统开启「减弱动态效果」时全部静止（纯装饰，静止不影响任何信息） */
@media (prefers-reduced-motion: reduce) {
  .auth-aside::before,
  .auth-panel::after {
    animation: none;
  }
}

/* 窄屏：单列堆叠，左侧收成页头 */
@media (max-width: 900px) {
  .auth-page {
    padding: 24px 20px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    padding: 20px 22px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .auth-deco,
  .auth-bg,
  .auth-panel-bg,
  .auth-aside::before,
  .auth-panel::after {
    display: none;
  }

  .auth-aside-title {
    margin-top: 14px;
    font-size: 16px;
  }

  .auth-aside-desc,
  .auth-points,
  .auth-tags,
  .auth-charts,
  .auth-note {
    display: none;
  }

  .auth-panel {
    padding: 26px 22px 30px;
    justify-content: flex-start;
  }

  .auth-card {
    max-width: 400px;
  }
}

/* 手机：整屏铺满，去掉卡片外框（无横向留白浪费） */
@media (max-width: 640px) {
  .auth-page {
    padding: 0;
    align-items: stretch;
  }

  .auth-shell {
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-panel {
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  }

  .auth-card {
    max-width: none;
  }
}


/* ── 以下内容来自原 style.css L5288–5321 ── */

/* ===== 注册页同意勾选行 ===== */
.form-agree {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* 选择器必须带 .form-agree 前缀：`.form-group label` 的特异性是 (0,1,1)，
   比单独的 .agree-label (0,1,0) 高一级，会把 display / font-size / color 全压掉
   —— 曾导致勾选行第二行顶到最左（与勾选框同列）、字号与颜色也不按这里的设计走。 */
.form-agree .agree-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  cursor: pointer;
}

.agree-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.agree-label a {
  color: var(--primary);
  text-decoration: none;
}

.agree-label a:hover {
  text-decoration: underline;
}

/* ---------------- 注册页：卡片更紧凑 ----------------
   注册页字段最多（用户名 / 邮箱+发码 / 验证码 / 密码 / 确认密码 / 邀请码 / 协议），
   用通用间距会撑到 878px、超出 900px 视口还得滚动。这里只在注册页收紧
   卡片内边距、字段间距与输入框纵向内边距，登录页与重置页不受影响。 */
.auth-page--register .auth-card {
  padding: 26px 28px 24px;
}

.auth-page--register .auth-card-sub {
  margin: 4px 0 14px;
  padding-bottom: 12px;
}

.auth-page--register .form-group {
  margin-bottom: 10px;
}

.auth-page--register .form-group label {
  margin-bottom: 5px;
}

.auth-page--register .form-group input {
  padding: 6px 12px;
}

/* 密码组下方的「至少 6 位」提示 */
.auth-page--register .field-hint {
  margin-top: 3px;
  line-height: 1.35;
}

.auth-page--register .auth-submit {
  margin-top: 16px;
}


/* ---------------- 标签行：主标签 + 右侧补充说明 ----------------
   放在文件末尾，确保 .field-head label 的 margin-bottom:0 不被上面
   注册页紧凑规则（.auth-page--register .form-group label）覆盖。 */
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

/* 用 .form-group 前缀压过注册页的 .auth-page--register .form-group label：
   间距统一由 .field-head 控制，标签自身不再带下边距 */
.form-group .field-head label {
  margin-bottom: 0;
}

.field-head .label-note {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: right;
}

/* 注册页的字段更紧，标签行跟着收 1px */
.auth-page--register .field-head {
  margin-bottom: 5px;
}

