[v-cloak] { display: none; }

* { box-sizing: border-box; }

html, body, #app {
  height: 100%;
  margin: 0;
  background: #f0f2f5;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
}

.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(64, 158, 255, 0.18), transparent 55%),
    linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.login-card { width: min(420px, 100%); }

.login-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.login-brand h2 {
  margin: 0;
  font-size: 22px;
  color: #303133;
}

.login-brand p {
  margin: 4px 0 0;
  color: #909399;
  font-size: 13px;
}

.w-full { width: 100%; }

.layout {
  height: 100%;
}

.aside {
  background: #001529 !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aside-logo {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-weight: 700;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aside .el-menu {
  border-right: none;
  flex: 1;
  overflow-y: auto;
}

.aside .el-menu-item {
  height: 48px;
  line-height: 48px;
}

.aside-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  flex-shrink: 0;
}

.content-wrap {
  min-width: 0;
  overflow: hidden;
}

.header {
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px !important;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.main {
  padding: 16px 20px 28px !important;
  overflow: auto;
  background: #f0f2f5;
}

.page-card {
  border: none;
}

.page-card > .el-card__body {
  padding: 16px 16px 8px;
}

.stat-card { margin-bottom: 16px; }

.stat-label {
  color: #909399;
  font-size: 13px;
}

.stat-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.filter-bar .el-form-item {
  margin-bottom: 0 !important;
  margin-right: 0 !important;
}

.filter-bar .el-form-item__label {
  height: 32px;
  line-height: 32px;
}

.filter-bar .field {
  width: 180px;
}

.filter-bar .field-sm {
  width: 140px;
}

.filter-bar .field-lg {
  width: 220px;
}

.filter-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.table-box {
  width: 100%;
}

.table-box .el-table {
  width: 100%;
}

.mt16 { margin-top: 16px; }

.batch-box {
  max-width: 820px;
}

.batch-box .hint {
  color: #909399;
  font-size: 13px;
}

.totp-setup {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.totp-setup img {
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  background: #fff;
}

.totp-secret {
  max-width: 320px;
  color: #606266;
  font-size: 13px;
  line-height: 1.6;
}

.totp-secret code {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f5f7fa;
  border-radius: 6px;
  word-break: break-all;
  font-size: 14px;
  color: #303133;
}

.code-block {
  margin-top: 10px;
  background: #1f2d3d;
  color: #e5eaf3;
  border-radius: 8px;
  padding: 14px 16px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
