/* Captcha Modal Styles - Dark Theme Design */
.captcha-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.captcha-modal {
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.1);
  max-width: 420px;
  width: 90%;
  overflow: hidden;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #334155;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.captcha-modal-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.captcha-modal-header h2 {
  margin: 0;
  color: #f1f5f9;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-modal-header h2::before {
  content: "🔐";
  font-size: 24px;
}

.captcha-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.captcha-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.captcha-modal-body {
  padding: 32px 28px;
  background: #0f172a;
}

.captcha-instruction {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  margin: 0 0 28px 0;
  font-weight: 500;
  line-height: 1.5;
}

.captcha-puzzle-box {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid #475569;
}

.captcha-question-large {
  font-size: 52px;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  letter-spacing: 2px;
}

.captcha-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.captcha-input {
  flex: 1;
  max-width: 140px;
  padding: 16px;
  border: 2px solid #475569;
  border-radius: 10px;
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  color: #f1f5f9;
  background: #0f172a;
  transition: all 0.3s ease;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  /* Remove spinner arrows */
  -moz-appearance: textfield;
  /* Allow text selection in input */
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Remove spinner arrows for Chrome, Safari, Edge */
.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.captcha-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
  background: #1e293b;
}

.captcha-input.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.captcha-refresh-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #94a3b8;
  font-size: 20px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-refresh-btn:hover {
  background: #475569;
  border-color: #64748b;
  color: #3b82f6;
  transform: rotate(180deg);
}

.captcha-error {
  display: none;
  color: #fca5a5;
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 500;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.captcha-modal-footer {
  padding: 20px 28px;
  background: #1e293b;
  text-align: center;
  border-top: 1px solid #334155;
}

.captcha-submit-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 200px;
}

.captcha-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.captcha-submit-btn:active {
  transform: translateY(0);
}
