/* HIRENTRA MFA + TRUSTED DEVICE v1.0.0 */

.hirentra-mfa-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(14px);
}

.hirentra-mfa-gate.hidden { display: none !important; }

.hirentra-mfa-panel {
  width: min(100%, 520px);
  max-height: min(92vh, 780px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 26px;
  background: var(--panel-bg, #0f172a);
  color: var(--text-primary, #f8fafc);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.hirentra-mfa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hirentra-mfa-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #facc15;
  color: #0f172a;
  font-weight: 900;
  font-size: 20px;
}

.hirentra-mfa-brand strong {
  display: block;
  letter-spacing: .08em;
  font-size: 13px;
}

.hirentra-mfa-brand span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
}

.hirentra-mfa-kicker {
  margin: 0 0 8px;
  color: #facc15;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hirentra-mfa-panel h2 {
  margin: 0;
  font-size: clamp(23px, 5vw, 32px);
  line-height: 1.08;
}

.hirentra-mfa-copy {
  margin: 12px 0 20px;
  color: var(--text-muted, #cbd5e1);
  line-height: 1.55;
  font-size: 14px;
}

.hirentra-mfa-enrolment {
  display: grid;
  gap: 16px;
}

.hirentra-mfa-qr-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.hirentra-mfa-qr {
  width: min(240px, 70vw);
  height: min(240px, 70vw);
  object-fit: contain;
}

.hirentra-mfa-secret {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, .42);
}

.hirentra-mfa-secret span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hirentra-mfa-secret code {
  display: block;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 13px;
}

.hirentra-mfa-code-label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
}

.hirentra-mfa-code {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 12px;
  background: rgba(15, 23, 42, .32);
  color: inherit;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .3em;
  text-align: center;
}

.hirentra-mfa-code:focus {
  outline: 2px solid rgba(250, 204, 21, .5);
  outline-offset: 2px;
}

.hirentra-mfa-trust {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(148, 163, 184, .08);
  cursor: pointer;
}

.hirentra-mfa-trust input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
}

.hirentra-mfa-trust strong,
.hirentra-mfa-trust small {
  display: block;
}

.hirentra-mfa-trust small {
  margin-top: 4px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.hirentra-mfa-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hirentra-mfa-actions button {
  flex: 1;
}

.hirentra-mfa-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  line-height: 1.45;
}

.hirentra-mfa-message.error { color: #fca5a5; }
.hirentra-mfa-message.success { color: #86efac; }

.hirentra-mfa-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.hirentra-mfa-status-grid > div {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(148, 163, 184, .06);
}

.hirentra-mfa-status-grid span,
.hirentra-mfa-status-grid strong {
  display: block;
}

.hirentra-mfa-status-grid span {
  color: var(--text-muted, #94a3b8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hirentra-mfa-status-grid strong {
  margin-top: 5px;
  font-size: 13px;
}

.hirentra-mfa-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hirentra-mfa-required-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(250, 204, 21, .08);
  color: var(--text-muted, #cbd5e1);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .hirentra-mfa-gate { padding: 12px; }
  .hirentra-mfa-panel { padding: 20px; border-radius: 18px; }
  .hirentra-mfa-status-grid { grid-template-columns: 1fr; }
  .hirentra-mfa-actions { flex-direction: column; }
}
