/* 知语 · 暖底水木 —— WeKnora 登录页对齐（nginx 注入，不改镜像） */
html.rzg-warm .login-layout {
  background: linear-gradient(225deg, #1b3350 0%, #23405f 20%, #2a4a78 46%, #12767a 80%, #159a99 100%) !important;
}

/* 装饰动画层压暗、混合模式柔化 */
html.rzg-warm .animated-bg {
  opacity: 0.28 !important;
  mix-blend-mode: soft-light !important;
}

html.rzg-warm .showcase-section,
html.rzg-warm .showcase-section * {
  background-color: transparent !important;
}

/* 主按钮：青蓝 */
html.rzg-warm .t-button--theme-primary {
  background-color: #2a4a78 !important;
  border-color: #2a4a78 !important;
  color: #f2ecde !important;
}
html.rzg-warm .t-button--theme-primary:hover {
  background-color: #23405f !important;
  border-color: #23405f !important;
}
html.rzg-warm .t-button--theme-primary.t-is-disabled,
html.rzg-warm .t-button--theme-primary[disabled] {
  background-color: rgba(42, 74, 120, 0.35) !important;
  border-color: transparent !important;
}

/* 表单区：卡面换暖白，描边用青蓝透明 */
html.rzg-warm .form-section .t-card,
html.rzg-warm .form-section [class*="card"] {
  background: #fffdf6 !important;
  border-color: rgba(42, 74, 120, 0.12) !important;
}
html.rzg-warm .form-section .t-input {
  background: #fffdf6 !important;
  border-color: rgba(42, 74, 120, 0.18) !important;
}
html.rzg-warm .form-section .t-input--focused,
html.rzg-warm .form-section .t-input:focus-within {
  border-color: #159a99 !important;
}

/* TDesign 品牌令牌：WeKnora 在 :root:root 上定义，需要同等或更高特异性才能压过 */
html.rzg-warm:root,
html.rzg-warm:root[theme-mode="light"] {
  --td-brand-color-1: #eaf1f8;
  --td-brand-color-2: #d6e2f1;
  --td-brand-color-3: #b6c9e2;
  --td-brand-color-4: #84a5d2;
  --td-brand-color-5: #3b5c8c;
  --td-brand-color-6: #2a4a78;
  --td-brand-color-7: #23405f;
  --td-brand-color-8: #1c3550;
  --td-brand-color-9: #172c42;
  --td-brand-color-10: #122336;

  --td-brand-color: #2a4a78;
  --td-brand-color-hover: #23405f;
  --td-brand-color-active: #1c3550;
  --td-brand-color-focus: #84a5d2;
  --td-brand-color-disabled: #b6c9e2;
  --td-brand-color-light: #eaf1f8;
  --brand-main: #2a4a78;
}

/* 主按钮：青蓝（覆盖 TDesign 由 --td-brand-color 推导的绿色） */
html.rzg-warm .t-button--theme-primary {
  background-color: #2a4a78 !important;
  border-color: #2a4a78 !important;
  color: #f2ecde !important;
}
html.rzg-warm .t-button--theme-primary:hover {
  background-color: #23405f !important;
  border-color: #23405f !important;
}

/* 次要按钮（创建账户）：描边 + 文字都从绿改青蓝 */
html.rzg-warm .t-button--variant-outline.t-button--theme-default {
  color: #2a4a78 !important;
  border-color: rgba(42, 74, 120, 0.5) !important;
  background-color: #fffdf6 !important;
}
html.rzg-warm .t-button--variant-outline.t-button--theme-default:hover {
  color: #159a99 !important;
  border-color: #159a99 !important;
  background-color: #f7f1e3 !important;
}

/* 右上语言/主题切换等小控件里的绿色文字 */
html.rzg-warm .login-layout a,
html.rzg-warm .login-layout .t-link {
  color: #159a99;
}
