.authBox.auth-box--mfa-active {
  width: 480px;
  max-width: calc(100vw - 32px);
  padding: 0;
  gap: 0;
  justify-content: center;
  background: var(--form-background);
}

.authBox.auth-box--mfa-active .right-section {
  display: none !important;
}

.mfa-form {
  width: 416px;
  flex-shrink: 0;
  align-self: stretch;
  gap: 0 !important;
}

.authBox.auth-box--mfa-active .mfa-form {
  width: 100%;
  align-self: auto;
  padding: 16px;
  box-sizing: border-box;
}

.mfa-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mfa-slider-track {
  display: flex;
  width: 200%;
  transition: transform 0.28s ease;
  transform: translateX(-50%);
}

.mfa-slider-track.show-alt {
  transform: translateX(0);
}

.mfa-panel {
  width: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mfa-panel-code {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.mfa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.mfa-header-title {
  flex: 1;
  min-width: 0;
}

.mfa-header-title h1 {
  margin: 0;
  line-height: 1.25;
}

.mfa-close-button {
  flex-shrink: 0;
}

.mfa-block-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--normal-text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.17s ease, color 0.17s ease;
}

.mfa-block-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--headline-color);
}

.mfa-content {
  margin-top: 8px;
  margin-bottom: 16px;
}

.mfa-footer {
  margin: 0;
  padding-bottom: 0;
}

.mfa-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfa-label {
  display: block;
  color: var(--label-color);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.mfa-control {
  width: 100%;
}

.mfa-footer-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.mfa-btn-secondary,
.mfa-btn-primary {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.17s ease;
  padding: 7px 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfa-btn-secondary {
  border: none;
  background: #44444c;
  color: #fff;
}

.mfa-btn-secondary:hover {
  background: #4f4f58;
}

.mfa-btn-primary .spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mfa-btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--btn-bg);
  color: #fff;
}

.mfa-btn-primary:hover:not(:disabled) {
  background: var(--btn-bg-hover);
}

.mfa-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mfa-content-alt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -6px;
}

.mfa-alt-subtitle {
  margin: 0 0 12px;
  color: var(--headline-color);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  font-family: inherit;
}

.mfa-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid oklab(0.678888 0.00325716 -0.011175 / 0.2);
  background: var(--input-bg);
  color: var(--input-color);
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.17s ease;
}

.mfa-option-btn:hover {
  background: #3a3b41;
}

.mfa-option-btn svg {
  flex-shrink: 0;
  color: var(--normal-text-color);
}

.mfa-form .mfa-error {
  margin-top: 8px;
  width: 100%;
  color: var(--error-color);
  font-size: 14px;
  line-height: 18px;
}

.mfa-field .login-field-error {
  margin-top: 0;
}
