/* ---------------------------
   ECO-STYLE FORM + GLOW BG
----------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Layout */
body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #3E5F44 0%, #1a2b1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #e8f5e9;
  overflow: hidden;
  position: relative;
}

/* Animated background glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  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;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1; /* Above glow */
}

/* -------------------
   Form Card
--------------------*/
.form-card {
  background: rgba(25, 35, 25, 0.95);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 128, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(94, 147, 108, 0.3);
}

.form-card h2 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #b5ffb3;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(94, 147, 108, 0.5);
}

/* Inputs */
.form-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3c6040;
  background: rgba(18, 28, 19, 0.9);
  color: #e8f5e9;
  font-size: 16px;
  outline: none;
  text-align: center;
  transition: all 0.3s ease;
}

.form-card input::placeholder {
  color: #88a18a;
}

.form-card input:focus {
  border-color: #66ff99;
  box-shadow: 0 0 10px #66ff99;
}

/* Button */
.form-card button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #1f8038, #2ecc71);
  color: white;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px #2ecc71;
}

/* -------------------
   Modal
--------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #162116;
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(46, 204, 113, 0.2);
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(94, 147, 108, 0.3);
}

.modal-content p {
  font-size: 16px;
  color: #e8f5e9;
  margin-bottom: 20px;
}

.modal-content button {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  background: #27ae60;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.modal-content button:hover {
  background-color: #219150;
}

/* -------------------
   Animations
--------------------*/
@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* -------------------
   Responsive
--------------------*/
@media (max-width: 480px) {
  .form-card {
    padding: 30px 20px;
  }

  .form-card h2 {
    font-size: 1.5rem;
  }

  body {
    align-items: flex-start;
    padding-top: 40px;
  }
}
