:root {
  --brand: #4f46e5;
  --brand2: #7c3aed;
  --ink: #1f2937;
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f1f5f9;
  color: var(--ink);
}

[v-cloak] { display: none; }

/* ---------- 登录页 ---------- */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.login-card {
  width: 360px;
  border-radius: 16px;
  padding: 8px 6px;
}
.login-logo {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: #312e81;
}
.login-sub {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin: 4px 0 18px;
  letter-spacing: 1px;
}

/* ---------- 主框架 ---------- */
.layout { height: 100vh; }
.aside {
  background: linear-gradient(180deg, #312e81 0%, #4f46e5 100%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.brand-logo { font-size: 24px; }
.menu { border-right: none; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  height: 56px;
}
.h-title { font-weight: 600; font-size: 16px; }
.h-right { display: flex; align-items: center; gap: 12px; }

.main { padding: 18px; background: #f1f5f9; }
.card { margin-bottom: 16px; border-radius: 12px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}
.form-grid .span2 { grid-column: 1 / -1; }
.hint { color: #94a3b8; font-size: 12px; margin-left: 8px; }

.code-wait {
  margin-top: 12px;
  color: #4f46e5;
  font-weight: 500;
}
.code-card {
  margin-top: 14px;
  text-align: center;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 22px;
}
.code-label { color: #6366f1; font-size: 13px; letter-spacing: 2px; }
.code-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #312e81;
  margin: 6px 0;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.code-meta { color: #64748b; font-size: 12px; margin-bottom: 12px; }

.msg-table .el-table__row { cursor: pointer; }
.drawer-meta { color: #64748b; font-size: 13px; margin-bottom: 6px; }
.msg-body {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  max-height: 50vh;
  overflow: auto;
}
