* {
  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;
}


/* Terms wrapper */
.terms-wrapper input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  cursor: pointer;
  margin-top: 10px;
}

/* ============================
   EcoTrade Modal – Enhanced UI
=============================== */

:root {
  --eco-bg: #1f2822;               /* Dark forest green */
  --eco-bg-light: #263129;        /* Slightly lighter */
  --eco-accent: #7bcf85;          /* Softer eco green */
  --eco-text: #e4f3e0;            /* Light mint white */
  --eco-muted: #b7cbb5;
  --eco-danger: #e07777;
  --eco-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

/* Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);   /* Softer, non-blur background */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 25px;
  overflow-y: auto;
}

/* Modal Container */
.modal {
  background: var(--eco-bg);
  color: var(--eco-text);
  width: 100%;
  max-width: 720px;                  /* Wider for readability */
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: var(--eco-shadow);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  line-height: 1.7;                  /* More breathing room */
  animation: modalPop 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.modal-backdrop.show {
  display: flex;
}


/* Smooth Pop Animation */
@keyframes modalPop {
  from { opacity: 0; transform: translateY(15px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close Button (X) */
.close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  font-weight: 600;
  color: var(--eco-muted);
  cursor: pointer;
  transition: 0.25s ease;
}
.close-modal:hover {
  color: var(--eco-danger);
  transform: scale(1.15);
}

/* Headings */
.modal h2 {
  color: var(--eco-accent);
  margin-bottom: 18px;
  font-size: 26px;
}

.modal h3 {
  color: var(--eco-accent);
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 18px;
  border-left: 4px solid var(--eco-accent);
  padding-left: 10px;
}

/* Text and Lists */
.modal p {
  margin-bottom: 14px;
  color: var(--eco-text);
}

.modal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.modal li {
  margin-bottom: 8px;
  color: var(--eco-muted);
}

/* Buttons */
.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  font-size: 15px;
}

.btn-agree {
  background: var(--eco-accent);
  color: #fff;
}
.btn-agree:hover {
  background: #6abb73;
  box-shadow: 0 0 10px rgba(123,207,133,0.35);
}

.btn-close {
  background: #3a463c;
  color: var(--eco-muted);
}
.btn-close:hover {
  background: #465247;
}

/* Beautiful Scrollbar */
.modal::-webkit-scrollbar {
  width: 8px;
}
.modal::-webkit-scrollbar-thumb {
  background: #4d5d50;
  border-radius: 8px;
}
.modal::-webkit-scrollbar-track {
  background: transparent;
}

/* Mobile Styles */
@media (max-width: 480px) {
  .modal {
    padding: 28px 20px;
    border-radius: 16px;
    max-height: 90vh;
  }

  .modal h2 {
    font-size: 22px;
  }
}

/* Fade-in animation */
@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Pop animation */
@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

