* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, #3E5F44 0%, #1c1f1a 100%);
  color: #D9E9CF;
  overflow: hidden; /* ✅ prevents scrollbar */
}

/* Animated background glow */
body::before {
  content: '';
  position: fixed; /* ✅ stays anchored to viewport */
  top: 0;
  left: 0;
  width: 100%; /* ✅ no overflow */
  height: 100%;
  background: conic-gradient(from 90deg, #5E936C, #3E5F44, #044e0e, #5E936C);
  filter: blur(120px);
  animation: rotateGlow 15s linear infinite;
  z-index: 0;
  pointer-events: none; /* ✅ no interference with clicks */
}


@keyframes fadeInGlow {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;

  display: grid;
  grid-template-columns: 50% 50%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(25, 30, 25, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

/* LEFT PANEL */
.design {
  background: linear-gradient(160deg, #3E5F44, #5E936C);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #D9E9CF;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.design::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217,233,207,0.2), transparent);
  top: -60px;
  right: -60px;
  border-radius: 50%;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* SIGN UP SECTION */
.login {
  background: rgba(30, 35, 30, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.login h3.title {
  margin-bottom: 20px;
  color: #D9E9CF;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.form-wrapper {
  width: 100%;
margin-left: 70px;
  flex-direction: column;
  align-items: center;
}

.text-input {
  position: relative;
  background: rgba(255,255,255,0.08);
  height: 50px;
  display: flex;
  width: 80%;
  align-items: center;
  border-radius: 12px;
  padding: 0 15px;
  margin: 10px 0;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.text-input:hover {
  border-color: #5E936C;
  box-shadow: 0 0 8px #5E936C;
}

.text-input input, 
.text-input select {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  margin-left: 10px;
  color: #D9E9CF;
  font-size: 15px;
}


.text-input i {
  color: #B6CEB4;
  font-size: 18px;
}

select {
  appearance: none;
  cursor: pointer;

}


/* Dropdown options (inside the list) */
.text-input select option {
  background: #3A6F43; /* dark list background */
  color: #B6CEB4; /* light text */
  
}



::placeholder {
  color: #96A78D;
}

/* Error messages */
.error-message {
  color: #ff5c5c !important;
  font-size: 12px;
  margin-top: -5px;
  margin-bottom: 5px;
  width: 80%;
  text-align: left;
}

/* BUTTON */
.login-btn {
  width: 84%;
  padding: 12px;
  color: white;
  background: linear-gradient(90deg, #5E936C, #3E5F44);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(90deg, #3E5F44, #5E936C);
  box-shadow: 0 0 15px #5E936C;
  transform: translateY(-2px);
}

/* Already have account text */
.forgot {
  margin-top: 20px;
  font-size: 14px;
  margin-right: 50px;
  color: #B6CEB4;
  text-align: center;
}

.forgot a {
  color: #D9E9CF;
  text-decoration: none;
  font-weight: 700;
}

.forgot a:hover {
  color: #5E936C;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 100%;
    min-height: 100vh;
    width: 100%;
    border-radius: 0;
  }

  .design {
    display: none;
  }

  .login {
    padding: 30px 20px;
  }

  .login h3.title {
    font-size: 1.5rem;
  }

  .form-wrapper{
    margin-right: 25px;
  }
  .text-input {
    width: 90%;

  }

  .login-btn {
    width: 90%;
  }

  .error-message {
    width: 90%;
  }
}

/* FADE-IN ANIMATION FOR CONTAINER */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.login, .design {
  animation: fadeInUp 1.4s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}