.totp-setup-key input.form-control {
  border-radius: 5px 0 0 5px;
  max-width: 300px;
  font-family: 'Lucida Console', 'Courier New', monospace;
  text-overflow: ellipsis;
}
.totp-setup-key button {
  padding: 0 15px;
  color: #384262 !important;
  cursor: pointer;
  background-color: #d8d8dd;
  border-radius: 0 5px 5px 0;
  border: 1px solid #d8d8dd;
}

.totp-setup-key button:hover {
  background-color: #e9eaee;
  box-shadow: 0 1px 7px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.24);
}

.mfa-code-shell {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  border: 1px solid #d8d8dd;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  position: relative;
}

.mfa-code-shell:focus-within,
.mfa-code-shell:has(label:active) {
  border-color: #384262;
  box-shadow: 0 0 0 3px rgba(56, 66, 98, 0.15);
}

.mfa-code-shell label {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.5rem;
  z-index: 1;
}

.mfa-code-track {
  --otp-length: 6;
  --otp-gap: 0.5rem;

  font-size: 2rem;
  line-height: 1.2;
  font-family: 'Lucida Console', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;

  width: calc(
    (var(--otp-length) * 1ch) +
    (var(--otp-length) * var(--otp-gap))
  );

  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.mfa-code-input,
.mfa-code-mask {
  width: 100%;
  font: inherit;
  line-height: inherit;
  letter-spacing: var(--otp-gap);
  box-sizing: border-box;
}

.mfa-code-input {
  display: block;
  text-align: left;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #1e1e24;
  caret-color: #1e1e24;
  position: relative;
  z-index: 3;
}

.mfa-code-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  text-align: right;
  white-space: pre;
  user-select: none;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.mfa-code-mask > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mfa-code-mask-filled {
  color: transparent;
}

.mfa-code-mask-empty {
  color: #b8bcc8;
}

.mfa-code-input::placeholder {
  color: transparent;
}

.mfa-code-input:focus {
  outline: none;
}

.mfa-code-input::selection {
  background: rgba(56, 66, 98, 0.25);
}
