/* Original Oddity shared two-factor challenge UI. Version: v003 */

.oddity-two-factor-root,
.oddity-two-factor-root *,
.oddity-two-factor-root *::before,
.oddity-two-factor-root *::after {
  box-sizing: border-box;
}

.oddity-two-factor-root {
  position: fixed;
  inset: 0;
  z-index: 2147483300;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oddity-two-factor-root[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.oddity-two-factor-root [hidden] {
  display: none !important;
}

.oddity-two-factor-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.oddity-two-factor-dialog {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: #0c0c0c;
  color: #fff;
  box-shadow: 0 24px 72px rgba(0,0,0,.48);
}

.oddity-two-factor-topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 0;
}

.oddity-two-factor-brand {
  grid-column: 2;
  min-width: 0;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.oddity-two-factor-back,
.oddity-two-factor-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.84);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.oddity-two-factor-back {
  grid-column: 1;
  justify-self: start;
  font-size: 18px;
}

.oddity-two-factor-close {
  grid-column: 3;
  justify-self: end;
}

.oddity-two-factor-back:hover:not(:disabled),
.oddity-two-factor-close:hover:not(:disabled) {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.oddity-two-factor-content {
  display: grid;
  gap: 18px;
  padding: 18px 24px 24px;
}

.oddity-two-factor-heading {
  display: grid;
  gap: 5px;
  text-align: center;
}

.oddity-two-factor-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.025em;
}

.oddity-two-factor-heading p,
.oddity-two-factor-method-text span,
.oddity-two-factor-email-meta p,
.oddity-two-factor-success p {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.45;
}

.oddity-two-factor-methods {
  display: grid;
  gap: 9px;
}

.oddity-two-factor-method {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.oddity-two-factor-method:hover:not(:disabled),
.oddity-two-factor-method:focus-visible {
  border-color: rgba(255,151,28,.6);
  background: rgba(255,151,28,.045);
}

.oddity-two-factor-method-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,151,28,.1);
  color: #ff971c;
}

.oddity-two-factor-method-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oddity-two-factor-method-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.oddity-two-factor-method-text strong {
  font-size: 13px;
  line-height: 1.3;
}

.oddity-two-factor-method-text span {
  overflow-wrap: anywhere;
}

.oddity-two-factor-method-arrow {
  color: rgba(255,255,255,.72);
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.oddity-two-factor-method-body {
  display: grid;
  gap: 14px;
}

.oddity-two-factor-otp-field {
  width: 100%;
}

.oddity-two-factor-otp-shell {
  position: relative;
  width: 100%;
  cursor: text;
}

.oddity-two-factor-otp-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 7px;
}

.oddity-two-factor-otp-slot {
  aspect-ratio: 1 / 1;
  min-width: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.oddity-two-factor-otp-slot.is-active,
.oddity-two-factor-otp-shell:focus-within .oddity-two-factor-otp-slot.is-active {
  border-color: #ff971c;
}

.oddity-two-factor-root.has-code-error .oddity-two-factor-otp-slot {
  border-color: rgba(255,91,101,.7);
}

.oddity-two-factor-otp-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: .01;
  color: transparent;
  background: transparent;
  caret-color: transparent;
  font-size: 16px;
}

.oddity-two-factor-field {
  display: grid;
  gap: 6px;
}

.oddity-two-factor-field > span {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
}

.oddity-two-factor-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  outline: none;
  background: #090909;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

.oddity-two-factor-field input:focus {
  border-color: #ff971c;
}

.oddity-two-factor-root.has-code-error .oddity-two-factor-field input {
  border-color: rgba(255,91,101,.72);
}

.oddity-two-factor-email-meta {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.oddity-two-factor-resend {
  min-height: 19px;
  display: grid;
  place-items: center;
}

.oddity-two-factor-resend-countdown {
  color: #ff971c;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.oddity-two-factor-trusted-sender {
  max-width: 100%;
  font-size: 10.5px !important;
  overflow-wrap: anywhere;
}

.oddity-two-factor-trusted-sender strong {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.oddity-two-factor-primary {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 9px;
  background: #ff971c;
  color: #080808;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.oddity-two-factor-primary:hover:not(:disabled) {
  background: #ffa22f;
}

.oddity-two-factor-primary:disabled {
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.5);
  cursor: not-allowed;
}

.oddity-two-factor-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #ff971c;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.oddity-two-factor-link:hover:not(:disabled) {
  text-decoration: underline;
}

.oddity-two-factor-different {
  margin-top: 2px;
}

.oddity-two-factor-status {
  margin: -4px 0 0;
  min-height: 17px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.42;
  text-align: center;
}

.oddity-two-factor-status[data-tone="error"] {
  color: #ff6b74;
}

.oddity-two-factor-status[data-tone="success"] {
  color: #91e4ab;
}

.oddity-two-factor-status[data-tone="info"] {
  color: rgba(255,255,255,.62);
}

.oddity-two-factor-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 8px;
  text-align: center;
}

.oddity-two-factor-success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #ff971c;
  border-radius: 50%;
  color: #ff971c;
}

.oddity-two-factor-success-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oddity-two-factor-success h2 {
  margin: 3px 0 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.oddity-two-factor-success .oddity-two-factor-primary {
  margin-top: 4px;
}

.oddity-two-factor-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.oddity-two-factor-root button:disabled,
.oddity-two-factor-root input:disabled {
  opacity: .62;
}

html.oddity-two-factor-open,
html.oddity-two-factor-open body {
  overflow: hidden !important;
}

.oddity-two-factor-root :focus-visible {
  outline: 2px solid rgba(255,151,28,.58);
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .oddity-two-factor-root {
    align-items: end;
    padding: 10px;
  }

  .oddity-two-factor-dialog {
    width: 100%;
    max-height: calc(100svh - 18px);
    border-radius: 16px;
  }

  .oddity-two-factor-content {
    padding: 16px 16px 20px;
  }

  .oddity-two-factor-topbar {
    padding-inline: 10px;
  }

  .oddity-two-factor-otp-slots {
    gap: 5px;
  }

  .oddity-two-factor-otp-slot {
    border-radius: 7px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .oddity-two-factor-otp-slots {
    gap: 4px;
  }

  .oddity-two-factor-otp-slot {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oddity-two-factor-root *,
  .oddity-two-factor-root *::before,
  .oddity-two-factor-root *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
