/**
 * Robot Verification Plugin - Stylesheet
 * Compatible with all Sngine themes (Nexus, Default, Dark mode, Light mode)
 */

.robot-verification-container {
  margin: 6px 0 10px 0;
  width: 100%;
  clear: both;
  display: block;
}

.js_login_captcha_wrapper,
.js_signup_captcha_wrapper {
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}

.robot-verification-title {
  font-size: 11px;
  font-weight: 600;
  color: #8898aa;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.robot-verification-title i,
.robot-verification-title svg {
  font-size: 11px;
  opacity: 0.85;
}

/* Math Challenge Box */
.robot-verification-math-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.robot-verification-math-box:focus-within {
  border-color: #2b77e5;
  box-shadow: 0 0 0 2px rgba(43, 119, 229, 0.12);
}

.robot-verification-math-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.5px;
  color: #2b77e5;
  user-select: none;
  min-width: 75px;
  padding: 0 4px;
}

.robot-verification-math-input {
  height: 32px !important;
  line-height: 32px !important;
  padding: 2px 8px !important;
  border-radius: 6px 0 0 6px !important;
  font-weight: 600;
  font-size: 13px !important;
  text-align: center;
  max-width: 80px;
  min-width: 60px;
}

.robot-verification-refresh-btn {
  border-radius: 0 6px 6px 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.robot-verification-refresh-btn:hover {
  transform: rotate(45deg);
}

.robot-verification-refresh-btn.spinning svg,
.robot-verification-refresh-btn.spinning i {
  animation: rvSpin 0.7s linear infinite;
}

@keyframes rvSpin {
  100% {
    transform: rotate(360deg);
  }
}

/* 3rd Party Captcha Wrappers */
.robot-verification-turnstile-wrapper,
.robot-verification-recaptcha-wrapper,
.robot-verification-hcaptcha-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  margin: 10px 0;
}

/* Night / Dark Mode Compatibility */
body.night-mode .robot-verification-math-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .robot-verification-title {
  color: #a0aec0;
}

body.night-mode .robot-verification-math-question {
  color: #63b3ed;
}

body.night-mode .robot-verification-math-input {
  background: #1a202c;
  color: #fff;
  border-color: #4a5568;
}

body.night-mode .robot-verification-math-input:focus {
  background: #2d3748;
  color: #fff;
  border-color: #63b3ed;
}
