/* ============================================
   登录页 - 高级禅意 · 水流 · 极简
   米白色系 / 无绿色 / 数据洞察
   ============================================ */

/* 隐藏 K 线图 */
.recharts-wrapper,
.recharts-surface,
[class*="recharts"],
canvas:not(#bg-canvas) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 背景画布 */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#root {
  position: relative;
  z-index: 1;
}

/* 页面底色 - 米白 */
body {
  background: #f7f5f0 !important;
  overflow-x: hidden;
}

/* 登录容器居中 */
#root > div {
  min-height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

/* 登录卡片 - 禅意极简 */
#root > div > div,
#root .glass-card {
  background: rgba(255, 255, 253, 0.76) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  border: 1px solid rgba(220, 215, 205, 0.5) !important;
  border-radius: 18px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 60px rgba(120, 113, 108, 0.05),
    0 4px 12px rgba(120, 113, 108, 0.02) !important;
  padding: 48px 44px !important;
  position: relative;
  animation: cardEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 输入框 */
#root input[type="text"],
#root input[type="password"],
#root input[type="email"],
#root input:not([type]) {
  background: rgba(247, 245, 240, 0.6) !important;
  border: 1px solid rgba(210, 205, 195, 0.5) !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-size: 14px !important;
  color: #44403c !important;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#root input[type="text"]:focus,
#root input[type="password"]:focus,
#root input[type="email"]:focus,
#root input:not([type]):focus {
  background: rgba(255, 255, 253, 0.9) !important;
  border-color: rgba(160, 155, 145, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(160, 155, 145, 0.08) !important;
  outline: none !important;
}

#root input::placeholder {
  color: #a8a29e !important;
  font-weight: 300 !important;
}

/* 主按钮 */
#root button[type="submit"],
#root .btn-primary,
#root button[class*="primary"] {
  background: #57534e !important;
  color: #fafaf9 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  box-shadow: 0 2px 8px rgba(87, 83, 78, 0.12) !important;
}

#root button[type="submit"]:hover,
#root .btn-primary:hover,
#root button[class*="primary"]:hover {
  background: #44403c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(87, 83, 78, 0.18) !important;
}

/* 文字 */
#root h1,
#root h2,
#root h3 {
  color: #292524 !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

#root label {
  color: #78716c !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}

#root p,
#root span {
  color: #78716c !important;
}

#root a {
  color: #78716c !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(120, 113, 108, 0.2) !important;
  transition: all 0.3s ease !important;
}

#root a:hover {
  color: #44403c !important;
  border-bottom-color: rgba(68, 64, 60, 0.5) !important;
}

/* 复选框 */
#root input[type="checkbox"] {
  accent-color: #57534e !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168, 162, 158, 0.2); border-radius: 2px; }

@media (max-width: 640px) {
  #root > div > div,
  #root .glass-card {
    padding: 36px 28px !important;
    border-radius: 14px !important;
    margin: 16px !important;
  }
}
