/* Tema değişkenleri */
:root {
  --primary-color: #4CAF50;
  --primary-hover: #45a049;
  --secondary-color: #6c757d;
  --text-color: #333;
  --text-light: #666;
  --border-color: #ddd;
  --border-focus: #4CAF50;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --info-color: #3498db;
  --bg-light: #f9f9f9;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Genel stiller */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-color);
  line-height: 1.6;
}

.wrapallelements {
  max-width: 450px;
  width: 100%;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.wrapallelements:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

h4, h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-color);
  font-weight: 600;
}

h4 {
  font-size: 25px;
  margin-top: 10px;
}



/* Form alanları */
.field {
  margin-bottom: 20px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-color);
  font-size: 16px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Şifre göster/gizle butonu */
.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  font-size: 18px;
}

.password-toggle:hover {
  color: var(--primary-color);
}

/* Buton stilleri */
button[type="submit"] {
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Hata ve bilgi mesajları */
.alert {
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--error-color);
  color: var(--error-color);
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid var(--info-color);
  color: var(--info-color);
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.alert li {
  margin-bottom: 5px;
}

/* Kullanılabilirlik durumu */
.availability-status {
  font-size: 14px;
  margin-top: 6px;
  display: block;
}

.available {
  color: var(--success-color);
  font-weight: 500;
}

.unavailable {
  color: var(--error-color);
  font-weight: 500;
}

/* reCAPTCHA */
.recaptcha-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
  overflow: hidden;
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

/* Bağlantı butonları */
.btnactions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 12px;
}

.btnlink {
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
  font-weight: 500;
  transition: var(--transition);
}

.btnlink:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btnlink.login {
  background-color: var(--primary-color);
}

.btnlink.returnhome {
  background-color: #5a6268;
}

/* Yükleme animasyonu */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

/* Mobil uyumluluk için medya sorguları */
@media (max-width: 576px) {
  .wrapallelements {
    margin: 10px auto;
    padding: 25px 20px;
    width: 95%;
  }
  
  h4 {
    font-size: 20px;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .btnactions {
    flex-direction: column;
  }
  
  .btnlink {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .g-recaptcha {
    transform: scale(0.85);
  }
  
  button[type="submit"] {
    padding: 14px;
  }
}

/* Çok küçük ekranlar için ek ayarlar */
@media (max-width: 350px) {
  .wrapallelements {
    padding: 20px 15px;
  }
  
  h4 {
    font-size: 20px;
  }
  
  .g-recaptcha {
    transform: scale(0.8);
  }
}

/* Animasyonlar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrapallelements {
  animation: fadeIn 0.5s ease-out;
}

.field {
  animation: fadeIn 0.5s ease-out;
}

/* Özel checkbox stilleri (varsa) */
.checkbox-container {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.checkbox-container label {
  margin-bottom: 0;
  font-weight: normal;
}