/* Registration multiplication challenge. */
.auth-container .right-form .aurora-math-captcha-item {
  margin-bottom: 16px;
}

.auth-container .right-form .aurora-math-captcha-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.auth-container .right-form .aurora-math-captcha-question {
  color: #555;
  white-space: nowrap;
  font-size: 16px;
}

.auth-container .right-form .aurora-math-captcha-input {
  width: 130px;
  height: 46px;
  padding: 4px 11px;
  font-size: 16px;
  box-sizing: border-box;
}

.auth-container .right-form .aurora-math-captcha-refresh {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: rgba(var(--primary-color), 1);
  cursor: pointer;
  white-space: nowrap;
}

.auth-container .right-form .aurora-math-captcha-error {
  display: none;
  color: #f5222d;
  margin-top: 5px;
  position: static;
  text-align: right;
}

.auth-container .right-form .aurora-math-captcha-has-error .aurora-math-captcha-error {
  display: block;
}

@media screen and (max-width: 800px) {
  .auth-container .right-form .aurora-math-captcha-control {
    flex-wrap: wrap;
    gap: 6px;
  }

  .auth-container .right-form .aurora-math-captcha-question {
    font-size: 14px;
  }

  .auth-container .right-form .aurora-math-captcha-input {
    width: 110px;
    height: 40px;
  }
}

/* Registration text-selection challenge. */
.auth-container .right-form .aurora-text-captcha-item {
  margin-bottom: 16px;
}

.auth-container .right-form .aurora-text-captcha-question {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.5;
}

.auth-container .right-form .aurora-text-captcha-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-container .right-form .aurora-text-captcha-option,
.auth-container .right-form .aurora-text-captcha-refresh {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.auth-container .right-form .aurora-text-captcha-option:hover,
.auth-container .right-form .aurora-text-captcha-refresh:hover {
  border-color: rgba(var(--primary-color), 1);
  color: rgba(var(--primary-color), 1);
}

.auth-container .right-form .aurora-text-captcha-option.is-selected {
  border-color: rgba(var(--primary-color), 1);
  background: rgba(var(--primary-color), 0.08);
  color: rgba(var(--primary-color), 1);
}

.auth-container .right-form .aurora-text-captcha-refresh {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: rgba(var(--primary-color), 1);
}

.auth-container .right-form .aurora-text-captcha-error {
  display: none;
  margin-top: 5px;
  color: #f5222d;
  position: static;
  text-align: left;
}

.auth-container .right-form .aurora-text-captcha-has-error .aurora-text-captcha-error {
  display: block;
}

/* Cloudflare Turnstile challenge. */
.auth-container .right-form .aurora-turnstile-item {
  margin-bottom: 16px;
}

.auth-container .right-form .aurora-turnstile-widget {
  min-height: 65px;
}

.auth-container .right-form .aurora-turnstile-error {
  display: none;
  margin-top: 5px;
  color: #f5222d;
  position: static;
  text-align: left;
}

.auth-container .right-form .aurora-turnstile-has-error .aurora-turnstile-error {
  display: block;
}

/* Keep legacy import controls hidden while leaving the custom client links visible. */
.subscribe-info .col-2 .panel-header,
.subscribe-info .col-2 .import-btns,
.subscribe-info > div[style*="width: 30px"] {
  display: none !important;
}

/* The reset action is available at the top of the subscription panel. */
.profile-container .pro-reset {
  display: none !important;
}

.aurora-reset-subscription {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 6px;
  background: var(--component-background, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.is-darkmode .aurora-reset-subscription {
  background: #303230;
  border-color: rgba(255, 255, 255, 0.1);
}

.aurora-reset-subscription__content {
  min-width: 0;
}

.aurora-reset-subscription__title {
  color: var(--heading-color, #1f1f1f);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.is-darkmode .aurora-reset-subscription__title {
  color: #f5f5f5;
}

.aurora-reset-subscription__description {
  margin-top: 5px;
  color: var(--text-color-secondary, #8c8c8c);
  font-size: 13px;
  line-height: 1.5;
}

.aurora-reset-subscription__button {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  background: #1890ff;
  border: 0;
  border-radius: 4px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.aurora-reset-subscription__button:hover {
  background: #40a9ff;
}

.aurora-reset-subscription__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 576px) {
  .aurora-reset-subscription {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .aurora-reset-subscription__button {
    width: 100%;
  }
}
