.main-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23d5ab, #23a6d5);
  background-size: 300% 300%;
  animation: gradient-bg 8s infinite;
}
body {
  margin: 0;

  background-color: #f0f2f5;
  padding: 0;
}
/* Gradient Animation */
@keyframes gradient-bg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Main Container */
.main-container {
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Form Wrapper */
.form-wrapper {
  overflow: hidden;
  position: relative;
}

.form-content {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 200%;
}

.form {
  width: 50%;
  padding: 30px;
  background: white;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.form.active {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 24px;
}

p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: -webkit-fill-available;
  padding: 14px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.input-group .input-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #aaa;
}

.btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 5px;
  background: linear-gradient(120deg, #6c63ff, #4adede);
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(120deg, #4adede, #6c63ff);
}

.switch-text {
  text-align: center;
  font-size: 13px;
  color: #555;
}

.switch-text .toggle-form {
  color: #6c63ff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.switch-text .toggle-form:hover {
  text-decoration: underline;
}
