/* 管理后台登录/2FA 专用样式（独立于后台内页样式，避免被覆盖） */
* { box-sizing: border-box; }

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(59, 130, 246, .45), transparent 60%),
    radial-gradient(800px 600px at 88% 92%, rgba(168, 85, 247, .40), transparent 62%),
    linear-gradient(135deg, #0b1e46 0%, #2a1a5e 48%, #0b1220 100%);
  overflow-x: hidden;
  position: relative;
}

.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.auth-body::before {
  width: 320px; height: 320px;
  background: #2563eb;
  top: -80px; left: -60px;
  animation: authFloat 9s ease-in-out infinite;
}
.auth-body::after {
  width: 360px; height: 360px;
  background: #a855f7;
  bottom: -100px; right: -70px;
  animation: authFloat 11s ease-in-out infinite reverse;
}
@keyframes authFloat {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(18px) }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(410px, 94vw);
  background: rgba(255, 255, 255, .98);
  border-radius: 20px;
  padding: 34px 30px 26px;
  box-shadow:
    0 30px 70px rgba(2, 6, 23, .45),
    0 2px 0 rgba(255, 255, 255, .6) inset;
  animation: authIn .38s ease-out;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(14px) scale(.98) }
  to   { opacity: 1; transform: none }
}

.auth-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .35);
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #1d4ed8, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-sub {
  margin: 6px 0 22px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input:focus {
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .16);
}
.auth-field input::placeholder { color: #94a3b8; }

.auth-field input.otp {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.auth-btn {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 22px rgba(79, 70, 229, .32);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.auth-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 26px rgba(79, 70, 229, .4); }
.auth-btn:active { transform: translateY(1px) scale(.995); }

.auth-alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.auth-alert.danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.auth-alert.info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.auth-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
.auth-foot a { color: #4f46e5; text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-qr {
  display: block;
  margin: 4px auto 14px;
  width: 190px;
  height: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.auth-secret {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  text-align: center;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: #334155;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  margin-bottom: 14px;
}

.auth-tip {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 10px;
  text-align: center;
}

@media (max-width: 420px) {
  .auth-card { padding: 28px 20px 22px; border-radius: 16px; }
  .auth-card h1 { font-size: 19px; }
}
