/* ==========================================================================
   DataHub 经营后台 · TDesign 设计系统
   2026-08-25 全站统一腾讯标准:token 化底座 + 组件规范 + 细节美化
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  /* 品牌色 */
  --brand: #0052D9;
  --brand-hover: #366EF4;
  --brand-active: #0034B5;
  --brand-focus: #D9E1FF;
  --brand-disabled: #B5C7FF;
  /* 功能色 */
  --success: #00A870;
  --success-light: #E3F9E9;
  --warning: #ED7B2F;
  --warning-light: #FFF1E9;
  --error: #E34D59;
  --error-light: #FDECEE;
  /* 中性色 */
  --text-primary: rgba(0, 0, 0, 0.90);
  --text-secondary: rgba(0, 0, 0, 0.60);
  --text-placeholder: rgba(0, 0, 0, 0.40);
  --text-disabled: rgba(0, 0, 0, 0.26);
  --bg-page: #F3F3F3;
  --bg-container: #FFFFFF;
  --bg-component: #F3F3F3;
  --border-color: #DCDCDC;
  /* 深色侧栏 */
  --sidebar-bg: #001529;
  --sidebar-active: #00345E;
  --sidebar-text: rgba(255, 255, 255, 0.72);
  /* 圆角 */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 9px;
  /* 阴影 */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 8px 30px rgba(0, 0, 0, 0.16);
}

/* ---- 基础 ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  background: var(--bg-page);
  color: var(--text-primary);
}
.layout { display: flex; min-height: 100vh; }

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.16); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }
::-webkit-scrollbar-track { background: transparent; }

/* ---- 侧边栏(深色) ---- */
.sidebar {
  width: 220px; background: var(--sidebar-bg); color: #fff;
  flex-shrink: 0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  padding: 20px; font-size: 15px; font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap; letter-spacing: 0.5px;
}
.nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-group { margin-bottom: 6px; }
.nav-group-title {
  padding: 10px 20px 4px; font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 10px 28px; font-size: 13px;
  color: var(--sidebar-text); cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active {
  background: var(--sidebar-active); color: #fff;
  border-left-color: var(--brand-hover);
}
.nav-item.disabled { color: rgba(255, 255, 255, 0.30); cursor: not-allowed; }
.nav-item.disabled:hover { background: none; }
.nav-item .tag-pending { font-size: 10px; opacity: 0.6; }

/* ---- 主区 ---- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--bg-container); border-bottom: 1px solid var(--border-color);
  padding: 12px 24px; display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.topbar-meta {
  font-size: 11px; color: var(--text-placeholder);
  padding-left: 12px; border-left: 1px solid var(--border-color);
  white-space: nowrap;
}
.content { padding: 24px; flex: 1; }

/* 内容区入场(克制的 staggered reveal) */
.content > * { animation: rise-in 0.32s ease both; }
.content > *:nth-child(2) { animation-delay: 0.04s; }
.content > *:nth-child(3) { animation-delay: 0.08s; }
.content > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- KPI 卡片 ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card {
  background: var(--bg-container); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card .label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.5px; }
.card .value {
  font-size: 28px; font-weight: 600; color: var(--text-primary);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px; line-height: 1.2;
}
.card .sub { font-size: 12px; color: var(--text-placeholder); margin-top: 8px; }

/* ---- 入口卡(总览导航台) ---- */
.entry-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-container); border-radius: var(--radius-md);
  padding: 16px 20px; box-shadow: var(--shadow-1); cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.entry-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.entry-card:hover .entry-arrow { transform: translateX(3px); }
.entry-badge {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--brand-focus); color: var(--brand);
  font-weight: 700; font-size: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.entry-body { flex: 1; min-width: 0; }
.entry-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.entry-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.entry-arrow { color: var(--text-placeholder); font-size: 18px; transition: transform 0.15s; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { box-shadow: var(--shadow-2); border: 1px solid var(--brand-focus); }
.status-card { cursor: pointer; border-top: 3px solid transparent; }
.status-card.red { border-top-color: var(--error); }
.status-card.yellow { border-top-color: var(--warning); }
.status-card.green { border-top-color: var(--success); }
.status-card.dead { border-top-color: var(--text-secondary); }
.status-card.untracked { border-top-color: var(--text-placeholder); }

/* ---- 表格 ---- */
table {
  width: 100%; border-collapse: collapse; background: var(--bg-container);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1);
}
th, td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--bg-component); }
th { background: var(--bg-component); color: var(--text-secondary); font-weight: 600; font-size: 12px; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: #F5F7FA; }
tbody tr:last-child td { border-bottom: none; }
.num { font-variant-numeric: tabular-nums; }
.num-right { text-align: right; }

/* ---- 标签 ---- */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; line-height: 18px;
}
.tag.red { background: var(--error-light); color: var(--error); }
.tag.yellow { background: var(--warning-light); color: var(--warning); }
.tag.green { background: var(--success-light); color: var(--success); }
.tag.confirmed { background: var(--brand-focus); color: var(--brand); }
.tag.dead, .tag.unfiltered { background: var(--bg-component); color: var(--text-secondary); }
.tag.untracked, .tag.diff-del, .tag.diff-keep { background: var(--bg-component); }
.tag.untracked { color: var(--text-placeholder); }
.tag.diff-del { color: var(--text-placeholder); }
.tag.diff-keep { color: var(--text-secondary); }
.tag.on-sale, .tag.diff-add { background: var(--success-light); color: var(--success); }
.tag.off-sale { background: var(--warning-light); color: var(--warning); }
.tag.rejected { background: var(--error-light); color: var(--error); }

/* 变更类型标记 */
.ct-badge {
  display: inline-block; padding: 1px 7px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; margin-left: 4px; line-height: 18px;
}
.ct-badge.ct-新增 { background: var(--success-light); color: var(--success); }
.ct-badge.ct-改价 { background: var(--warning-light); color: var(--warning); }
.ct-badge.ct-下架 { background: var(--bg-component); color: var(--text-secondary); }
tr.ct-row-下架 td { color: var(--text-placeholder); }

/* ---- 控件(按钮/输入统一规范) ---- */
.controls { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
select, button, input {
  padding: 7px 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); font-size: 13px; background: var(--bg-container);
  color: var(--text-primary); transition: border-color 0.15s, box-shadow 0.15s;
}
select:focus, input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-focus);
}
button { cursor: pointer; }
button:hover { border-color: var(--brand-hover); color: var(--brand); }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.user-area { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-area .user-name { font-size: 13px; color: var(--text-primary); font-weight: 500; }
.logout-btn { padding: 4px 12px; font-size: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-container); color: var(--text-secondary); }
.logout-btn:hover { background: var(--error-light); color: var(--error); border-color: var(--error); }

.md-action-btn { padding: 3px 10px; font-size: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-container); }
.md-action-btn:hover { background: var(--bg-component); }
.md-action-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.md-action-btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.md-action-btn.danger { color: var(--error); border-color: var(--error-light); }
.md-action-btn.danger:hover { background: var(--error-light); border-color: var(--error); }
.md-link-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--bg-component); gap: 8px; }
.md-link-row .sub { color: var(--text-placeholder); font-size: 11px; }
.md-link-actions { display: flex; gap: 6px; }
.md-add-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.md-add-row input { flex: 1; padding: 4px 8px; font-size: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.md-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.md-section { background: var(--bg-component); border-radius: var(--radius-md); padding: 12px; }
.md-section h4 { margin: 0 0 8px 0; font-size: 13px; color: var(--text-primary); }

/* ---- 弹层 ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal {
  background: var(--bg-container); border-radius: var(--radius-md); width: 540px;
  max-width: 92vw; max-height: 72vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-3); animation: rise-in 0.2s ease both;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--border-color); font-weight: 600; font-size: 14px; }
.modal-close { cursor: pointer; color: var(--text-placeholder); font-size: 16px; padding: 0 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-search { margin: 12px 16px 8px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 13px; }
.modal-list { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.modal-item { padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--bg-component); }
.modal-item:hover { background: var(--brand-focus); }
.modal-item .sub { color: var(--text-placeholder); font-size: 11px; margin-left: 6px; }
.md-check { width: 16px; height: 16px; }
.md-batch-bar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--brand-focus); border-radius: var(--radius-md); margin-bottom: 12px; font-size: 13px; }
.md-pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 12px 0; font-size: 13px; color: var(--text-secondary); }

/* ---- 图表 ---- */
.chart { background: var(--bg-container); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.chart h3 { font-size: 14px; margin-bottom: 16px; color: var(--text-primary); font-weight: 600; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.bar-row .name { width: 160px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; height: 20px; background: var(--bg-component); border-radius: var(--radius-sm); overflow: hidden; }
.bar-row .bar > div { height: 100%; background: var(--brand); border-radius: var(--radius-sm); transition: width 0.4s ease; }
.bar-row .val { width: 110px; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.quadrant { width: 100%; height: 440px; }
.quadrant svg { width: 100%; height: 100%; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---- 状态 ---- */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; color: var(--text-placeholder); font-size: 13px;
}
.loading::before {
  content: ""; width: 18px; height: 18px; margin-right: 10px;
  border: 2px solid var(--brand-focus); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error { text-align: center; padding: 40px; color: var(--error); }
.placeholder { text-align: center; padding: 80px 40px; color: var(--text-placeholder); }
.placeholder h2 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }

.section { margin: 24px 0; }
.section h3 { font-size: 15px; margin: 0 0 12px; color: var(--text-primary); font-weight: 600; }
.hint {
  margin: 12px 0 0; padding: 10px 14px; background: var(--warning-light);
  color: #B45A2A; font-size: 13px; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 8px;
}
.hint::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warning); margin-top: 6px; flex-shrink: 0;
}
.expand-btn { color: var(--brand); cursor: pointer; font-size: 12px; white-space: nowrap; }
.expand-btn:hover { text-decoration: underline; }
tr.detail-row { background: var(--bg-component); }
.detail-cell { padding: 12px 16px; }
.detail-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.detail-table th { background: var(--bg-component); padding: 6px 10px; font-weight: 600; color: var(--text-secondary); text-align: left; }
.detail-table td { padding: 6px 10px; border-bottom: 1px solid var(--bg-component); }
.detail-table .sub { color: var(--text-placeholder); font-size: 11px; }

@media (max-width: 768px) {
  .sidebar { width: 56px; }
  .brand { font-size: 0; padding: 18px 0; text-align: center; }
  .brand::after { content: "四"; font-size: 16px; }
  .nav-group-title { display: none; }
  .nav-item { padding: 12px 18px; font-size: 0; }
}

/* ---- 出品标准卡 ---- */
.pcard { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; margin: 4px 0; position: relative; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); }
.pcard-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.pcard-print { background: var(--brand); color: #fff; border: none; padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; white-space: nowrap; }
.pcard-print:hover { background: var(--brand-hover); }
.pcard-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pcard-kv-item { background: var(--bg-component); border-radius: var(--radius-md); padding: 10px 12px; }
.pcard-kv-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.pcard-kv-value { font-size: 18px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pcard-section { margin-bottom: 16px; }
.pcard-section h4 { font-size: 13px; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.pcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .pcard-grid { grid-template-columns: 1fr; } }
tr.pcard-sum td { font-weight: 700; background: var(--bg-component); color: var(--text-primary); }

/* ---- 打印 ---- */
@media print {
  body * { visibility: hidden; }
  .pcard, .pcard * { visibility: visible; }
  .pcard { position: absolute; left: 0; top: 0; width: 100%; border: none; padding: 0; }
  .pcard-print { display: none; }
  .sidebar, .topbar { display: none; }
}

/* ---- 版本管理 ---- */
.split { display: flex; gap: 16px; align-items: flex-start; }
.split .pane { background: var(--bg-container); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.vm-list { width: 340px; flex-shrink: 0; max-height: calc(100vh - 140px); overflow-y: auto; padding: 8px; }
.vm-tpl-head { padding: 10px 12px 6px; font-weight: 700; color: var(--text-primary); font-size: 13px; border-bottom: 1px solid var(--border-color); }
.vm-tpl-head:not(:first-child) { margin-top: 10px; }
.vm-major-head { padding: 6px 12px 2px; font-size: 12px; color: var(--text-secondary); }
.vm-detail { flex: 1; min-width: 0; padding: 20px; }
.vm-row { padding: 12px; border-radius: var(--radius-md); cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.vm-row:hover { background: var(--bg-component); }
.vm-row.row-sel { background: var(--brand-focus); border-color: var(--brand); }
.vm-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.vm-vid { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.vm-row-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vm-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.vm-summary { font-size: 12px; color: var(--text-secondary); text-align: right; max-width: 360px; }
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin: 16px 0; }
.tab { padding: 8px 14px; cursor: pointer; font-size: 13px; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab-body { min-height: 200px; }
.diff-add { color: var(--success); }
.diff-del { color: var(--text-placeholder); }
.diff-keep { color: var(--text-secondary); }

/* ---- V7 主从布局 ---- */
.detail-layout { display: flex; gap: 16px; align-items: flex-start; }
.detail-list { flex: 1; min-width: 0; }
.detail-panel {
  width: 460px; flex-shrink: 0; position: sticky; top: 84px;
  max-height: calc(100vh - 104px); overflow-y: auto;
  background: var(--bg-container); border-radius: var(--radius-md);
  box-shadow: var(--shadow-1); padding: 18px 20px;
}
.detail-panel.fluid { width: auto; flex: 1; min-width: 0; }
.detail-panel .dp-placeholder { text-align: center; color: var(--text-placeholder); padding: 60px 20px; }
.detail-panel .dp-placeholder-icon { font-size: 36px; opacity: 0.25; margin-bottom: 8px; }
.detail-panel h3.dp-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.detail-panel .dp-subtitle { font-size: 12px; color: var(--text-placeholder); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--bg-component); }
.info-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 12px; gap: 12px; }
.info-label { color: var(--text-placeholder); flex-shrink: 0; }
.info-val { font-weight: 500; text-align: right; color: var(--text-primary); word-break: break-all; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.metric-cell { background: var(--bg-component); border-radius: var(--radius-md); padding: 10px 6px; text-align: center; }
.metric-cell .metric-val { font-size: 20px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.metric-cell .metric-label { font-size: 11px; color: var(--text-placeholder); margin-top: 2px; }
.panel-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bg-component); }
.panel-section h4 { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
tr.diff-over td { background: var(--error-light); }
tr.diff-missing td { background: var(--warning-light); }
tr.diff-sel td { background: var(--brand-focus); }
tr.md-row.row-sel td { background: var(--brand-focus); }
@media (max-width: 900px) {
  .detail-layout { flex-direction: column; }
  .detail-panel { width: 100%; position: static; max-height: none; }
}

/* ---- 登录页 ---- */
.hidden { display: none !important; }
.login-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #001529 0%, #002766 60%, #0052D9 160%);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.login-card {
  background: var(--bg-container); border-radius: var(--radius-lg);
  padding: 36px 32px; width: 340px; box-sizing: border-box;
  box-shadow: var(--shadow-3); animation: rise-in 0.35s ease both;
}
.login-brand { font-size: 20px; font-weight: 700; color: var(--text-primary); text-align: center; }
.login-sub { font-size: 13px; color: var(--text-placeholder); text-align: center; margin: 4px 0 24px; }
.login-form input { width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-focus); }
.login-form button { width: 100%; padding: 11px; font-size: 14px; font-weight: 600; color: #fff; background: var(--brand); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; }
.login-form button:hover { background: var(--brand-hover); }
.login-error { color: var(--error); font-size: 12px; min-height: 16px; margin-top: 4px; text-align: center; }
