.wrapallelements {
  max-width: 400px;
  margin: 5vh auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 90%;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #444;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
  color: #222;
  font-size: 16px;
}

.recaptcha-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 15px 0;
  overflow: hidden;
}

button[type="submit"] {
  width: 100%;
  background-color: #4CAF50;
  color: #fff;
  padding: 14px;
  margin-top: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

.error, .alert-danger, .alert-info {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
}

.alert-danger ul, .alert-info ul {
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

.returnhome {
  padding: 10px 15px;
  background-color: #6c757d;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s;
}

.returnhome:hover {
  background-color: #5a6268;
}

.btnlink.signup {
  background-color: #28a745;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btnlink.signup:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btnlink.signup:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Mobil uyumluluk */
@media (max-width: 480px) {
  .btnlink.signup {
    padding: 12px 15px;
    font-size: 16px;
  }
}

.btnactions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.btnactions a {
  flex: 1;
  text-align: center;
  transition: transform 0.2s;
}

.btnactions a:hover {
  transform: translateY(-2px);
}

.field {
  margin-bottom: 15px;
}

/* Mobil uyumluluk için medya sorguları */
@media (max-width: 480px) {
  .wrapallelements {
    margin: 3vh auto;
    padding: 15px;
    width: 85%;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    padding: 14px;
  }
  
  .recaptcha-wrapper {
    transform: scale(0.9);
    transform-origin: center;
  }
  
  button[type="submit"] {
    padding: 16px;
  }
  
  .btnactions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Çok küçük ekranlar için ek ayarlar */
@media (max-width: 350px) {
  .wrapallelements {
    width: 95%;
    padding: 12px;
    margin: 2vh auto;
  }
  
  .recaptcha-wrapper {
    transform: scale(0.85);
  }
  
  h2 {
    font-size: 1.5rem;
  }
}