html {
  height: 100%;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.bg {
  animation: slide 5s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #333 50%, #777 50%);
  position: fixed;
  left: -50%;
  right: -50%;
  top: 0;
  bottom: 0;
  opacity: 0.7;
  z-index: -1;
}
.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 6s;
}
.bg3 {
  animation-duration: 7s;
}

@keyframes slide {
  0% {
    transform: translateX(-20%);
  }
  100% {
    transform: translateX(20%);
  }
}

header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(50, 50, 50, 0.7));
  color: white;
  padding: 20px 10px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 50px 20px;
  flex-wrap: wrap;
}

.image-container {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.image-container img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid #727d73;
}

.form-container {
  width: 50%;
  padding: 20px;
  background: linear-gradient(30deg, #d9dfc6, #727d73);
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.form-container h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: black;
}

.input-container {
  margin-bottom: 20px;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 12px 15px;
  font-size: 14px;
  width: 90%;
  border: 1px solid #ccc;
  border-radius: 5px;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .image-container,
  .form-container {
    width: 80vw;
    height: 80vw; /* Ensures square shape */
    max-width: 300px;
    max-height: 300px;
  }

  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}

.button-group button {
  padding: 12px 25px;
  font-size: 16px;
  color: white;
  background: linear-gradient(45deg, #868b8e, #0a0708);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
}
.translate-button {
  padding: 12px 25px;
  font-size: 16px;
  color: black;
  background: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px;
  transition: all 0.3s ease;
}
footer {
  margin-top: auto;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(50, 50, 50, 0.7));
  color: white;
  padding: 20px 10px;
  font-size: 14px;
  text-align: center;
}

footer .developer-text {
  font-size: 18px;
  margin-bottom: 10px;
}

footer .developer-info {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 10px auto;
  font-size: 18px;
}

footer .developer-info p {
  text-align: center;
  flex: 1;
}

footer a {
  color: #ffccbc; /* Soft coral links */
  text-decoration: underline;
}

footer a:hover {
  color: #ffe0b2; /* Lighter coral hover */
}
footer {
  margin-top: auto;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(50, 50, 50, 0.7));
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

footer p {
  margin: 5px 0;
}
footer .developer-text {
  font-size: 18px;
  margin-bottom: 10px;
}

footer .developer-info {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin-left: 10%;
  font-size: 18px;
}

.error-banner {
  background-color: #ff5252;
  color: white;
  padding: 8px 12px;
  border-radius: A5px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}
