/* 统一认证页（登录 / 两步验证 / 设备确认 / 授权过期）页面样式。
   视觉真源：商家中心新版登录页（app.suxi-ai.cn src/views/Login.vue）——
   固定品牌深色（墨 #0E1217）、菱形粒子背景、左侧大标题 + 演示视频玻璃框、右侧玻璃登录卡。
   页面固定深色，不跟随系统明暗；缓动 / 时长引用 huiseek.css 的 --hs-* 令牌。
   全部样式在本文件（无内联 style），便于将来收紧 CSP。 */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  /* 字体：系统字体——苹果电脑苹方，Windows 微软雅黑（与商家中心一致） */
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #F9FAFC;
  background: #0E1217;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

[hidden] { display: none !important; }

.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;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0E1217;
  color: #F9FAFC;
}

/* ---------- 背景：粒子画布 / 暗角 / 鼠标高光 ---------- */

.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.bg-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35) 75%, rgba(0, 0, 0, .6) 100%);
}

.bg-spot {
  position: absolute;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 123, 255, .22) 0%, rgba(9, 77, 255, .10) 35%, rgba(9, 77, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--hs-dur-slow) var(--hs-ease);
  will-change: transform;
}
.bg-spot.is-on { opacity: 1; }

/* ---------- 版式：顶部 logo / 中部双栏 / 底部版权 ---------- */

.login-top, .login-main, .login-footer {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding-inline: 48px;
}
.login-top { position: absolute; top: 0; left: 0; right: 0; padding-top: 32px; }
.login-logo { display: block; height: 32px; width: auto; }

/* 网格：左栏标题 / 说明各占一行；第 3 行视频与登录卡并排、等高 */
.login-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: 72px;
  padding-block: 96px;
  min-height: 100vh;
}
.login-intro { display: contents; }
.login-headline { grid-column: 1; grid-row: 1; }
.login-desc { grid-column: 1; grid-row: 2; }
.login-preview { grid-column: 1; grid-row: 3; align-self: stretch; }
.login-card { grid-column: 2; grid-row: 3; align-self: stretch; }

/* 大标题 48 / 1.1 / 600 */
.login-headline {
  margin: 0 0 16px;
  font-size: 48px; line-height: 1.1; font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  color: #F9FAFC;
  min-height: 1.1em;
}
/* 整句白 → 品牌蓝渐变字，一道光每 6s 从左到右扫过 */
.hl-sheen {
  background: linear-gradient(100deg, #F9FAFC 0%, #F9FAFC 30%, #9DB8FF 42%, #3D7BFF 50%, #9DB8FF 58%, #F9FAFC 70%, #F9FAFC 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hl-sheen 6s cubic-bezier(.65, 0, .35, 1) 2s infinite;
}
@keyframes hl-sheen {
  0%   { background-position: 100% 0; }
  45%, 100% { background-position: -50% 0; }
}
.login-desc { margin: 0 0 32px; white-space: nowrap; color: #878D94; font-size: 15px; line-height: 1.7; }

/* 玻璃拟态（视频框与登录卡共用） */
.login-preview,
.login-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03) 60%);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .02),
    0 30px 80px -30px rgba(0, 0, 0, .7);
}
.login-preview::before,
.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

/* ---------- 演示视频框：玻璃框内留 10px 玻璃边，视频圆角 12 ---------- */

.login-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 10px;
}
.preview-video {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #090C11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}

/* 视频加载：蓝色菱形旋转 + 描边菱形外扩，加载完淡出 */
.video-loader {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #090C11;
  transition: opacity var(--hs-dur-slow) var(--hs-ease);
}
.video-loader.is-done { opacity: 0; pointer-events: none; }
.hs-diamond { display: inline-block; border-radius: 14%; transform: rotate(45deg); flex: none; }
.video-loader > span { grid-area: 1 / 1; width: 12px; height: 12px; }
.video-loader__dot { background: #3D7BFF; box-shadow: 0 0 12px rgba(61, 123, 255, .6); animation: hsSpin 1.6s var(--hs-ease) infinite; }
.video-loader__ring { border: 1.5px solid #3D7BFF; background: transparent; animation: hsRing 1.6s ease-out infinite; }
@keyframes hsSpin { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
@keyframes hsRing { 0% { transform: rotate(45deg) scale(1); opacity: .6; } 100% { transform: rotate(45deg) scale(2.3); opacity: 0; } }

/* 全屏 / 声音按钮：右下角玻璃小按钮，悬停或聚焦视频框时淡入 */
.preview-btn {
  position: absolute;
  right: 22px; bottom: 22px;
  z-index: 3;
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(14, 18, 23, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F9FAFC;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  translate: 0 4px;
  transition: opacity var(--hs-dur-base) var(--hs-ease), translate var(--hs-dur-base) var(--hs-ease), background-color var(--hs-dur-fast) var(--hs-ease);
}
.preview-sound-btn { right: 66px; }
.login-preview:hover .preview-btn,
.preview-btn:focus-visible,
.login-preview.is-fs .preview-btn,
.preview-sound-btn.is-on { opacity: 1; translate: 0 0; }
.preview-btn:hover { background: rgba(9, 77, 255, .75); border-color: rgba(255, 255, 255, .28); }
.preview-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(61, 123, 255, .45); }
/* 图标切换：默认显示「全屏」「静音」，状态类切换另一枚 */
.ico-fs-exit, .ico-sound-on { display: none; }
.login-preview.is-fs .ico-fs { display: none; }
.login-preview.is-fs .ico-fs-exit { display: block; }
.preview-sound-btn.is-on .ico-sound-off { display: none; }
.preview-sound-btn.is-on .ico-sound-on { display: block; }

/* 全屏：铺满屏幕、纯黑底，视频等比完整显示 */
.login-preview:fullscreen { padding: 0; border: none; border-radius: 0; background: #000; aspect-ratio: auto; }
.login-preview:fullscreen::before { display: none; }
.login-preview:fullscreen .preview-video { border-radius: 0; object-fit: contain; box-shadow: none; }
.login-preview:fullscreen .preview-btn { right: 32px; bottom: 32px; width: 44px; height: 44px; font-size: 18px; }
.login-preview:fullscreen .preview-sound-btn { right: 86px; }

/* ---------- 登录卡 ---------- */

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.login-card > * { position: relative; }
/* 玻璃背景水印：顶部留白里的淡英文，自上而下渐隐 */
.login-card > .login-watermark {
  position: absolute;
  top: 10px; left: 28px;
  font-size: 64px; line-height: 1; font-weight: 600;
  letter-spacing: -1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
/* 卡内排版按 8px 节奏：标题→说明 8，说明→输入 32，输入间 15，输入→按钮 24 */
.login-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: .5px; color: #F9FAFC; }
.login-sub { margin: 8px 0 32px; color: #878D94; font-size: 13px; line-height: 1.5; }
.login-sub b { color: #E4E6E9; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }

/* 错误提示（卡片内，中文，role=alert，绑定 aria-describedby） */
.err {
  margin: -20px 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #FF8A87;
  background: rgba(240, 86, 83, .12);
  border: 1px solid rgba(240, 86, 83, .22);
}

/* ---------- 登录方式页签 ---------- */

.login-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.login-tabs--3 { grid-template-columns: 1fr 1fr 1fr; }
button.login-tabs__item {
  appearance: none; background: transparent; border: 0; font: inherit; color: #878D94; cursor: pointer; width: 100%;
}
.login-tabs__item {
  position: relative;
  padding: 0 0 12px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #878D94;
  text-decoration: none;
  transition: color var(--hs-dur-fast) var(--hs-ease);
}
a.login-tabs__item:hover, button.login-tabs__item:hover, .login-tabs__item[data-tab]:not(.is-active):hover { color: #E4E6E9; }
.login-tabs__item[data-tab] { cursor: pointer; }
.login-tabs__item.is-active { color: #FFFFFF; font-weight: 600; }
.login-tabs__item:focus-visible { outline: 2px solid #3D7BFF; outline-offset: 2px; border-radius: 4px; }
/* 未开通的页签：标灰，悬停 / 聚焦时提示「暂未开通」 */
.login-tabs__item.is-disabled { color: #4A5058; cursor: not-allowed; }
.login-tabs__tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  translate: -50% 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #2A2F37;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  color: #E4E6E9;
  font-size: 12px; font-weight: 400; line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hs-dur-fast) var(--hs-ease), translate var(--hs-dur-fast) var(--hs-ease);
}
.login-tabs__tip::after {
  content: '';
  position: absolute;
  left: 50%; top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #2A2F37;
}
.login-tabs__item.is-disabled:hover .login-tabs__tip,
.login-tabs__item.is-disabled:focus .login-tabs__tip { opacity: 1; translate: -50% 0; }
.login-tabs__ink {
  position: absolute; bottom: -1px; left: 0;
  width: 50%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent 20%, #3D7BFF 20%, #3D7BFF 80%, transparent 80%);
  /* 页内切换页签时下划线滑到新位置（首屏按服务端给的 is-sms / is-pwd 直接就位） */
  transition: transform var(--hs-dur-base) var(--hs-ease);
}
.login-tabs__ink.is-pwd { transform: translateX(100%); }
.login-tabs--3 .login-tabs__ink { width: 33.3333%; }
.login-tabs--3 .login-tabs__ink.is-pwd { transform: translateX(100%); }
.login-tabs--3 .login-tabs__ink.is-wx { transform: translateX(200%); }

/* ---------- 表单 ---------- */

.field { margin-bottom: 15px; }

/* 输入框：46 高、圆角 10、半透明白底；前置图标平时灰、聚焦品牌蓝 */
.login-input {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color var(--hs-dur-fast) var(--hs-ease), background-color var(--hs-dur-fast) var(--hs-ease), box-shadow var(--hs-dur-fast) var(--hs-ease);
}
.login-input:hover { border-color: rgba(255, 255, 255, .24); }
.login-input:focus-within { background: rgba(255, 255, 255, .08); border-color: #3D7BFF; box-shadow: 0 0 0 3px rgba(61, 123, 255, .28); }
.login-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #F9FAFC;
  font: inherit;
  font-size: 14px;
}
.login-input input::placeholder { color: rgba(255, 255, 255, .25); }
/* 浏览器自动填充：去掉黄底，保持深色玻璃 */
.login-input input:-webkit-autofill,
.login-input input:-webkit-autofill:hover,
.login-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F9FAFC;
  caret-color: #F9FAFC;
  transition: background-color 9999s ease-out 0s;
}
.login-input__icon { flex: none; margin-right: 10px; font-size: 16px; color: #878D94; transition: color var(--hs-dur-fast) var(--hs-ease); }
.login-input:focus-within .login-input__icon { color: #3D7BFF; }
.login-cc { flex: none; margin-right: 8px; padding-right: 8px; font-size: 14px; line-height: 1; color: #BABEC3; border-right: 1px solid rgba(255, 255, 255, .14); }
.login-input__eye {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  margin-right: -4px;
  padding: 0;
  border: none; border-radius: 6px;
  background: none;
  color: rgba(255, 255, 255, .45);
  font-size: 16px;
  cursor: pointer;
  transition: color var(--hs-dur-fast) var(--hs-ease);
}
.login-input__eye:hover { color: rgba(255, 255, 255, .85); }
.login-input__eye:focus-visible { outline: 2px solid #3D7BFF; outline-offset: 0; }
.login-input__eye .ico-eye { display: none; }
.login-input__eye.is-on .ico-eye { display: block; }
.login-input__eye.is-on .ico-eye-off { display: none; }

/* 登录页输入区：两种登录方式按钮落在同一高度（与设计稿叠放两套表单、卡片高度固定一致） */
.login-fields { min-height: 143px; }

/* 短信验证码：输入框 + 获取验证码按钮 */
.login-code { display: flex; gap: 10px; }
.login-code .login-input { flex: 1; min-width: 0; }
.login-code__btn {
  flex: none;
  width: 116px; height: 46px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(61, 123, 255, .35);
  background: rgba(61, 123, 255, .12);
  color: #8DB4FF;
  font: inherit; font-size: 14px;
  cursor: pointer;
  transition: background-color var(--hs-dur-fast) var(--hs-ease), color var(--hs-dur-fast) var(--hs-ease);
}
.login-code__btn:hover:not(:disabled) { background: rgba(61, 123, 255, .2); color: #B9D0FF; }
.login-code__btn:disabled { color: #878D94; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); cursor: not-allowed; }
.login-code__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(61, 123, 255, .45); }
.login-tip { margin: -6px 0 6px; font-size: 12px; color: #878D94; }
.login-tip.is-error { color: #FF8A87; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--hs-dur-fast) var(--hs-ease), box-shadow var(--hs-dur-fast) var(--hs-ease), transform var(--hs-dur-fast) var(--hs-ease), border-color var(--hs-dur-fast) var(--hs-ease);
}
/* 主按钮：品牌蓝上浅下深的微渐变 + 顶边内高光 + 蓝色柔光 */
.btn-primary {
  margin-top: 8px;
  border: none;
  letter-spacing: 2px;
  color: #FFFFFF;
  background: linear-gradient(180deg, #2F6BFF 0%, #094DFF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -8px rgba(9, 77, 255, .6);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #4A7FFF 0%, #1A5BFF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 30px -8px rgba(9, 77, 255, .7);
}
.btn-primary:active {
  background: linear-gradient(180deg, #0742DB 0%, #0638C0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px -8px rgba(9, 77, 255, .6);
  transform: translateY(1px);
}
.btn-primary:focus-visible { outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 3px rgba(61, 123, 255, .45); }
/* 次按钮：深色玻璃 */
.btn-secondary {
  margin-top: 8px;
  color: #E4E6E9;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(61, 123, 255, .45); }

/* 设备确认页双按钮 */
.actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

/* 结果 / 过期页正文：说明行下直接接按钮 */
.result-text { white-space: normal; line-height: 1.7; margin-bottom: 24px; }

/* ---------- 协议勾选 ---------- */

.login-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 12px; line-height: 1.6; color: #9DA3AB; cursor: pointer; }
.login-agree a { color: #8DB4FF; text-decoration: none; }
.login-agree a:hover { color: #B9D0FF; text-decoration: underline; }
.login-agree a:focus-visible { outline: 2px solid #3D7BFF; outline-offset: 1px; border-radius: 2px; }
.login-agree.is-shake { animation: agree-shake .5s ease; }
@keyframes agree-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
/* 复选框：16px 深色方框，勾选后品牌蓝 + 白勾 */
.login-agree__box {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px; height: 16px;
  margin: 2px 0 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background-color var(--hs-dur-fast) var(--hs-ease), border-color var(--hs-dur-fast) var(--hs-ease);
}
.login-agree__box:hover { border-color: #3D7BFF; }
.login-agree__box::after {
  content: '';
  width: 5px; height: 9px;
  margin-top: -2px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--hs-dur-fast) var(--hs-ease);
}
.login-agree__box:checked { background: #094DFF; border-color: #094DFF; }
.login-agree__box:checked::after { transform: rotate(45deg) scale(1); }
.login-agree__box:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(61, 123, 255, .45); }

/* 协议弹窗（原生 dialog） */
.doc-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: #1D2228;
  color: #F9FAFC;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .8);
}
.doc-modal::backdrop { background: rgba(9, 12, 17, .72); }
.doc-modal__title { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.doc-body { max-height: 52vh; overflow: auto; padding-right: 6px; }
.doc-meta { margin: 0 0 12px; font-size: 12px; color: #878D94; }
.doc-body h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; color: #E4E6E9; }
.doc-body p { margin: 0; font-size: 13px; line-height: 1.75; color: #BABEC3; }
.doc-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
/* 未勾选协议时的确认弹窗：比协议全文弹窗窄，正文一段 */
.agree-confirm { width: min(400px, calc(100vw - 32px)); }
.agree-confirm__text { margin: 0; font-size: 14px; line-height: 1.75; color: #BABEC3; }
.agree-confirm__text a { color: #8DB4FF; text-decoration: none; }
.agree-confirm__text a:hover { color: #B9D0FF; text-decoration: underline; }
.doc-modal__actions .btn { width: auto; height: 36px; margin: 0; padding: 0 16px; font-size: 14px; letter-spacing: 0; border-radius: 8px; }

/* ---------- 页脚 / 提示 / 提交遮罩 ---------- */

.login-footer { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 28px; color: rgba(249, 250, 252, .32); font-size: 12px; }

/* 顶部提示条（前端校验提示，如未勾选协议） */
.login-toast {
  position: fixed;
  top: 24px; left: 50%;
  z-index: 60;
  translate: -50% 0;
  max-width: calc(100vw - 32px);
  padding: 9px 16px;
  border-radius: 8px;
  background: #1D2228;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7);
  color: #E4E6E9;
  font-size: 14px;
  animation: toast-in var(--hs-dur-base) var(--hs-ease);
}
.login-toast::before {
  content: '!';
  display: inline-grid;
  place-content: center;
  width: 16px; height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  background: #F5AE39;
  color: #0E1217;
  font-size: 12px; font-weight: 700; line-height: 1;
  vertical-align: -2px;
}
@keyframes toast-in { from { opacity: 0; translate: -50% -8px; } to { opacity: 1; translate: -50% 0; } }

.login-loading {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: rgba(14, 18, 23, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in var(--hs-dur-base) var(--hs-ease);
}
.login-loading__dots { display: flex; gap: 10px; }
.login-loading__dots .hs-diamond { width: 11px; height: 11px; background: #3D7BFF; animation: hsWave 1.2s ease-in-out infinite; }
.login-loading__dots .hs-diamond:nth-child(2) { animation-delay: .15s; }
.login-loading__dots .hs-diamond:nth-child(3) { animation-delay: .3s; }
.login-loading__text { margin: 0; color: #BABEC3; font-size: 13px; letter-spacing: 1px; }
@keyframes hsWave { 0%, 70%, 100% { transform: translateY(0) rotate(45deg); opacity: .35; } 35% { transform: translateY(-60%) rotate(45deg); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 入场动画：自下而上淡入，按 d0–d5 依次错开；登录卡从右侧滑入 ---------- */

.enter { animation: login-enter 480ms cubic-bezier(.65, 0, .35, 1) backwards; animation-delay: 120ms; }
.enter--side { animation-name: login-enter-side; }
.enter.d0 { animation-delay: 120ms; }
.enter.d2 { animation-delay: 280ms; }
.enter.d3 { animation-delay: 360ms; }
.enter.d4 { animation-delay: 440ms; }
.enter.d5 { animation-delay: 520ms; }
@keyframes login-enter { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes login-enter-side { from { opacity: 0; translate: 24px 0; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .enter, .hl-sheen, .video-loader > span, .login-loading__dots .hs-diamond, .login-agree.is-shake, .login-toast, .login-loading { animation: none; }
  .login-tabs__ink { transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .login-main { column-gap: 56px; grid-template-columns: minmax(0, 1fr) 320px; }
  .login-headline { font-size: 40px; }
  .login-desc { white-space: normal; }
}
/* 窄屏：隐藏视频，标题居中，登录卡单列 */
@media (max-width: 1024px) {
  .login-main { grid-template-columns: 1fr; grid-template-rows: none; justify-items: center; text-align: center; }
  .login-headline, .login-desc, .login-card { grid-column: auto; grid-row: auto; }
  .login-preview { display: none; }
  .login-card { width: 100%; max-width: 400px; align-self: auto; text-align: left; margin-top: 8px; padding-top: 84px; }
}
@media (max-width: 560px) {
  .login-top, .login-main, .login-footer { padding-inline: 20px; }
  .login-headline { font-size: 32px; white-space: normal; }
  .login-card { padding: 72px 24px 28px; }
  .login-card > .login-watermark { left: 22px; font-size: 44px; }
}

/* 根路径说明页（landing.html）：直接打开 iam 域名时看到的说明，不提供登录表单 */
.landing-list { margin: 0 0 24px; padding-left: 18px; color: #C9CDD2; font-size: 14px; line-height: 1.8; }
.landing-list li + li { margin-top: 6px; }
.landing-docs { margin: 0; display: flex; gap: 12px; font-size: 13px; }
.landing-docs a { color: #8DB4FF; text-decoration: none; }
.landing-docs a:hover { color: #B9D0FF; text-decoration: underline; }
.landing-docs a:focus-visible { outline: 2px solid #3D7BFF; outline-offset: 1px; border-radius: 2px; }

/* 第三方登录：微信扫码在页签同一排；QQ 是按钮。都没配时模板不输出这块。 */
.login-social { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.login-social__panel { display: flex; flex-direction: column; gap: 8px; }
.login-social__panel[hidden] { display: none; }
.login-social__qr { width: 100%; height: 320px; border: 0; border-radius: 8px; background: #fff; }
.login-social__msg { margin: 0; color: #C9CDD2; font-size: 13px; text-align: center; }
.login-social__back,
.login-social__btn {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: #F9FAFC;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.login-social__back:hover,
.login-social__btn:hover { border-color: #3D7BFF; color: #fff; }
.login-social__back:focus-visible,
.login-social__btn:focus-visible { outline: 2px solid #3D7BFF; outline-offset: 2px; }
.login-forgot { margin: 4px 0 0; text-align: right; font-size: 13px; }
.login-forgot a { color: #8DB4FF; text-decoration: none; }
.login-forgot a:hover { color: #B9D0FF; text-decoration: underline; }
.forgot-step[hidden] { display: none; }
/* 滑块人机校验样式在 slide.css（go-captcha 版式）。 */
.forgot-step .login-btn { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.login-tip.is-error { color: #FF8A8A; }
