/*
 * Captcha Styles - Anti-Bot & SVG Security CSS for AphoniX plugin.
 */

.aphonix-captcha-box {
  margin: 16px 0 20px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  user-select: none;
  box-sizing: border-box;
}

.aphonix-captcha-box .captcha-header {
  margin-bottom: 10px;
}

.aphonix-captcha-box .captcha-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: block;
}

.captcha-visual-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.captcha-visual-row .captcha-visual {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.aphonix-captcha-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.aphonix-captcha-svg {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.aphonix-refresh-captcha-btn {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 48px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.aphonix-refresh-captcha-btn:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

.aphonix-refresh-captcha-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

.aphonix-refresh-captcha-btn .dashicons {
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
  margin: 0 !important;
}

@keyframes aphonix-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.aphonix-refresh-captcha-btn.spin .dashicons {
  animation: aphonix-spin 0.8s infinite linear !important;
}

.aphonix-captcha-box .captcha-input-group {
  margin-top: 8px;
}

.aphonix-captcha-box input.captcha-input {
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  letter-spacing: 2px !important;
  text-align: center !important;
  height: 42px !important;
  padding: 6px 12px !important;
  border: 1.5px solid #94a3b8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #0f172a !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.aphonix-captcha-box input.captcha-input:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
  outline: none !important;
}






                .aphonix-method-badge {
                    background: #f0f0ff;
                    border: 1px solid #6c5ce7;
                    color: #4834d4;
                    padding: 8px 12px;
                    border-radius: 6px;
                    font-size: 13px;
                    margin-bottom: 15px;
                    text-align: center;
                }
            

.aphonix-layout-1-template-captcha {font-size: 16px; width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; color: #4f46e5;}

.aphonix-layout-1-template-2fa {margin: 0;}
.aphonix-layout-2-template-2fa {text-align:center; letter-spacing:3px; font-size:18px;}
.aphonix-layout-3-template-2fa {margin: 12px 0 15px; padding: 10px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px; font-size: 12px; color: #475569; text-align: center;}
.aphonix-layout-4-template-2fa {margin-top: 15px;}
.aphonix-layout-5-template-2fa {text-align:center;}
