/* =================== STILURI PENTRU SISTEMUL DE SECURITATE =================== */

/* Stiluri pentru CAPTCHA */
.security-captcha {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  text-align: center;
  max-width: 350px;
}

.captcha-question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.captcha-input {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  width: 100px;
  margin: 0 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.captcha-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.captcha-refresh {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 8px 12px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Stiluri pentru avertismente de securitate */
.security-warning {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  z-index: 10000;
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  max-width: 300px;
  animation: slideInRight 0.5s ease-out;
}

.security-warning.success {
  background: linear-gradient(45deg, #51cf66, #69db7c);
  box-shadow: 0 6px 20px rgba(81, 207, 102, 0.4);
}

.security-warning.info {
  background: linear-gradient(45deg, #339af0, #5fb3f7);
  box-shadow: 0 6px 20px rgba(51, 154, 240, 0.4);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Stiluri pentru detectarea bot-urilor */
.bot-detection-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  z-index: 99999;
  animation: fadeIn 0.5s ease-in;
}

.bot-detection-content {
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.bot-detection-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bot-detection-content p {
  font-size: 1.2em;
  margin: 10px 0;
  opacity: 0.9;
}

/* Honeypot - complet invizibil */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Stiluri pentru validarea input-urilor */
.security-invalid {
  border: 2px solid #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

/* Stiluri pentru rate limiting */
.rate-limit-warning {
  background: linear-gradient(45deg, #ffa726, #ffb74d);
  border-left: 5px solid #ff9800;
  color: #333;
  font-weight: bold;
}

/* Stiluri pentru protecția clickjacking */
.clickjacking-protection {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  z-index: 99999;
}

.clickjacking-content {
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Stiluri pentru verificarea umană */
.human-verification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  max-width: 400px;
  width: 90%;
}

.human-verification h3 {
  margin-top: 0;
  color: #333;
  text-align: center;
}

.human-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
}

/* Stiluri pentru progres de securitate */
.security-progress {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 12px;
  z-index: 9999;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.security-progress:hover {
  opacity: 1;
}

.security-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.security-status.active {
  background: #4caf50;
  box-shadow: 0 0 10px #4caf50;
}

.security-status.warning {
  background: #ff9800;
  box-shadow: 0 0 10px #ff9800;
}

.security-status.danger {
  background: #f44336;
  box-shadow: 0 0 10px #f44336;
}

/* Responsive design */
@media (max-width: 768px) {
  .security-captcha {
    margin: 15px 5px;
    padding: 15px;
    max-width: 300px;
  }
  
  .security-warning {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    text-align: center;
  }
  
  .bot-detection-content {
    padding: 20px;
    margin: 20px;
  }
  
  .bot-detection-content h1 {
    font-size: 2em;
  }
  
  .human-verification {
    padding: 20px;
    margin: 20px;
  }
}