.mp-1-factor-enrollment {
  width: 100%;
  box-sizing: border-box;
  color: #172033;
}

.mp-1-factor-enrollment-body {
  width: 100%;
}

.mp-1-factor-switcher {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  background: #f4f6f9;
}

.mp-1-factor-switch {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #586174;
  cursor: pointer;
}

.mp-1-factor-switch.is-active {
  background: #fff;
  color: #1677ff;
  box-shadow: 0 1px 3px rgb(23 32 51 / 12%);
}

.mp-1-factor-title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.mp-1-factor-field {
  margin-top: 20px;
}

.mp-1-factor-field label,
.mp-1-factor-label {
  display: block;
  margin-bottom: 7px;
  color: #586174;
  font-size: 13px;
  line-height: 20px;
}

.mp-1-factor-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  outline: none;
  color: #172033;
  font-size: 15px;
}

.mp-1-factor-field input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgb(22 119 255 / 14%);
}

.mp-1-factor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.mp-1-factor-primary-button,
.mp-1-factor-secondary-button {
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.mp-1-factor-primary-button {
  border: 1px solid #1677ff;
  background: #1677ff;
  color: #fff;
}

.mp-1-factor-secondary-button {
  border: 1px solid #cfd5df;
  background: #fff;
  color: #3e485b;
}

.mp-1-factor-primary-button:disabled,
.mp-1-factor-secondary-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.mp-1-totp-setup {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.mp-1-totp-qrcode {
  width: 196px;
  height: 196px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #e2e6ed;
  border-radius: 6px;
  background: #fff;
}

.mp-1-totp-qrcode img,
.mp-1-totp-qrcode canvas {
  display: block;
  width: 176px;
  height: 176px;
}

.mp-1-totp-manual {
  min-width: 0;
}

.mp-1-totp-secret-row {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.mp-1-totp-secret-row code {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  overflow-wrap: anywhere;
  border: 1px solid #d9dee8;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #f7f8fa;
  color: #293348;
  font-size: 12px;
  line-height: 18px;
}

.mp-1-factor-copy-button {
  width: 56px;
  flex: 0 0 56px;
  border: 1px solid #d9dee8;
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: #1677ff;
  cursor: pointer;
}

.mp-1-factor-loading,
.mp-1-factor-status {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #687286;
  text-align: center;
}

.mp-1-factor-status > button {
  width: 180px;
}

.mp-1-passkey-setup {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mp-1-factor-status-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e9f7ef;
  color: #168a4b;
  font-size: 26px;
  line-height: 46px;
}

.mp-1-login-factor-enrollment {
  width: 480px;
  margin-left: calc((328px - 480px) / 2);
  padding: 26px;
  box-sizing: border-box;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 16px 42px rgb(23 32 51 / 12%);
}

.mp-1-modal-factor-enrollment .mp-1-modal-dialog {
  width: min(560px, calc(100vw - 32px));
}

.mp-1-modal-factor-enrollment .mp-1-modal-body {
  padding: 24px;
}

@media (max-width: 620px) {
  .mp-1-login-factor-enrollment {
    width: min(420px, calc(100vw - 32px));
    margin-left: calc((328px - min(420px, calc(100vw - 32px))) / 2);
    padding: 20px;
  }

  .mp-1-totp-setup {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mp-1-totp-manual {
    width: 100%;
  }
}
