/* ==========================================================================
   Redapi 认证页主题（登录 / 注册 / 忘记密码等）
   作用域：body:has(.card-glass) — 仅在 AuthLayout 页面生效，不影响控制台
   ========================================================================== */

body:has(.card-glass) {
  background: #0A0C10 !important;
}

/* 背景渐变层替换为纯深色 */
body:has(.card-glass) [class*="bg-gradient-to-br"] {
  background-image: none !important;
  background-color: #0A0C10 !important;
}

/* 原有青绿网格底纹隐藏，改用品牌红细网格 */
body:has(.card-glass) [class*="bg-[linear-gradient"] {
  background-image: none !important;
}
body:has(.card-glass)::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 51, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 51, 71, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* 装饰光斑改为品牌红 */
body:has(.card-glass) [class*="blur-3xl"] {
  background: rgba(255, 51, 71, 0.10) !important;
}

/* Logo 光晕 */
body:has(.card-glass) [class*="shadow-primary-500"] {
  box-shadow: 0 10px 30px -10px rgba(255, 51, 71, 0.35) !important;
}

/* 站点名渐变：白 → 品牌红 */
body:has(.card-glass) .text-gradient {
  background-image: linear-gradient(90deg, #FFFFFF 30%, #FF3347 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* 品牌副标题 */
body:has(.card-glass) .mb-8 p {
  color: #98A0AC !important;
}

/* 卡片：深色面板 + 发丝线边框 */
body:has(.card-glass) .card-glass {
  background: rgba(13, 16, 21, 0.92) !important;
  border: 1px solid rgba(235, 238, 245, 0.10) !important;
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.75) !important;
  border-radius: 16px !important;
}

/* 卡片内文字层级 */
body:has(.card-glass) .card-glass h2 {
  color: #ECEFF3 !important;
  letter-spacing: -0.01em;
}
body:has(.card-glass) .card-glass p {
  color: #98A0AC !important;
}
body:has(.card-glass) .card-glass .input-label {
  color: #C9CED6 !important;
}

/* 输入框 */
body:has(.card-glass) .input {
  background: #0A0C10 !important;
  border-color: rgba(235, 238, 245, 0.12) !important;
  color: #ECEFF3 !important;
}
body:has(.card-glass) .input::placeholder {
  color: #5F6773 !important;
}
body:has(.card-glass) .input:focus {
  border-color: #FF3347 !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 71, 0.16) !important;
}
body:has(.card-glass) .input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0A0C10 inset !important;
  -webkit-text-fill-color: #ECEFF3 !important;
}
body:has(.card-glass) select.input option {
  background: #12151B;
  color: #ECEFF3;
}

/* 主按钮：品牌红 */
body:has(.card-glass) .btn-primary {
  background-image: none !important;
  background-color: #FF3347 !important;
  box-shadow: 0 10px 30px -10px rgba(255, 51, 71, 0.5) !important;
}
body:has(.card-glass) .btn-primary:hover {
  background-color: #FF4B5D !important;
  box-shadow: 0 14px 34px -10px rgba(255, 51, 71, 0.55) !important;
}

/* 次要按钮 */
body:has(.card-glass) .btn-secondary {
  background: #12151B !important;
  border-color: rgba(235, 238, 245, 0.14) !important;
  color: #ECEFF3 !important;
}

/* 品牌色链接（忘记密码 / 注册入口 等） */
body:has(.card-glass) a[class*="text-primary-"] {
  color: #FF6070 !important;
}
body:has(.card-glass) a[class*="text-primary-"]:hover {
  color: #FF8A96 !important;
}

/* 输入框图标、辅助文字 */
body:has(.card-glass) .card-glass svg.text-gray-400 {
  color: #6E7683;
}
body:has(.card-glass) .text-gray-400 {
  color: #7B8494 !important;
}
body:has(.card-glass) .text-gray-500 {
  color: #98A0AC !important;
}

/* 勾选框 */
body:has(.card-glass) input[type="checkbox"] {
  accent-color: #FF3347;
}

/* 底部版权 */
body:has(.card-glass) .text-xs {
  color: #6E7683 !important;
}
