/* MFA challenge + enrollment modals */
.mfa-challenge-page {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #06060a;
  color: #f5f5f7;
}

.mfa-challenge-page[hidden] {
  display: none !important;
}

.mfa-challenge-card {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.mfa-challenge-card__brand {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mfa-challenge-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.mfa-challenge-card__lead {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.mfa-challenge-card__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.mfa-challenge-card__input:focus {
  outline: none;
  border-color: #ff8fb1;
}

.mfa-challenge-card__submit,
.mfa-challenge-card__ghost {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.mfa-challenge-card__submit {
  background: linear-gradient(135deg, #ff8fb1, #ff6b95);
  color: #111;
}

.mfa-challenge-card__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mfa-challenge-card__ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mfa-challenge-card__help {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.mfa-challenge-card__help button {
  background: none;
  border: none;
  color: #ff8fb1;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.mfa-challenge-card__message {
  margin: 0;
  font-size: 0.88rem;
}

.mfa-challenge-card__message.is-error {
  color: #ff8f9a;
}

.mfa-challenge-card__message.is-success {
  color: #8dffb0;
}

body.mfa-challenge-open #app-shell,
body.mfa-challenge-open #landing-page,
body.mfa-challenge-open .session-loading {
  visibility: hidden;
}

.skyy-mfa-security {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skyy-mfa-security__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.skyy-mfa-security__title {
  font-weight: 600;
}

.skyy-mfa-security__lead {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

.skyy-mfa-security__status {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

.skyy-mfa-security__status[data-state="on"] {
  background: rgba(141, 255, 176, 0.12);
  color: #8dffb0;
}

.account-settings__section .skyy-mfa-security {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.mfa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.mfa-modal-overlay[hidden] {
  display: none !important;
}

.mfa-modal {
  width: min(100%, 440px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #121218;
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mfa-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.mfa-modal__lead {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.mfa-modal__qr {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.mfa-modal__qr svg {
  width: 180px;
  height: 180px;
}

.mfa-modal__secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.mfa-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-align: center;
}

.mfa-modal__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mfa-modal__message {
  margin: 0;
  font-size: 0.88rem;
}

.mfa-modal__message.is-error {
  color: #ff8f9a;
}

.mfa-modal__message.is-success {
  color: #8dffb0;
}

.mfa-modal__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}
