/* Auth Sayfaları CSS - Giriş ve Kayıt Formları */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(27, 31, 59, 0.97) 0%, rgba(106, 13, 173, 0.95) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Matrix Animasyonu için Stiller */
.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  opacity: 0.5;
  z-index: 1;
}

.auth-page::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.3) 0%, rgba(106, 13, 173, 0) 70%);
  border-radius: 50%;
  z-index: 1;
}

.auth-container {
  max-width: 500px;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
  margin: 0 auto;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #6A0DAD, #9370DB); /* Mor - Menekşe Gradient */
  z-index: 1;
}

.auth-container h2 {
  font-size: 2rem;
  color: #1B1F3B; /* Ana Renk - Lacivert */
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.auth-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6A0DAD, #9370DB); /* Mor - Menekşe Gradient */
  border-radius: 2px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2C3E50; /* Gece Mavisi */
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(106, 13, 173, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  color: #1B1F3B; /* Ana Renk - Lacivert */
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
  border-color: #6A0DAD; /* Mor */
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
  outline: none;
}

.form-group input::placeholder {
  color: #B39DDB; /* Sistem Moru */
  opacity: 0.7;
}

/* Butonlar */
.auth-container button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #6A0DAD, #9370DB); /* Mor - Menekşe Gradient */
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.auth-container button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.auth-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.auth-container button:hover::before {
  left: 100%;
}

.auth-container p {
  text-align: center;
  margin-top: 25px;
  color: #2C3E50; /* Gece Mavisi */
  font-size: 0.95rem;
}

.auth-container p a {
  color: #6A0DAD; /* Mor */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.auth-container p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6A0DAD, #9370DB); /* Mor - Menekşe Gradient */
  transition: all 0.3s ease;
}

.auth-container p a:hover {
  color: #9370DB; /* Menekşe */
}

.auth-container p a:hover::after {
  width: 100%;
}

/* Şifre Gereksinimleri */
.password-requirements {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 5px;
  border-left: 3px solid #B39DDB;
  font-size: 0.85rem;
}

.password-requirements small {
  display: block;
  margin-bottom: 5px;
  color: #2C3E50;
  font-weight: 500;
}

.password-requirements ul {
  list-style-type: none;
  padding-left: 5px;
  margin: 0;
}

.password-requirements li {
  margin-bottom: 3px;
  position: relative;
  padding-left: 20px;
  transition: all 0.3s ease;
}

.password-requirements li.valid {
  color: #4CAF50;
}

.password-requirements li.invalid {
  color: #F44336;
}

/* Şifre Container ve Göster/Gizle Butonu */
.password-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  width: 100%;
  padding-right: 40px; /* Göz ikonu için yer aç */
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6A0DAD;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  z-index: 10;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: #4B0082;
}

.password-toggle i {
  font-size: 1.1rem;
}

/* Uyarı Mesajları */
.alert-error, .alert-success {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  position: relative;
  animation: fadeIn 0.3s ease-out forwards;
}

.alert-error {
  background-color: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #FF0000;
  color: #D32F2F;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4CAF50;
  color: #388E3C;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .auth-container {
    padding: 30px 20px;
    width: 95%;
  }
  
  .auth-container h2 {
    font-size: 1.8rem;
  }
  
  .form-group input {
    padding: 10px 12px;
  }
}

/* Animasyonlar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-container {
  animation: fadeIn 0.6s ease-out forwards;
}

.form-group {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }

.auth-container button {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.9s forwards;
}

.auth-container p {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1s forwards;
}

/* Şifre gereksinimleri listesi */
.password-requirements {
  background-color: rgba(106, 13, 173, 0.05);
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #2C3E50;
}

.password-requirements small {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #6A0DAD;
}

.password-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.password-requirements li {
  margin-bottom: 3px;
  position: relative;
  transition: color 0.3s ease;
  padding-left: 22px;
}

.password-requirements li::before {
  content: '\2715'; /* X işareti */
  position: absolute;
  left: 0;
  color: #D32F2F; /* Kırmızı */
  font-weight: bold;
  transition: all 0.3s ease;
}

.password-requirements li.valid {
  color: #388E3C; /* Yeşil */
}

.password-requirements li.valid::before {
  content: '\2713'; /* Tik işareti */
  color: #4CAF50; /* Yeşil */
}

/* Şifre bilgi metni */
.password-info {
  margin-top: 5px;
  font-size: 0.85rem;
}

.password-info a {
  color: #6A0DAD;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.password-info a:hover {
  color: #9370DB;
  text-decoration: underline;
}

/* Google reCAPTCHA */
.g-recaptcha {
  margin: 10px 0;
  transform-origin: left top;
  transform: scale(0.95);
}
