/* ============================================================
   NQ 认证页视觉增强（登录 / 注册 / 找回密码 共用）
   - 纯样式覆盖：不改动表单字段、name/id、脚本与接口
   - 仅作用于 .nq-auth 容器，不影响后台、购物车、用户中心
   - 2026-11-25
   ============================================================ */

/* ---- 背景：保留主题插图，叠加品牌色柔光，提升卡片层次 ---- */
@media (min-width: 576px) {
  .nq-auth {
    position: relative;
    isolation: isolate;
    padding: 40px 16px 80px;
  }

  .nq-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(52rem 28rem at 12% 8%, rgba(22, 93, 255, .10), transparent 62%),
      radial-gradient(46rem 26rem at 88% 92%, rgba(120, 170, 255, .16), transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .66));
  }
}

/* ---- 登录卡片 ---- */
.nq-auth .nq-auth-form {
  position: relative;
  z-index: 1;
  width: 440px;
  max-width: 100%;
  padding: 44px 40px 36px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow:
    0 28px 64px -24px rgba(16, 58, 140, .30),
    0 4px 14px rgba(16, 24, 40, .05);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  animation: nq-auth-in .45s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes nq-auth-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.nq-auth .nq-auth-logo {
  margin-bottom: 26px;
}

.nq-auth .nq-auth-logo img {
  height: 42px;
  /* 窄屏随视口缩小，避免宽 logo 顶满卡片 */
  height: clamp(32px, 9vw, 42px);
  max-width: 70%;
  object-fit: contain;
}

/* ---- 登录方式 Tab：分段控件 ----
   注意：nqdesign.css 用 body.nq .nav-tabs .nav-link 设置了 margin: 0 16px、
   padding: 8px 0、下划线边框，且 :first-child 规则会把第一个 Tab 左移。
   此处统一用 body.nq 前缀提升权重，彻底重置，保证两个 Tab 等宽齐平。 */
body.nq .nq-auth .nq-auth-form .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  background: var(--nq-fill-2);
  border: 0;
  border-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
}

body.nq .nq-auth .nq-auth-form .nav-tabs .nav-item {
  flex: 1 1 0;
  min-width: 0;
  float: none;
  margin: 0;
}

body.nq .nq-auth .nq-auth-form .nav-tabs .nav-item > .nav-link,
body.nq .nq-auth .nq-auth-form .nav-tabs .nav-item:first-child > .nav-link {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-bottom: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--nq-text-3);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

body.nq .nq-auth .nq-auth-form .nav-tabs .nav-item > .nav-link:hover {
  color: var(--nq-text-1);
  background: rgba(255, 255, 255, .55);
  border-bottom-color: transparent;
}

body.nq .nq-auth .nq-auth-form .nav-tabs .nav-item > .nav-link:focus {
  outline: none;
  box-shadow: none;
}

body.nq .nq-auth .nq-auth-form .nav-tabs .nav-item > .nav-link.active {
  color: var(--nq-primary);
  background: #fff;
  font-weight: 600;
  border-bottom-color: transparent;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}

/* 主题 common.js 会往 .nav-tabs 注入蓝色滑动指示条（.nq-tabs-ink），
   认证页用分段控件，不需要这条下划线 */
body.nq .nq-auth .nq-auth-form .nav-tabs > .nq-tabs-ink {
  display: none !important;
}

/* ---- 表单字段 ---- */
.nq-auth .nq-auth-form .form-group {
  margin-bottom: 16px;
}

.nq-auth .nq-auth-form .form-group > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nq-text-2);
}

.nq-auth .nq-auth-form .form-control {
  height: 46px !important;
  padding: 0 14px;
  font-size: 14px !important;
  color: var(--nq-text-1);
  background: #fff;
  border: 1px solid var(--nq-border-2);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.nq-auth .nq-auth-form .form-control::placeholder {
  color: var(--nq-text-4);
}

.nq-auth .nq-auth-form .form-control:focus {
  border-color: rgba(22, 93, 255, .55);
  box-shadow: 0 0 0 4px rgba(22, 93, 255, .10);
}

/* 输入框内图标 */
.nq-auth .nq-auth-form .nq-input-icon > i,
.nq-auth .nq-auth-form .input-group > .nq-ig-icon {
  left: 14px;
  font-size: 17px;
}

.nq-auth .nq-auth-form .nq-input-icon > .form-control,
.nq-auth .nq-auth-form .input-group > .nq-ig-icon + .form-control {
  padding-left: 42px;
}

/* ---- 输入组（手机号区号 / 验证码）----
   与密码框同一套视觉：整组一条 1px 描边 + 10px 圆角 + 46px 高，
   内部控件全部去边框，聚焦时整组高亮，看起来就是一个输入框 */
body.nq .nq-auth .nq-auth-form .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 46px;
  background: #fff;
  border: 1px solid var(--nq-border-2);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body.nq .nq-auth .nq-auth-form .input-group:hover {
  border-color: rgba(22, 93, 255, .28);
}

body.nq .nq-auth .nq-auth-form .input-group:focus-within {
  border-color: rgba(22, 93, 255, .55);
  box-shadow: 0 0 0 4px rgba(22, 93, 255, .10);
}

body.nq .nq-auth .nq-auth-form .input-group > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  height: 100% !important;
  padding: 0 14px;
  background: transparent;
  border: 0 !important;
  border-radius: 0 10px 10px 0;
  box-shadow: none;
  font-size: 14px !important;
}

body.nq .nq-auth .nq-auth-form .input-group > .form-control:focus {
  border-color: transparent;
  box-shadow: none;
}

/* 聚焦时整组已有高亮，避免主题把组内分隔线也染成主色，破坏“一个输入框”的观感 */
body.nq .nq-auth .nq-auth-form .input-group > .form-control:focus ~ .input-group-append .btn {
  border-left-color: var(--nq-border-2);
}

/* 手机号：区号 → 图标 → 输入框，输入框左侧为直角 */
body.nq .nq-auth .nq-auth-form .input-group > .input-group-prepend ~ .form-control {
  border-radius: 0 10px 10px 0;
}

/* 验证码：输入框 → 追加按钮，输入框右侧为直角 */
body.nq .nq-auth .nq-auth-form .input-group > .form-control:first-child:not(:last-child) {
  border-radius: 10px 0 0 10px;
}

/* 带图标的输入框留出图标位（与密码框 42px 一致） */
body.nq .nq-auth .nq-auth-form .input-group > .nq-ig-icon + .form-control {
  padding-left: 42px;
}

/* 区号选择：组内左侧，透明底 + 细分隔线 */
body.nq .nq-auth .nq-auth-form .input-group-prepend {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  width: 112px;
  height: 100% !important;
  margin: 0;
  border-right: 1px solid var(--nq-border-2);
  border-radius: 10px 0 0 10px;
}

body.nq .nq-auth .nq-auth-form .input-group-prepend::after {
  display: none;
}

body.nq .nq-auth .nq-auth-form .input-group-prepend .bootstrap-select {
  width: 100%;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
  border-radius: 10px 0 0 10px;
}

body.nq .nq-auth .nq-auth-form .input-group-prepend .bootstrap-select > .dropdown-toggle {
  display: block !important;
  width: 100%;
  height: 100% !important;
  padding: 0 24px 0 14px !important;
  border: 0 !important;
  border-radius: 10px 0 0 10px !important;
  background: transparent;
  font-size: 13px;
  line-height: 44px;
  color: var(--nq-text-1);
  overflow: hidden;
}

body.nq .nq-auth .nq-auth-form .input-group-prepend .bootstrap-select > .dropdown-toggle:focus {
  outline: none;
  box-shadow: none;
  background: rgba(22, 93, 255, .04);
}

body.nq .nq-auth .nq-auth-form .input-group-prepend .bootstrap-select .filter-option {
  width: 100%;
  min-width: 0;
  padding-right: 0;
}

body.nq .nq-auth .nq-auth-form .input-group-prepend .bootstrap-select .filter-option-inner-inner {
  display: block;
  line-height: 44px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nq .nq-auth .nq-auth-form .input-group > .input-group-prepend + .nq-ig-icon,
body.nq .nq-auth .nq-auth-form .input-group > .input-group-prepend ~ .nq-ig-icon {
  left: calc(112px + 14px);
}

/* 获取验证码 / 图形验证码：组内右侧，细线分隔 */
body.nq .nq-auth .nq-auth-form .input-group-append {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: 100% !important;
  min-width: 0;
  margin: 0;
}

body.nq .nq-auth .nq-auth-form .input-group-append .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--nq-border-2);
  border-radius: 0 9px 9px 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--nq-primary);
  box-shadow: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

body.nq .nq-auth .nq-auth-form .input-group-append .btn:hover,
body.nq .nq-auth .nq-auth-form .input-group-append .btn:focus {
  background: rgba(22, 93, 255, .06);
  border-color: var(--nq-border-2);
  color: var(--nq-primary-hover);
}

body.nq .nq-auth .nq-auth-form .input-group-append .btn:disabled,
body.nq .nq-auth .nq-auth-form .input-group-append .btn.disabled {
  background: transparent;
  color: var(--nq-text-4);
  opacity: 1;
}

/* 图形验证码：贴合输入框右侧，作为整体的一部分 */
body.nq .nq-auth .nq-auth-form .input-group-append img {
  display: block;
  width: 120px;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 9px 9px 0;
}

/* ---- 登录按钮 ---- */
.nq-auth .nq-auth-form .btn-login {
  height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  background-image: linear-gradient(135deg, #3b76ff 0%, var(--nq-primary) 100%);
  box-shadow: 0 12px 26px -12px rgba(22, 93, 255, .75);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.nq-auth .nq-auth-form .btn-login:hover,
.nq-auth .nq-auth-form .btn-login:focus {
  background-image: linear-gradient(135deg, #4a80ff 0%, var(--nq-primary-hover) 100%);
  box-shadow: 0 16px 30px -12px rgba(22, 93, 255, .8);
  transform: translateY(-1px);
}

.nq-auth .nq-auth-form .btn-login:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px -10px rgba(22, 93, 255, .7);
}

.nq-auth .nq-auth-form .btn-login:focus-visible {
  outline: 2px solid rgba(22, 93, 255, .45);
  outline-offset: 2px;
}

/* ---- 辅助链接 / 协议 / 页脚 ---- */
.nq-auth .nq-auth-form .nq-auth-actions {
  margin: 18px 0 4px;
  font-size: 13px;
}

.nq-auth .nq-auth-agreement {
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--nq-text-3);
}

.nq-auth-footer {
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(29, 33, 41, .45);
}

@media (min-width: 576px) {
  .nq-auth-footer {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  }
}

/* 键盘可达性 */
.nq-auth .nq-auth-actions a:focus-visible,
.nq-auth .nq-auth-agreement a:focus-visible,
.nq-auth .nq-auth-oauth a:focus-visible {
  outline: 2px solid rgba(22, 93, 255, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .nq-auth .nq-auth-form {
    width: 100%;
    max-width: 440px;
  }
}

@media (max-width: 575.98px) {
  .nq-auth .nq-auth-form {
    width: 100%;
    max-width: 100%;
    padding: 28px 20px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.nq .nq-auth .nq-auth-form .input-group-prepend {
    width: 104px;
  }

  body.nq .nq-auth .nq-auth-form .input-group > .input-group-prepend + .nq-ig-icon,
  body.nq .nq-auth .nq-auth-form .input-group > .input-group-prepend ~ .nq-ig-icon {
    left: calc(104px + 14px);
  }

  body.nq .nq-auth .nq-auth-form .input-group-prepend .bootstrap-select > .dropdown-toggle {
    padding: 0 24px 0 10px !important;
    font-size: 12px;
  }

  body.nq .nq-auth .nq-auth-form .input-group-append img {
    width: 100px;
  }
}

/* 动态云背景视频层：默认不显示，仅桌面端由脚本挂载后展示
   （≤1023px 保持浅色单卡片布局，不加载视频与海报） */
.nq-auth-bgvideo {
  display: none;
}

/* 左列品牌轮播：默认整块隐藏，仅在 ≥1024px 分栏布局里出现
   （≤1023px 是 440px 单卡片，没有左列；隐藏避免文字直出） */
.nq-auth .nq-auth-visual {
  display: none;
}

/* ============================================================
   电脑端企业风（≥1024px）：左右分栏
   - 整页底色：浅蓝云海动态视频（assets/img/auth-cloud-bg.mp4，3840×1120，5s 循环）
     视频加载中 / 关闭动效 / 脚本未执行时回退到同帧海报图 auth-cloud-bg-poster.jpg
   - 左侧品牌区：品牌蓝渐变 + 3 屏文案轮播（纯 CSS 交叉淡入，见下方 .nq-auth-visual）
   - 叠加一层纯 CSS 浅蓝网格，缓慢向上平移（数据流动感），仅 transform 动画
   - 右侧保留原 Tab / 字段 / name、id / 校验 / 提交逻辑
   - ≤1023px 仍使用上方的 440px 单卡片布局，不加载视频与海报
   - 系统开启“减少动态效果”时整页只留静态海报帧，左列固定第 1 屏
   ============================================================ */
@media (min-width: 1024px) {
  .nq-auth {
    /* 内容超出视口时贴顶可滚动，不再把卡片顶部挤出屏幕 */
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px 40px 32px;
    background: #eaf1ff url('../img/auth-cloud-bg-poster.jpg') center / cover no-repeat;
  }

  /* 动态云视频：fixed 铺满视口，object-fit 裁切，不影响滚动与点击
     DOM 顺序在卡片之前 + z-index:0，卡片（z-index:1）始终在上层 */
  .nq-auth .nq-auth-bgvideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
    z-index: 0;
    pointer-events: none;
    background: transparent;
  }

  /* 浅色云底上禁用原来的白色柔光叠层，避免整页发灰 */
  .nq-auth::before {
    background: none;
    opacity: 0;
  }

  /* 动态科技网格层：与背景叠加，向上匀速流动
     - 56px 与网格周期一致，首尾无缝
     - 只做 transform（合成层），不触发背景重绘
     - 外扩 64px，平移时不露边 */
  .nq-auth::after {
    content: "";
    position: fixed;
    inset: -64px;
    z-index: 0;
    pointer-events: none;
    opacity: .45;
    background-image:
      repeating-linear-gradient(0deg, rgba(28, 84, 190, .10) 0 1px, transparent 1px 56px),
      repeating-linear-gradient(90deg, rgba(28, 84, 190, .10) 0 1px, transparent 1px 56px);
    will-change: transform;
    animation: nq-auth-grid-flow 18s linear infinite;
  }

  @keyframes nq-auth-grid-flow {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -56px, 0); }
  }

  .nq-auth .nq-auth-form {
    display: block;
    /* 高于视频层（z-index:0），卡片始终可点、不被遮挡 */
    z-index: 1;
    /* 高度不足时垂直居中，内容超过视口时 auto 边距自动归零、卡片从顶部开始 */
    margin: auto;
    width: min(1000px, 100%);
    max-width: 1000px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 32px 70px -42px rgba(15, 23, 42, .42),
      0 8px 22px -16px rgba(15, 23, 42, .16);
  }

  /* 左侧品牌区底色：品牌蓝渐变，与站点主按钮同一色系（#4a80ff → #165dff → 深蓝）
     - 3 屏轮播层 .nq-auth-visual 叠加在其上；此渐变同时作为未输出轮播 DOM 时的兜底，
       不会出现空白列
     - 右上角加柔光、左下角压暗，避免大块纯色发闷 */
  .nq-auth .nq-auth-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 44%;
    pointer-events: none;
    background:
      radial-gradient(74% 34% at 30% 34%, rgba(255, 255, 255, .13), transparent 72%),
      radial-gradient(120% 76% at 92% 2%, rgba(255, 255, 255, .22), transparent 62%),
      radial-gradient(96% 72% at 2% 100%, rgba(6, 30, 92, .40), transparent 66%),
      linear-gradient(155deg, #4a80ff 0%, #1f5ef0 48%, #0e42c4 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .16);
  }

  /* ---- 左列品牌轮播：3 屏交叉淡入 ----
     - 纯 CSS 动画（21s 一轮，每屏约 7s），不加载脚本、不产生额外请求
     - 内容为站点业务文案；减少动态效果时只留第 1 屏静态画面
     - 装饰层全部 pointer-events:none，不拦截右侧表单点击 */
  .nq-auth .nq-auth-visual {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 44%;
    overflow: hidden;
    pointer-events: none;
    color: #fff;
  }

  /* 细网格底纹：径向遮罩让网格四角淡出，避免死板 */
  .nq-auth .nq-auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 44px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 44px);
    -webkit-mask-image: radial-gradient(126% 92% at 24% 12%, #000 22%, rgba(0, 0, 0, .45) 68%, transparent 100%);
    mask-image: radial-gradient(126% 92% at 24% 12%, #000 22%, rgba(0, 0, 0, .45) 68%, transparent 100%);
  }

  /* 光晕层：右上提亮、左下压暗，给轮播内容托底 */
  .nq-auth .nq-auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(62% 42% at 88% 4%, rgba(255, 255, 255, .20), transparent 72%),
      radial-gradient(70% 46% at 0% 100%, rgba(4, 22, 70, .30), transparent 70%),
      linear-gradient(180deg, rgba(6, 26, 72, 0) 54%, rgba(6, 26, 72, .20) 100%);
  }

  /* 单屏容器：整屏绝对定位叠放，文案压底部、插画面在上方 */
  .nq-auth .nq-auth-visual-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 34px 52px;
    overflow: hidden;
    opacity: 0;
    animation: nq-auth-visual-fade 21s cubic-bezier(.4, 0, .2, 1) infinite;
  }

  .nq-auth .nq-auth-visual-slide:nth-child(1) { animation-delay: 0s; }
  .nq-auth .nq-auth-visual-slide:nth-child(2) { animation-delay: 7s; }
  .nq-auth .nq-auth-visual-slide:nth-child(3) { animation-delay: 14s; }

  /* 交叉淡入：上一屏在 33.3%–38% 淡出、下一屏在 0%–3% 淡入，
     两者有约 1s 重叠，换屏时不会出现空白闪断 */
  @keyframes nq-auth-visual-fade {
    0%    { opacity: 0; transform: translateY(12px); }
    3%    { opacity: 1; transform: none; }
    33.3% { opacity: 1; transform: none; }
    38%   { opacity: 0; transform: translateY(-10px); }
    100%  { opacity: 0; transform: translateY(-10px); }
  }

  /* 插画区：占满文案以外的高度；卡片偏矮时自动收缩到 0，不挤压文案
     - 三屏各一张手绘 SVG（assets/img/auth-scene-*.svg，440×340 等比画布），
       居中 contain 缩放：容器比画布宽时两侧留白，不裁切、不拉伸变形
     - 两层背景：上层插画、下层柔光垫底；投影用 drop-shadow 跟随插画透明
       轮廓，不会在下方文案处留下方形阴影
     - 纯装饰：无脚本、无交互（整列 pointer-events:none） */
  .nq-auth .nq-auth-visual-art {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain, 88% 88%;
    background-image:
      url('../img/auth-scene-compute.svg?v=20261127ui13'),
      radial-gradient(closest-side at 50% 46%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 74%);
    filter: drop-shadow(0 14px 26px rgba(4, 24, 74, .28));
    animation: nq-auth-visual-float 10s ease-in-out infinite alternate;
  }

  /* 第 2 屏：数据可靠（三副本玻璃卡 + 柱状数据 + 盾牌徽标） */
  .nq-auth .nq-auth-visual-slide:nth-child(2) .nq-auth-visual-art {
    background-image:
      url('../img/auth-scene-data.svg?v=20261127ui13'),
      radial-gradient(closest-side at 50% 46%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 74%);
  }

  /* 第 3 屏：专业服务（耳麦 + 会话卡片） */
  .nq-auth .nq-auth-visual-slide:nth-child(3) .nq-auth-visual-art {
    background-image:
      url('../img/auth-scene-service.svg?v=20261127ui13'),
      radial-gradient(closest-side at 50% 48%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 74%);
  }

  @keyframes nq-auth-visual-float {
    from { transform: translateY(3px); }
    to   { transform: translateY(-5px); }
  }

  /* 文案区 */
  .nq-auth .nq-auth-visual-body {
    flex: 0 0 auto;
  }

  .nq-auth .nq-auth-visual-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .94);
  }

  body.nq .nq-auth .nq-auth-visual-title {
    margin: 14px 0 8px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(6, 28, 84, .28);
  }

  .nq-auth .nq-auth-visual-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
  }

  .nq-auth .nq-auth-visual-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
  }

  .nq-auth .nq-auth-visual-points li {
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
  }

  /* 指示点：与轮播同周期高亮，纯装饰 */
  .nq-auth .nq-auth-visual-dots {
    position: absolute;
    left: 34px;
    bottom: 24px;
    display: flex;
    gap: 7px;
  }

  .nq-auth .nq-auth-visual-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    opacity: .45;
    animation: nq-auth-visual-dot 21s ease-in-out infinite;
  }

  .nq-auth .nq-auth-visual-dots span:nth-child(1) { animation-delay: 0s; }
  .nq-auth .nq-auth-visual-dots span:nth-child(2) { animation-delay: 7s; }
  .nq-auth .nq-auth-visual-dots span:nth-child(3) { animation-delay: 14s; }

  @keyframes nq-auth-visual-dot {
    0%    { opacity: .55; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    3%    { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, .30); }
    33.3% { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, .30); }
    38%   { opacity: .45; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    100%  { opacity: .45; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  }

  /* 卡片 ::after 原本是深蓝底上的装饰环，分栏布局里不再使用，直接关掉 */
  .nq-auth .nq-auth-form::after {
    content: none;
  }

  /* 右侧表单列
     注意：这里不能用 position:relative，否则 Logo 若恢复绝对定位会以 inner
     为包含块；左列渐变只覆盖 0–44%，与静态内容不重叠，无需 z-index */
  .nq-auth .nq-auth-form-inner {
    box-sizing: border-box;
    width: 56%;
    margin-left: 44%;
    padding: 32px 48px 34px;
  }

  /* Logo 回到表单顶部，位于“手机登录 / 邮箱登录”Tab 上方，水平居中 */
  .nq-auth .nq-auth-logo {
    position: static;
    z-index: auto;
    width: auto;
    margin: 0 0 18px;
    text-align: center;
  }

  /* 卡片本身是白底，去掉原先左列用的白底胶囊与投影 */
  .nq-auth .nq-auth-logo a {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .nq-auth .nq-auth-logo img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: 34px;
    /* 1024–1300 之间随视口轻微收缩，宽 logo 不挤压左右留白 */
    height: clamp(26px, 2.6vw, 34px);
    max-width: min(240px, 100%);
    object-fit: contain;
  }

  /* 白底装饰短线原本用于左列深蓝背景，Logo 移回白卡后不再需要 */
  .nq-auth .nq-auth-logo::after {
    content: none;
  }

  /* 若后台配置了登录头部内容，也放到右侧列，避免压住品牌区 */
  .nq-auth .nq-auth-header {
    position: relative;
    z-index: 2;
    margin-left: 44%;
    padding: 32px 48px 0;
  }

  /* 头部内容与表单之间的间距，避免叠加 */
  .nq-auth .nq-auth-header + .nq-auth-form-inner {
    padding-top: 20px;
  }

  /* ---- 表单区紧凑化：缩短注册页字段总高度 ---- */
  body.nq .nq-auth .nq-auth-form .nav-tabs {
    margin-bottom: 14px;
  }

  .nq-auth .nq-auth-form .nav-tabs .nav-link {
    padding: 9px 12px;
    font-size: 14px;
  }

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

  .nq-auth .nq-auth-form .form-group label {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .nq-auth .nq-auth-form .form-control {
    height: 42px !important;
    font-size: 14px !important;
  }

  /* 输入组整体高度与输入框统一，避免追加按钮/区号比输入框高出 4px */
  .nq-auth .nq-auth-form .input-group,
  .nq-auth .nq-auth-form .input-group-append,
  .nq-auth .nq-auth-form .input-group-prepend {
    height: 42px !important;
  }

  .nq-auth .nq-auth-form .btn-login {
    height: 46px;
    font-size: 16px;
  }

  /* 注册页的自定义文本字段（姓名 / 公司 / QQ / 销售代表）两列排布，
     把注册表单压缩到接近一屏；登录、找回密码没有这类字段，布局不变。
     不支持 :has 的浏览器会保持整行宽度，不会破版。 */
  .nq-auth-form-inner form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nq-auth-form-inner form > * {
    flex: 0 0 100%;
    min-width: 0;
  }

  .nq-auth-form-inner form > .form-group:has(> input.form-control) {
    flex: 0 0 calc(50% - 6px);
  }

  /* 页脚改为卡片下方常规流，避免 fixed 遮挡 */
  .nq-auth-footer {
    position: relative;
    /* 高于视频层，版权文字不被视频遮住 */
    z-index: 1;
    width: auto;
    margin-top: 18px;
    padding: 0;
    font-size: 12px;
    /* 浅蓝云底上用深色半透明，保证版权文字在页底可读 */
    color: rgba(16, 38, 74, .62);
    text-shadow: none;
  }
}

/* 笔记本电脑等较矮的桌面视口（≤860px 高）：进一步收紧纵向尺寸，
   让注册页（字段最多）尽量一屏显示，超出时仍可正常滚动。 */
@media (min-width: 1024px) and (max-height: 860px) {
  .nq-auth {
    padding: 16px 32px 20px;
  }

  .nq-auth .nq-auth-form-inner {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  /* 矮屏时 Logo 同步收紧，给表单多留一屏空间 */
  .nq-auth .nq-auth-logo {
    margin-bottom: 12px;
  }

  .nq-auth .nq-auth-logo img {
    height: 28px;
  }

  .nq-auth .nq-auth-form .nav-tabs {
    margin-bottom: 10px;
  }

  .nq-auth .nq-auth-form .form-group {
    margin-bottom: 8px;
  }

  .nq-auth .nq-auth-form .form-control,
  .nq-auth .nq-auth-form .input-group,
  .nq-auth .nq-auth-form .input-group-append,
  .nq-auth .nq-auth-form .input-group-prepend {
    height: 40px !important;
  }

  .nq-auth .nq-auth-form .btn-login {
    height: 44px;
  }

  .nq-auth-footer {
    margin-top: 12px;
  }
}

/* 减少动态效果：左列轮播固定第 1 屏，背景视频只留静态海报帧
   （第 1 屏为默认显示项，不依赖动画也能完整呈现） */
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  /* 关闭动效时整页只留静态海报帧（.nq-auth 的背景图） */
  .nq-auth .nq-auth-bgvideo {
    display: none;
  }

  .nq-auth .nq-auth-visual-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .nq-auth .nq-auth-visual-slide:nth-child(1) {
    opacity: 1;
  }

  .nq-auth .nq-auth-visual-art {
    animation: none;
  }

  .nq-auth .nq-auth-visual-dots span {
    animation: none;
  }

  .nq-auth .nq-auth-visual-dots span:nth-child(1) {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .30);
  }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  .nq-auth .nq-auth-form {
    animation: none;
  }

  .nq-auth::after {
    animation: none;
  }

  .nq-auth .nq-auth-form .btn-login {
    transition: none;
  }

  .nq-auth .nq-auth-form .btn-login:hover,
  .nq-auth .nq-auth-form .btn-login:focus {
    transform: none;
  }
}
