/* =============================================================================
   StarNexus Press · 登录界面品牌样式（本地新增 · 2026-09-27）
   -----------------------------------------------------------------------------
   本文件集中承载 .press 两个登录界面的视觉：
     1) .snx-admin-login   —— 后台登录（深色系）
     2) .snx-user-login    —— 个人中心 / 用户登录（浅色系 · 左品牌区 + 右表单区）

   设计约束（与设计报告一致）：
     · 只做视觉，不改任何登录逻辑、表单字段、跳转地址与权限校验
     · 品牌主色 #4A3A6B / 辅色 #D4AF37，与 .site 及 OIDC 中转页保持一致
     · 无障碍：正文对比度 ≥ 4.5:1，控件 focus 可见，尊重 prefers-reduced-motion
     · 纯 CSS，无外部依赖（不引第三方库、不引外网字体）
   ============================================================================= */

/* ---------------------------------------------------------------------------
   0. 共享设计令牌
   --------------------------------------------------------------------------- */
.snx-admin-login,
.snx-user-login {
  --snx-primary: #4A3A6B;
  --snx-primary-dark: #2A1F3D;
  --snx-primary-soft: #6C5F7B;
  --snx-gold: #D4AF37;
  --snx-gold-light: #E8C84C;
  --snx-gold-deep: #B8942B;
  --snx-radius-card: 16px;
  --snx-radius-ctl: 12px;
  --snx-font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC',
              'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 全局盒模型：宽度包含内边距与边框。
   否则 .snx-admin-card 的 width:min(100%,420px) 会被左右 padding 撑宽
   （实测 420 → 494），并在窄屏产生横向溢出。 */
.snx-admin-login *,
.snx-admin-login *::before,
.snx-admin-login *::after,
.snx-user-login *,
.snx-user-login *::before,
.snx-user-login *::after {
  box-sizing: border-box;
}

/* ===========================================================================
   1. 后台登录 —— 深色系
   =========================================================================== */
.snx-admin-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--snx-font);
  color: #EDE9F5;
  line-height: 1.6;
  background: #150E20;
  background-image:
    radial-gradient(900px 460px at 18% -6%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 62%),
    radial-gradient(760px 420px at 88% 8%, rgba(108, 95, 123, 0.34) 0%, rgba(108, 95, 123, 0) 66%),
    linear-gradient(158deg, #4A3A6B 0%, #2E2148 42%, #140D1F 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰光斑（纯装饰，不参与交互） */
.snx-admin-login::before,
.snx-admin-login::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}
.snx-admin-login::before {
  width: 380px; height: 380px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.20) 0%, rgba(212, 175, 55, 0) 70%);
}
.snx-admin-login::after {
  width: 460px; height: 460px;
  bottom: -180px; right: -150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.24) 0%, rgba(124, 58, 237, 0) 72%);
}

.snx-admin-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

/* 卡片：宽 420px · 圆角 16px · 金色描边 */
.snx-admin-card {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 40px 36px 30px;
  border-radius: var(--snx-radius-card);
  background: linear-gradient(180deg, rgba(38, 27, 56, 0.94) 0%, rgba(26, 18, 37, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
/* 顶部金色渐变细条 */
.snx-admin-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--snx-primary-soft) 0%, var(--snx-gold) 52%, var(--snx-gold-light) 100%);
}

/* 品牌区 */
.snx-admin-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: center;
}
.snx-admin-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.snx-admin-logo {
  width: 56px; height: 56px;
  /* 2026-10-03 二次调整：与全站 LOGO 外框统一为【圆形】 */
  border-radius: 50%;
  object-fit: cover;
  background: var(--snx-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.55), 0 8px 22px rgba(0, 0, 0, 0.5);
  flex: 0 0 56px;
}
.snx-admin-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.snx-admin-brand-text .name {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}
.snx-admin-brand-text .name .dot { color: var(--snx-gold); }
.snx-admin-brand-text .sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8AFD0;
}

.snx-admin-title {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #FFFFFF;
  letter-spacing: 0.4px;
}
.snx-admin-subtitle {
  margin: 0 0 26px;
  font-size: 13.5px;
  text-align: center;
  color: #B8AFD0;
}

/* 表单 */
.snx-admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.snx-admin-field { display: flex; flex-direction: column; gap: 8px; }
.snx-admin-field label {
  font-size: 13px;
  font-weight: 600;
  color: #CFC6E4;
  letter-spacing: 0.2px;
}
.snx-admin-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  color: #F4F1FA;
  background: rgba(19, 12, 30, 0.72);
  border: 1.5px solid rgba(120, 104, 152, 0.42);
  border-radius: var(--snx-radius-ctl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.snx-admin-input::placeholder { color: #9A8FB5; }
.snx-admin-input:hover { border-color: rgba(150, 132, 186, 0.6); }
.snx-admin-input:focus {
  outline: none;
  background: rgba(19, 12, 30, 0.92);
  border-color: var(--snx-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28);
}
/* 自动填充时保持深色底 */
.snx-admin-input:-webkit-autofill,
.snx-admin-input:-webkit-autofill:hover,
.snx-admin-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F4F1FA;
  -webkit-box-shadow: 0 0 0 1000px rgba(19, 12, 30, 0.92) inset;
  transition: background-color 9999s ease-out;
}

/* 主按钮：金色渐变 · hover 上浮 */
.snx-admin-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.4px;
  color: var(--snx-primary-dark);
  cursor: pointer;
  border: none;
  border-radius: var(--snx-radius-ctl);
  background: linear-gradient(180deg, var(--snx-gold-light) 0%, var(--snx-gold) 62%, var(--snx-gold-deep) 100%);
  box-shadow: 0 8px 20px -6px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.snx-admin-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px -8px rgba(212, 175, 55, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.snx-admin-submit:active { transform: translateY(0); filter: brightness(0.98); }
.snx-admin-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5), 0 8px 20px -6px rgba(212, 175, 55, 0.6);
}
.snx-admin-submit:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }

/* 错误提示 */
.snx-admin-error {
  margin-top: 16px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #FFC2BA;
  background: rgba(179, 38, 30, 0.16);
  border: 1px solid rgba(255, 138, 128, 0.4);
  border-radius: 10px;
  word-break: break-word;
}

/* 底部安全提示 + 版本号 */
.snx-admin-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(150, 132, 186, 0.22);
  text-align: center;
}
.snx-admin-foot .safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: #B8AFD0;
}
.snx-admin-foot .safe .lock { color: var(--snx-gold); }
.snx-admin-foot .ver {
  margin-top: 7px;
  font-size: 11.5px;
  color: #8C82A8;
  letter-spacing: 0.4px;
}

/* 页脚（卡片外） */
.snx-admin-pagefoot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0 20px 22px;
  text-align: center;
  font-size: 12.5px;
  color: #9A8FB5;
}

@media (max-width: 480px) {
  .snx-admin-main { padding: 30px 16px; }
  .snx-admin-card { padding: 32px 22px 26px; border-radius: 14px; }
  .snx-admin-logo { width: 50px; height: 50px; flex-basis: 50px; }
  .snx-admin-brand-text .name { font-size: 19px; }
  .snx-admin-title { font-size: 18px; }
}

/* ===========================================================================
   2. 用户 / 个人中心登录 —— 浅色系 · 左品牌区 60% + 右表单区 40%
   =========================================================================== */
.snx-user-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--snx-font);
  color: #2D2A3A;
  line-height: 1.6;
  background: #F7F5FB;
  -webkit-font-smoothing: antialiased;
}

.snx-user-split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- 左：品牌区 60% ---- */
.snx-user-brandside {
  flex: 0 0 60%;
  max-width: 60%;
  position: relative;
  overflow: hidden;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  background: linear-gradient(150deg, #4A3A6B 0%, #3A2B5A 48%, #2A1F3D 100%);
}
/* 装饰：网格 + 光晕 */
.snx-user-brandside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(620px 360px at 12% 8%, rgba(212, 175, 55, 0.20) 0%, rgba(212, 175, 55, 0) 62%),
    radial-gradient(520px 340px at 92% 92%, rgba(124, 58, 237, 0.34) 0%, rgba(124, 58, 237, 0) 66%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  pointer-events: none;
}
.snx-user-brandside > * { position: relative; z-index: 1; }

.snx-user-brandhead { display: flex; align-items: center; gap: 14px; }
.snx-user-brandhead .logo {
  width: 52px; height: 52px;
  /* 2026-10-03 二次调整：与全站 LOGO 外框统一为【圆形】 */
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6), 0 8px 20px rgba(0, 0, 0, 0.35);
  flex: 0 0 52px;
}
.snx-user-brandhead .name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #FFFFFF;
}
.snx-user-brandhead .name .dot { color: var(--snx-gold); }
.snx-user-brandhead .name .press {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C9C0E0;
  display: block;
  margin-top: 1px;
}

.snx-user-hero { margin: 34px 0 auto; max-width: 520px; }
.snx-user-hero h2 {
  margin: 0 0 14px;
  font-size: 33px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #FFFFFF;
}
.snx-user-hero h2 .hl { color: var(--snx-gold); }
.snx-user-hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #C9C0E0;
}

/* 期刊封面墙 */
.snx-user-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0 0;
  max-width: 560px;
}
.snx-user-cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.snx-user-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
}
.snx-user-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.snx-user-cover .tag {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(180deg, rgba(42, 31, 61, 0) 0%, rgba(42, 31, 61, 0.86) 100%);
}

/* 底部：编委网络 / 合作机构 Logo 墙 */
.snx-user-partners { margin-top: 30px; }
.snx-user-partners .cap {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #A79CC4;
  margin-bottom: 12px;
}
.snx-user-partners .row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.snx-user-partners .chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #E4DEF5;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.snx-user-partners .chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
}

/* ---- 右：表单区 40% ---- */
.snx-user-formside {
  flex: 1 1 40%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #FFFFFF;
}
.snx-user-panel {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.snx-user-panel .p-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--snx-primary);
  letter-spacing: 0.3px;
}
.snx-user-panel .p-sub {
  margin: 0 0 26px;
  font-size: 13.5px;
  color: #6B6580;
}

/* 角色卡片（4 档） */
.snx-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.snx-role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1.5px solid #E4DFF0;
  border-radius: 12px;
  background: #FBFAFE;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #4A4460;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.snx-role-card .ico { font-size: 17px; line-height: 1; flex: 0 0 auto; }
.snx-role-card .lbl { display: flex; flex-direction: column; line-height: 1.25; }
.snx-role-card .lbl small {
  font-size: 10.5px;
  font-weight: 500;
  color: #8A85A0;
  margin-top: 2px;
}
.snx-role-card:hover {
  border-color: #C9BEE4;
  background: #FFFFFF;
  transform: translateY(-1px);
}
.snx-role-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.2);
}
.snx-role-card.active {
  border-color: var(--snx-primary);
  background: #F3EFFB;
  box-shadow: 0 0 0 1px var(--snx-primary) inset, 0 6px 16px -8px rgba(74, 58, 107, 0.5);
}
.snx-role-card.active .lbl small { color: #5A5473; }

/* 表单字段 */
.snx-field { margin-bottom: 18px; }
.snx-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #4A4460;
}
.snx-field label .req { color: #D64545; margin-left: 2px; }
.snx-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 15px;
  font-size: 14.5px;
  font-family: inherit;
  color: #2D2A3A;
  background: #FCFBFE;
  border: 1.5px solid #E0DBEE;
  border-radius: 11px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.snx-input::placeholder { color: #A9A3BC; }
.snx-input:hover { border-color: #C9BEE4; }
.snx-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--snx-primary);
  box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.14);
}
.snx-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: #8A85A0;
}

/* 记住我 / 忘记密码 */
.snx-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 20px;
}
.snx-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B6580;
  cursor: pointer;
}
.snx-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--snx-primary);
  cursor: pointer;
}
.snx-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--snx-primary);
  text-decoration: none;
  transition: color 0.16s ease;
}
.snx-link:hover { color: var(--snx-gold-deep); text-decoration: underline; }
.snx-link:focus-visible { outline: 2px solid var(--snx-primary); outline-offset: 2px; border-radius: 3px; }

/* 主登录按钮 */
.snx-btn-login {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.4px;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--snx-primary) 0%, #5E4C82 100%);
  box-shadow: 0 10px 22px -10px rgba(74, 58, 107, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.snx-btn-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 28px -12px rgba(74, 58, 107, 0.8);
}
.snx-btn-login:active { transform: translateY(0); filter: brightness(0.98); }
.snx-btn-login:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5), 0 10px 22px -10px rgba(74, 58, 107, 0.7);
}
.snx-btn-login:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }

/* 统一认证入口（保留原 SNX_KEYCLOAK_BTN 语义） */
.snx-sso-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.snx-sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--snx-primary) !important;
  text-decoration: none !important;
  background: #FFFFFF;
  border: 1.5px solid #D8D0EA;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.snx-sso-btn:hover {
  border-color: var(--snx-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(74, 58, 107, 0.6);
}
.snx-sso-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.2);
}
.snx-sso-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #A9A3BC;
}
.snx-sso-divider::before,
.snx-sso-divider::after {
  content: '';
  width: 44px;
  height: 1px;
  background: #E4DFF0;
}

/* 底部注册入口 */
.snx-user-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #F0EDF7;
  text-align: center;
  font-size: 13px;
  color: #6B6580;
}

/* ---- 响应式：≤ 980px 堆叠 ---- */
@media (max-width: 980px) {
  .snx-user-split { flex-direction: column; }
  .snx-user-brandside {
    flex: 0 0 auto;
    max-width: none;
    padding: 40px 32px 34px;
  }
  .snx-user-hero { margin: 26px 0 0; }
  .snx-user-hero h2 { font-size: 26px; }
  .snx-user-covers { margin-top: 24px; grid-template-columns: repeat(4, 1fr); max-width: none; }
  .snx-user-partners { margin-top: 24px; }
  .snx-user-formside { padding: 40px 28px 52px; }
  .snx-user-panel { max-width: 460px; }
}

@media (max-width: 560px) {
  .snx-user-brandside { padding: 32px 22px 28px; }
  .snx-user-brandhead .logo { width: 44px; height: 44px; flex-basis: 44px; }
  .snx-user-brandhead .name { font-size: 19px; }
  .snx-user-hero h2 { font-size: 22px; }
  .snx-user-hero p { font-size: 14px; }
  .snx-user-covers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .snx-user-partners .row { gap: 18px; }
  .snx-user-partners .row img { height: 26px; }
  .snx-user-formside { padding: 32px 20px 44px; }
  .snx-role-grid { grid-template-columns: 1fr 1fr; }
  .snx-user-panel .p-title { font-size: 21px; }
}

/* ---------------------------------------------------------------------------
   SNX_ADMIN_OIDC(20261002)：后台统一认证（SSO）入口
   ---------------------------------------------------------------------------
   与金色主按钮形成层次：这里是「次要操作」，故用描边风格而非实心填充，
   避免与主口令登录按钮抢视觉焦点。配色沿用同一套设计令牌。
   --------------------------------------------------------------------------- */
.snx-admin-sso {
  margin-top: 20px;
  text-align: center;
}

/* 分隔线：中间嵌「或」 */
.snx-admin-sso-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #8C82A8;
  font-size: 12px;
  letter-spacing: 1px;
}
.snx-admin-sso-sep::before,
.snx-admin-sso-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 132, 186, 0.34), transparent);
}

.snx-admin-sso-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.3px;
  text-align: center;
  text-decoration: none;
  color: var(--snx-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--snx-radius-ctl);
  background: rgba(212, 175, 55, 0.08);
  transition: all 0.25s ease;
}
.snx-admin-sso-btn:hover {
  color: var(--snx-primary-dark);
  background: linear-gradient(180deg, var(--snx-gold-light) 0%, var(--snx-gold) 62%, var(--snx-gold-deep) 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(212, 175, 55, 0.62);
}
.snx-admin-sso-btn:active { transform: translateY(0); }
.snx-admin-sso-btn:focus-visible {
  outline: 2px solid var(--snx-gold-light);
  outline-offset: 2px;
}

.snx-admin-sso-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8C82A8;
}

@media (max-width: 560px) {
  .snx-admin-sso-btn { padding: 12px 16px; font-size: 14.5px; }
}

/* ---------------------------------------------------------------------------
   3. 动效偏好：尊重 prefers-reduced-motion
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .snx-admin-login *,
  .snx-user-login * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------------
   SNX_LANG_SWITCH(20261003)：登录页 · 中英文切换器
   ---------------------------------------------------------------------------
   放在右表单区（浅色底）右上角，绝对定位，不改变原有 flex 布局的高度与居中行为。
   选中态用主紫实心（--snx-primary），未选中用描边 + 中性色，避免与「登录」主按钮
   争夺视觉焦点。窄屏（<=560px）保持同一定位，只是略微收边距。
   注意：此块追加在文件末尾，位于所有 @media 之后，因此无需提高特异度即可生效。
   --------------------------------------------------------------------------- */
.snx-user-formside { position: relative; }
.snx-langswitch {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--snx-font, inherit);
}
.snx-langswitch a {
  font-size: .85rem;
  line-height: 1;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--snx-radius-ctl, 12px);
  border: 1px solid transparent;
  color: #6B6580;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.snx-langswitch a:hover { color: var(--snx-primary, #4A3A6B); border-color: #C9C0E0; }
.snx-langswitch a:focus-visible { outline: 2px solid var(--snx-primary, #4A3A6B); outline-offset: 2px; }
.snx-langswitch a.active {
  background: var(--snx-primary, #4A3A6B);
  border-color: var(--snx-primary, #4A3A6B);
  color: #FFFFFF;
  font-weight: 600;
}
.snx-langswitch .sep { color: #C9C0E0; font-size: .8rem; }
@media (max-width: 560px) {
  .snx-langswitch { top: 12px; right: 16px; }
}
