.lai-otp-status {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(124, 58, 237, 0.12);
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
}

.lai-otp-status.is-error {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

html[data-theme="dark"] .lai-otp-status.is-error,
html.dark-theme .lai-otp-status.is-error,
body.dark-theme .lai-otp-status.is-error,
html[data-theme="dark"] body .lai-otp-status.is-error {
  color: #fecaca;
}

.lai-otp-email-panel,
.lai-otp-code-panel {
  width: 100%;
}

.lai-otp-email-form {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.free-signup-email-btn,
.lai-otp-email-form .btn-primary {
  width: 100%;
}

.lai-otp-digits {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.25rem 0 1rem;
}

.lai-otp-digit {
  width: 2.65rem;
  height: 3.35rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  color: #0f172a;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
  caret-color: #a78bfa;
}

.lai-otp-digit:not(:placeholder-shown),
.lai-otp-digit.has-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #c9a227;
}

html[data-theme="dark"] .lai-otp-digit,
html.dark-theme .lai-otp-digit,
body.dark-theme .lai-otp-digit {
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border-color: rgba(148, 163, 184, 0.45);
}

html[data-theme="dark"] .lai-otp-digit:not(:placeholder-shown),
html[data-theme="dark"] .lai-otp-digit.has-value,
html.dark-theme .lai-otp-digit:not(:placeholder-shown),
html.dark-theme .lai-otp-digit.has-value,
body.dark-theme .lai-otp-digit:not(:placeholder-shown),
body.dark-theme .lai-otp-digit.has-value {
  color: #e8c547;
}

.lai-otp-digit:focus {
  outline: 2px solid rgba(124, 58, 237, 0.55);
  outline-offset: 1px;
  border-color: #7c3aed;
}

.lai-otp-code-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}

.lai-otp-link {
  border: 0;
  background: transparent;
  color: #a78bfa;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem;
  text-decoration: none;
}

.lai-otp-link:hover {
  color: #c4b5fd;
  text-decoration: none;
}

html[data-theme="light"] .lai-otp-link,
html.light-theme .lai-otp-link,
body.light-theme .lai-otp-link,
.auth-shell .lai-otp-link {
  color: #8b5cf6;
}

html[data-theme="light"] .lai-otp-link:hover,
html.light-theme .lai-otp-link:hover,
body.light-theme .lai-otp-link:hover,
.auth-shell .lai-otp-link:hover {
  color: #7c3aed;
}

.auth-subtitle a[data-lai-otp-code-email],
.auth-subtitle a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

@media (max-width: 420px) {
  .lai-otp-digit {
    width: 2.35rem;
    height: 3rem;
    font-size: 1.2rem;
  }

  .lai-otp-digits {
    gap: 0.4rem;
  }
}
