/**
 * StarSaltTheme 认证页皮肤（登录 / 注册 / 找回密码 / OAuth 回调共用）
 *
 * 版式来源：前端demo/pages/login.html + assets/css/base/style.css 的 Auth 区块
 *           + assets/css/base/topbar.css 的 console-topbar（auth 形态）
 *
 * 结构：56px 顶栏 → 全屏背景层 → 右侧 440px 玻璃卡片（右下切角 + 顶部 3px 渐变条）
 * 单位：全部 px（与 demo 计算值一致，不跟随运行时 rem 基准）
 * 令牌：全部取自 theme-vars.css，与 demo 的 CSS 变量同名同值
 */

/* ============================================================
   0. 根容器
   reset.css 没有全局 border-box，这里对认证页整棵树显式声明，
   否则 max-width/padding 会按 content-box 计算，卡片实测比设计宽 2px、垂直定位偏 60px。
   ============================================================ */
#login,
#regist,
#forget,
#login *,
#regist *,
#forget * {
  box-sizing: border-box;
}
#login,
#regist,
#forget {
  position: relative;
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-main);
  color: var(--text-main);
  background: #0d1526;
  overflow: hidden;
}

/* ============================================================
   1. 背景层（三层，自下而上）
   ① .ss-auth-bg-photo  合成场景：多光源径向渐变 + 结构网格，打底用
   ② .ss-auth-bg-img    壁纸照片，与 demo 同一个接口，object-fit: cover 铺满
   ③ .ss-auth-bg-overlay demo 同款暗角渐变
   有照片时看到的是 demo 的观感；照片未到位或接口异常时才轮到 ① 兜底，
   遮罩恒定在最上层，两种情况下卡片对比度都成立。
   ============================================================ */
.ss-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0d1526;
}
.ss-auth-bg-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1180px 820px at 80% 14%, rgba(0, 229, 255, .42), transparent 66%),
    radial-gradient(940px 760px at 8% 82%, rgba(139, 92, 246, .50), transparent 64%),
    radial-gradient(760px 620px at 46% 4%, rgba(236, 72, 153, .28), transparent 66%),
    radial-gradient(1200px 900px at 62% 58%, rgba(37, 99, 235, .34), transparent 68%),
    radial-gradient(900px 700px at 30% 30%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(135deg, #4a6493 0%, #56749f 44%, #2b3f63 100%);
}
.ss-auth-bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(126% 96% at 52% 42%, #000 32%, transparent 100%);
  mask-image: radial-gradient(126% 96% at 52% 42%, #000 32%, transparent 100%);
}
/* 照片层：与 demo 同一个壁纸接口（每次加载随机出图）。
   下面是合成场景打底，图未到位或接口异常时页面不会露白，遮罩始终在最上层。 */
.ss-auth-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ss-auth-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .45) 100%);
}

/* ============================================================
   2. 顶栏（复刻 console-topbar 的 auth 形态）
   ============================================================ */
.ss-auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: stretch;
  height: 56px;
}
.ss-auth-topbar-logo {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.ss-auth-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  border-radius: 8px;
  color: #fff;
  font-size: var(--fs-14);
  font-weight: 900;
  line-height: 1;
}
.ss-auth-mark-img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.ss-auth-topbar-text {
  min-width: 0;
}
.ss-auth-topbar-name {
  display: block;
  font-size: var(--fs-15);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-auth-topbar-ver {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-9);
  font-weight: 500;
  color: var(--text-5);
  letter-spacing: .5px;
  line-height: 1.2;
}
.ss-auth-topbar-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--card-border);
}
.ss-auth-topbar-title {
  display: flex;
  align-items: baseline;
  min-width: 0;
  font-size: var(--fs-15);
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-auth-topbar-title-en {
  margin-left: 8px;
  font-size: var(--fs-10);
  font-weight: 600;
  color: var(--text-5);
  letter-spacing: 1px;
}
.ss-auth-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* 语言下拉 */
.ss-lang {
  position: relative;
}
.ss-lang-trigger {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text-3);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.ss-lang-trigger:hover {
  color: var(--brand-blue);
  background: var(--accent-tint);
}
.ss-lang-trigger > svg {
  width: 12px;
  height: 12px;
  transition: transform var(--motion-base);
}
.ss-lang.is-open .ss-lang-trigger > svg {
  transform: rotate(180deg);
}
.ss-lang-flag {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.ss-lang-flag[data-flag="cn"] { background-image: url(../images/flags/cn.svg); }
.ss-lang-flag[data-flag="us"] { background-image: url(../images/flags/us.svg); }

.ss-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 148px;
  padding: 6px 0;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--motion-fast), transform var(--motion-fast), visibility var(--motion-fast);
  z-index: 120;
}
.ss-lang.is-open .ss-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ss-lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: var(--fs-13);
  color: var(--text-3);
  text-align: left;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.ss-lang-item:hover {
  background: var(--accent-tint);
  color: var(--text-main);
}
.ss-lang-item.active {
  color: var(--brand-blue);
}
.ss-lang-item .ss-lang-name {
  flex: 1;
}
.ss-lang-check {
  width: 14px;
  height: 14px;
  opacity: 0;
  color: var(--brand-blue);
}
.ss-lang-item.active .ss-lang-check {
  opacity: 1;
}

.ss-auth-jump {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-fast);
}
.ss-auth-jump:hover {
  color: var(--brand-blue);
}
.ss-auth-jump i {
  font-size: var(--fs-12);
}

/* ============================================================
   3. 主区
   ============================================================ */
.ss-auth-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px 6vw 40px 20px;
}

/* ============================================================
   4. 卡片
   ============================================================ */
.ss-auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 1px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.ss-auth-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
}
.ss-auth-card-inner {
  position: relative;
  z-index: 2;
  padding: 36px 36px 32px;
}

/* ============================================================
   5. 卡片内品牌区
   ============================================================ */
.ss-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.ss-auth-brand-icon {
  /* demo login.html:33 品牌图标 = 32×32 viewBox 的 SVG（rect rx=6 fill=brand-blue + 居中白字），
     卡片里按 40×40 渲染。这里沿用同一份 SVG，避免二次换算圆角与字号。 */
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}
.ss-auth-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ss-auth-brand-icon-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.ss-auth-brand-text {
  min-width: 0;
}
.ss-auth-brand-name {
  font-size: var(--fs-18);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -.5px;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-auth-brand-sub {
  display: block;
  margin-top: 1px;
  /* demo .auth-brand-sub：font-mono / fs-10 / letter-spacing .8px / 无 text-transform
     （文案本身即大写，不靠样式转换） */
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  font-weight: 400;
  line-height: normal;
  color: var(--text-5);
  letter-spacing: .8px;
}

/* 扫码登录切换 */
.ss-auth-qr-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-4);
  transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}
.ss-auth-qr-toggle:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: var(--accent-tint);
}
.ss-auth-qr-toggle svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   6. 主 Tab（登录 / 注册）
   ============================================================ */
.ss-auth-tabs {
  position: relative;
  display: flex;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--divider);
}
.ss-auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: var(--fs-15);
  font-weight: 800;
  font-style: italic;
  line-height: 21px;
  color: var(--text-4);
  text-decoration: none;
  transition: color var(--motion-base);
}
.ss-auth-tab:hover {
  color: var(--text-main);
}
.ss-auth-tab.active {
  color: var(--text-main);
}
.ss-auth-tab-en {
  font-family: var(--font-main);
  font-size: var(--fs-9);
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  color: var(--text-5);
  letter-spacing: 1px;
}
.ss-auth-tab.active .ss-auth-tab-en {
  color: var(--brand-blue);
}
.ss-auth-tab-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--brand-blue);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.ss-auth-tabs.is-single .ss-auth-tab-indicator {
  display: none;
}
.ss-auth-tabs.is-single .ss-auth-tab {
  flex: 0 0 auto;
}
.ss-auth-tabs.is-second .ss-auth-tab-indicator {
  transform: translateX(100%);
}

/* ============================================================
   7. 面板
   ============================================================ */
.ss-auth-panel {
  display: none;
}
.ss-auth-panel.active {
  display: block;
}
/* 面板顶部说明文案（仅 oauth 关联页使用） */
.ss-auth-hint {
  margin: 0 0 18px;
  font-size: var(--fs-12);
  line-height: 18px;
  color: var(--text-4);
}

/* ============================================================
   8. 登录方式分段控件
   ============================================================ */
.ss-auth-methods {
  display: flex;
  margin-bottom: 20px;
  background: var(--accent-tint);
  border: 1px solid var(--divider);
  border-radius: 4px;
  overflow: hidden;
}
.ss-auth-method {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  border-right: 1px solid var(--divider);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 16px;
  color: var(--text-5);
  letter-spacing: .5px;
  white-space: nowrap;
  transition: color var(--motion-fast), background var(--motion-fast);
}
.ss-auth-method:last-child {
  border-right: none;
}
.ss-auth-method:hover {
  color: var(--text-main);
}
.ss-auth-method.active {
  background: var(--surface);
  color: var(--text-main);
}

/* ============================================================
   9. 表单字段
   ============================================================ */
.ss-auth-field {
  margin-bottom: 16px;
}
.ss-auth-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-main);
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 15px;
  color: var(--text-4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ss-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ss-auth-input-wrap:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ss-auth-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  z-index: 2;
  color: var(--text-5);
  pointer-events: none;
  transition: color .2s;
}
.ss-auth-input-wrap:focus-within .ss-auth-input-icon {
  color: var(--brand-blue);
}
.ss-auth-input-wrap > .el-input {
  flex: 1;
  min-width: 0;
}
.ss-auth-input-wrap .el-input__inner {
  height: 41px;
  line-height: 41px;
  padding: 0 14px 0 40px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-main);
  font-size: var(--fs-14);
  color: var(--text-main);
}
.ss-auth-input-wrap .el-input__inner::-webkit-input-placeholder {
  color: var(--text-5);
  font-size: var(--fs-13);
}
.ss-auth-input-wrap .el-input__inner:-ms-input-placeholder {
  color: var(--text-5);
  font-size: var(--fs-13);
}
.ss-auth-input-wrap .el-input__inner::placeholder {
  color: var(--text-5);
  font-size: var(--fs-13);
}
.ss-auth-input-wrap .el-textarea__inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 11px 14px 11px 40px;
  font-family: var(--font-main);
  font-size: var(--fs-14);
  color: var(--text-main);
}

/* 密码可见切换 */
.ss-auth-eye {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-5);
  transition: color var(--motion-fast), background var(--motion-fast);
  z-index: 2;
}
.ss-auth-eye:hover {
  color: var(--text-main);
  background: var(--accent-tint);
}
.ss-auth-eye.is-on {
  color: var(--brand-blue);
}
.ss-auth-eye svg {
  width: 16px;
  height: 16px;
}
.ss-auth-input-wrap.has-eye .el-input__inner {
  padding-right: 44px;
}

/* 手机号 + 国际区号：把 el-input 的 prepend 融进同一根输入框 */
.ss-auth-input-wrap .el-input-group {
  display: flex;
  align-items: center;
  width: 100%;
}
.ss-auth-input-wrap .el-input-group > .el-input__inner {
  flex: 1;
  min-width: 0;
}
.ss-auth-input-wrap .el-input-group__prepend {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 74px;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 0;
  color: var(--text-3);
}
.ss-auth-input-wrap .el-input-group__prepend .el-select,
.ss-auth-input-wrap .el-input-group__prepend .el-select .el-input {
  display: block;
  width: 100%;
  height: 100%;
  /* Element 默认给 prepend 内的 select / input 加负外边距，用来抵消它自己的 padding。
     prepend 的 padding 已是 0，负外边距会把区号整块推出输入框，必须归零。 */
  margin: 0;
}
.ss-auth-input-wrap .el-input-group__prepend .el-input__inner {
  height: 100%;
  line-height: 41px;
  padding: 0 22px 0 12px;
  font-size: var(--fs-13);
  color: var(--text-3);
  cursor: pointer;
}
.ss-auth-input-wrap .el-input-group__prepend .el-input__suffix {
  right: 7px;
}
.ss-auth-input-wrap .el-input-group__prepend .el-select .el-input__icon {
  width: 18px;
  line-height: 40px;
  color: var(--text-5);
}
.ss-auth-input-wrap .el-input-group--prepend .el-input__inner {
  padding-left: 12px;
}

/* 验证码 */
.ss-auth-code {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.ss-auth-code > .el-input {
  flex: 1;
  min-width: 0;
}
.ss-auth-input-wrap.has-code .el-input__inner {
  padding-right: 118px;
}
.ss-auth-code-btn.el-button {
  position: absolute;
  right: 6px;
  z-index: 2;
  padding: 6px 14px;
  height: auto;
  background: var(--btn-bg);
  border: none;
  border-radius: 0;
  color: var(--btn-text);
  font-family: var(--font-main);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% 70%, calc(100% - 6px) 100%, 0 100%, 0 30%);
  transition: background var(--motion-fast), opacity var(--motion-fast);
}
.ss-auth-code-btn.el-button:hover,
.ss-auth-code-btn.el-button:focus {
  background: var(--btn-hover-bg);
  color: var(--btn-text);
}
.ss-auth-code-btn.el-button.is-disabled,
.ss-auth-code-btn.el-button.is-disabled:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  opacity: .45;
  cursor: default;
}

/* 密码强度提示（脱离输入框单独成段，不再做浮层） */
.password-rule {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--accent-tint);
  border: 1px solid var(--divider);
  font-size: var(--fs-12);
  color: var(--text-3);
}
.password-rule-title {
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--text-main);
}
.password-rule-item {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.9;
  color: var(--text-4);
}
.password-rule-item i {
  font-size: var(--fs-13);
  color: var(--border-strong);
}
.password-rule-item.is-pass {
  color: var(--success);
}
.password-rule-item.is-pass i {
  color: var(--success);
}

/* ============================================================
   10. 记住登录 / 协议 / 忘记密码
   ============================================================ */
.ss-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}
/* 诱饵密码框：只用于让浏览器密码管理器不往真实密码框乱填，必须保持可渲染但不可见 */
.empty-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ss-auth-check.el-checkbox {
  display: flex;
  align-items: center;
  margin-right: 0;
}
.ss-auth-check .el-checkbox__input {
  display: flex;
}
.ss-auth-check .el-checkbox__inner {
  width: 16px;
  height: 16px;
  background: var(--accent-tint);
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
  transition: border-color var(--motion-fast);
}
.ss-auth-check .el-checkbox__inner::after {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  border: none;
  border-radius: 0;
  transform: none;
  opacity: 0;
  transition: opacity var(--motion-fast);
}
.ss-auth-check .el-checkbox__input.is-checked .el-checkbox__inner,
.ss-auth-check .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background: var(--accent-tint);
  border-color: var(--brand-blue);
}
.ss-auth-check .el-checkbox__input.is-checked .el-checkbox__inner::after {
  opacity: 1;
  transform: none;
}
.ss-auth-check .el-checkbox__label {
  padding-left: 8px;
  font-size: var(--fs-12);
  color: var(--text-3);
  line-height: 16px;
}
.ss-auth-read {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-12);
  color: var(--text-3);
  line-height: 16px;
  cursor: pointer;
}
.ss-auth-read a,
.ss-auth-link {
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  cursor: pointer;
}
.ss-auth-read a {
  font-weight: 500;
  letter-spacing: 0;
}
.ss-auth-read a:hover,
.ss-auth-link:hover {
  text-decoration: underline;
}
.ss-auth-link {
  font-size: var(--fs-12);
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 错误提示条 */
.ss-auth-alert {
  margin-bottom: 16px;
  padding: 9px 12px;
  background: rgba(225, 29, 72, .08);
  border: 1px solid rgba(225, 29, 72, .24);
  border-left-width: 3px;
  font-size: var(--fs-12);
  line-height: 1.5;
  color: var(--danger-bright);
}

/* ============================================================
   11. 提交按钮
   ============================================================ */
.ss-auth-submit.el-button {
  width: 100%;
  height: auto;
  min-height: 47px;
  padding: 13px 32px;
  margin-bottom: 22px; /* demo .auth-submit：22px，决定其后分割线/社交区的整体节奏 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  border: none;
  border-radius: 0;
  color: var(--btn-text);
  font-family: var(--font-main);
  font-size: var(--fs-15);
  font-weight: 800;
  font-style: italic;
  letter-spacing: .5px;
  clip-path: polygon(10px 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%, 0 30%);
  transition: background var(--motion-base), box-shadow var(--motion-base);
}
/* el-button 会在内容外再包一层 span，flex/gap 必须落在这层上才生效 */
.ss-auth-submit.el-button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ss-auth-submit.el-button:hover,
.ss-auth-submit.el-button:focus {
  background: var(--btn-hover-bg);
  color: var(--btn-text);
  box-shadow: 5px 5px 0 var(--brand-cyan);
}
.ss-auth-submit.el-button:active {
  background: var(--btn-hover-bg);
}
.ss-auth-submit.el-button.is-loading::before {
  border-radius: 0;
}
.ss-auth-submit.el-button.is-loading > span {
  opacity: .7;
}
.ss-auth-submit-en {
  font-size: var(--fs-10);
  font-weight: 700;
  font-style: normal;
  opacity: .6;
  letter-spacing: 2px;
}

/* ============================================================
   12. 其他方式
   ============================================================ */
.ss-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  /* demo .auth-divider-row 未设行高，body 的 1.5 会把 11px 文案撑到 17px，
     显式归位后整条高 15px，与 demo 一致 */
  line-height: normal;
}
.ss-auth-divider span:first-child,
.ss-auth-divider span:last-child {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ss-auth-divider span:nth-child(2) {
  font-family: var(--font-main);
  font-size: var(--fs-11);
  color: var(--text-5);
  letter-spacing: .5px;
  white-space: nowrap;
}
.ss-auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.ss-auth-social-item {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-3);
  transition: border-color var(--motion-fast), color var(--motion-fast), background var(--motion-fast);
}
.ss-auth-social-item:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(37, 99, 235, .08);
}
.ss-auth-social-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   13. 扫码登录
   ============================================================ */
.ss-auth-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 8px;
}
.ss-auth-qr-img {
  position: relative;
  width: 168px;
  height: 168px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.ss-auth-qr-img > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
}
.ss-auth-qr-expire {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, .94);
  color: var(--text-3);
  font-size: var(--fs-12);
  cursor: pointer;
}
.ss-auth-qr-expire i {
  font-size: var(--fs-20);
  color: var(--brand-blue);
}
.ss-auth-qr-tips {
  margin-top: 14px;
  font-size: var(--fs-12);
  color: var(--text-4);
  text-align: center;
}
.ss-auth-qr-select-title {
  margin: 4px 0 16px;
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}
.ss-auth-qr-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: var(--fs-12);
  color: var(--text-4);
  cursor: pointer;
  transition: color var(--motion-fast);
}
.ss-auth-qr-back:hover {
  color: var(--brand-blue);
}
.ss-auth-qr-select .el-radio-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}
.ss-auth-qr-select .el-radio {
  margin-right: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  transition: border-color var(--motion-fast);
}
.ss-auth-qr-select .el-radio.is-checked {
  border-color: var(--brand-blue);
}

/* ============================================================
   13.5 自定义字段表单（插件 ClientCustomField 注入）
   ============================================================ */
.ss-auth-custom-form .el-form-item {
  margin-bottom: 16px;
}
.ss-auth-custom-form .el-form-item__label {
  padding-bottom: 6px;
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-4);
  letter-spacing: 1px;
}
.ss-auth-custom-form .el-form-item__content {
  line-height: 1.5;
}
.ss-auth-custom-form .el-textarea__inner {
  min-height: 72px;
  font-family: var(--font-main);
}

/* ============================================================
   14. 响应式
   ============================================================ */
@media (max-width: 860px) {
  .ss-auth-main {
    justify-content: center;
    padding: 80px 20px 40px;
  }
  .ss-auth-card {
    max-width: 440px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
  }
  /* 移动端只留品牌图标，标题回到顶栏本体（与 demo 一致） */
  .ss-auth-topbar-logo {
    width: auto;
    padding: 0 12px;
  }
  .ss-auth-topbar-text {
    display: none;
  }
  .ss-auth-topbar-body {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .ss-auth-main {
    padding: 70px 12px 24px;
  }
  .ss-auth-card-inner {
    padding: 28px 24px 24px;
  }
  .ss-auth-brand-name {
    font-size: var(--fs-16);
  }
  .ss-auth-submit.el-button {
    padding: 12px 24px;
    font-size: var(--fs-14);
  }
  .ss-auth-bg-overlay {
    background: rgba(0, 0, 0, .6);
  }
}
