/* Login verification code ON/OFF switch, shared by the customer Profile
   (Password & Security tab) and the admin Profile Settings page. Colors come
   from the motolectron.css tokens, so it follows the light and dark themes. */

.login-otp-panel {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--moto-border);
  border-radius: 10px;
  background: var(--moto-panel);
}

.login-otp-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--moto-text);
  font-size: 1rem;
}

.login-otp-state {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--moto-border-hover);
  border-radius: 999px;
  color: var(--moto-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.login-otp-state.is-on {
  border-color: var(--moto-red);
  color: var(--moto-red);
}

.login-otp-switch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 20px;
  cursor: pointer;
}

.login-otp-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.login-otp-switch-track {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--moto-border-hover);
  transition: background-color .2s;
}

.login-otp-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.login-otp-switch input:checked + .login-otp-switch-track {
  background: var(--moto-red);
}

.login-otp-switch input:checked + .login-otp-switch-track::after {
  transform: translateX(20px);
}

.login-otp-switch input:focus-visible + .login-otp-switch-track {
  outline: 3px solid rgba(255, 43, 43, .4);
  outline-offset: 2px;
}

.login-otp-switch-label {
  display: block;
  color: var(--moto-text);
  font-size: .92rem;
  font-weight: 600;
}

.login-otp-switch-help {
  display: block;
  margin-top: 4px;
  color: var(--moto-muted);
  font-size: .8rem;
  line-height: 1.5;
}
