/* PM维他命 · FileBrowser 自定义样式 */

/* ── 登录页背景 ── */
html, body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f5f4ed !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

html {
  background: #f5f4ed !important;
}

body::before {
  display: none !important;
}

/* 暴力覆盖所有白色背景 */
html:not(#_x_), body:not(#_x_), div#login:not(#_x_) {
  background: #f5f4ed !important;
  background-color: #f5f4ed !important;
}

#app:not(#_x_), #app > div:not(#_x_) {
  background: #f5f4ed !important;
  background-color: #f5f4ed !important;
}

/* 额外兜底：消除所有元素可能带的白色 */
#login, #login *, div[id="login"] {
  background-color: transparent !important;
}
div#login {
  background-color: #f5f4ed !important;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  width: 100% !important;
  padding: 24px;
}

/* ── 登录卡片 ── */
#login form {
  background: #faf9f5 !important;
  border: 1px solid #f0eee6 !important;
  border-radius: 20px !important;
  padding: 44px 36px !important;
  max-width: 380px !important;
  width: 100% !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04) !important;
}

/* ── Logo 替换 ── */
#login form img {
  display: none !important;
}

#login form::before {
  content: '📁';
  display: block;
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
}

/* ── 标题 ── */
#login h1 {
  font-family: 'Noto Serif SC', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #141413 !important;
  text-align: center !important;
  margin-bottom: 28px !important;
  letter-spacing: -0.3px !important;
}

/* ── 说明文案 ── */
#login form h1::after {
  content: '文件管理\A\A📤 上传本地文件到云服务器\A📥 从云服务器下载文件到本地\A🔒 个人使用，登录后操作';
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #87867f;
  margin-top: 4px;
  letter-spacing: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  text-align: center;
  padding: 14px 10px;
  background: rgba(201,100,66,0.04);
  border-radius: 8px;
}

/* ── 输入框 ── */
#login .input--block {
  background: #ffffff !important;
  border: 1px solid #e8e6dc !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: #141413 !important;
  height: auto !important;
  margin-bottom: 12px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

#login .input--block:focus {
  border-color: #c96442 !important;
  box-shadow: 0 0 0 3px rgba(201,100,66,0.12) !important;
  outline: none !important;
}

#login .input--block::placeholder {
  color: #b0ada3 !important;
}

/* ── 登录按钮 ── */
#login .button--block {
  background: #c96442 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #faf9f5 !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  transition: background 0.2s !important;
  height: auto !important;
  line-height: 1.4 !important;
}

#login .button--block:hover {
  background: #d97757 !important;
}

/* ── 错误提示 ── */
.Vue-Toastification__toast--error {
  background: #faf9f5 !important;
  border: 1px solid #e8e6dc !important;
  border-radius: 12px !important;
  color: #d64045 !important;
  font-size: 13px !important;
}

/* ── 登录后头部 ── */
header .action-bar {
  background: rgba(245, 244, 237, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #f0eee6 !important;
}

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dddacf; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccc8ba; }
