/* styles.css */
body {
  display: flex;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  width: 100%;
}

.left-section {
  width: 50%;
  background: linear-gradient(to bottom right, #007bff, #003d99);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
  animation: fadeIn 1.5s ease-in-out;
}

/* Title animation */
.left-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: slideIn 1.2s ease-in-out;
}

/* Subtitle animation */
.left-section p {
  font-size: 1.2rem;
  opacity: 2;
  animation: fadeIn 2s ease-in-out 0.5s forwards;
}

/* Button animation */
.left-section button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #007bff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.3s ease-in-out, background-color 0.3s;
  animation: bounceIn 1.5s ease-in-out 0.8s forwards;
}

/* Button hover effect */
.left-section button:hover {
  background-color: rgb(19, 219, 230);
  transform: scale(1.1);
}

/* Floating animation */
@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.left-section h1,
.left-section p {
  animation: floatUpDown 3s infinite ease-in-out;
}

/* Keyframes for animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.right-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.right-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 25px;
  width: 100%;
  margin: 10px 0;
}

.icon {
  margin-right: 10px;
}

input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
  margin-left: 0;
  /* Moves the button slightly to the right */
  max-width: 250px;
  display: block;
  /* Ensures it stays aligned properly */
}

button:hover {
  background-color: rgb(19, 219, 230);
  transition: background 0.3s ease-in-out;
}

.forgot-password {
  margin-top: 10px;
  display: block;
  color: #0b0b0e;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-section,
  .right-section {
    width: 100%;
    padding: 20px;
  }

  .left-section h1 {
    font-size: 2rem;
  }

  .left-section p {
    font-size: 1rem;
  }
}

.rainbow-trail {
  position: absolute;
  width: 20px;
  height: 3px;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet
  );
  border-radius: 5px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transform: scale(1.5);
  z-index: 999;
}

/* Fading out effect */
.rainbow-trail {
  animation: fadeOutTrail 0.5s forwards;
}

@keyframes fadeOutTrail {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}
