.lightbox-mfa-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 64px;
  background:
    radial-gradient(circle at top left, rgba(33, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(18, 18, 18, 0.1), transparent 28%),
    linear-gradient(180deg, #f7f8fb, #edf1f7);
}

html.dark-mode .lightbox-mfa-shell {
  background:
    radial-gradient(circle at top left, rgba(99, 149, 255, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #0f1722, #111827);
}

.lightbox-mfa-panel {
  width: min(880px, 100%);
  border-radius: 28px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

html.dark-mode .lightbox-mfa-panel {
  background: rgba(17, 24, 39, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-mfa-eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
}

.lightbox-mfa-panel h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
}

.lightbox-mfa-panel p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

html.dark-mode .lightbox-mfa-panel h2,
html.dark-mode .lightbox-mfa-panel p,
html.dark-mode .lightbox-mfa-panel label,
html.dark-mode .lightbox-mfa-label,
html.dark-mode .lightbox-mfa-help,
html.dark-mode .lightbox-mfa-recovery-list code {
  color: #e5e7eb;
}

.lightbox-mfa-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  margin-top: 24px;
}

.lightbox-mfa-grid--verify {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lightbox-mfa-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html.dark-mode .lightbox-mfa-card {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.14);
}

.lightbox-mfa-card--qr {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-mfa-qr {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.lightbox-mfa-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.lightbox-mfa-secret {
  display: block;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(59, 130, 246, 0.32);
}

html.dark-mode .lightbox-mfa-secret {
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.6);
}

.lightbox-mfa-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-mfa-form label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.lightbox-mfa-form input {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

html.dark-mode .lightbox-mfa-form input {
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.75);
  border-color: rgba(148, 163, 184, 0.22);
}

.lightbox-mfa-form button,
.lightbox-mfa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-mfa-form button.lightbox-mfa-secondary {
  background: linear-gradient(135deg, #334155, #64748b);
}

.lightbox-mfa-help {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.lightbox-mfa-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.lightbox-mfa-meta:last-of-type {
  margin-bottom: 16px;
}

.lightbox-mfa-meta__label {
  font-size: 13px;
  color: #64748b;
}

.lightbox-mfa-recovery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.lightbox-mfa-recovery-list code {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  text-align: center;
}

html.dark-mode .lightbox-mfa-recovery-list code {
  background: rgba(2, 6, 23, 0.7);
}

@media (max-width: 760px) {
  .lightbox-mfa-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .lightbox-mfa-grid,
  .lightbox-mfa-grid--verify,
  .lightbox-mfa-recovery-list {
    grid-template-columns: 1fr;
  }
}
