/* ===== RESET BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e8fff1, #bdf4d6);
}

/* ===== BACKGROUND ANIMATION ===== */
.animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 164, 89, 0.2), rgba(14, 217, 134, 0.15));
  filter: blur(60px);
  animation: pulseGradient 6s ease-in-out infinite alternate;
}

@keyframes pulseGradient {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(23, 172, 87, 0.3), transparent 60%);
  animation: float 10s ease-in-out infinite alternate;
}

.shape1 { width: 200px; height: 200px; top: 10%; left: 10%; animation-delay: 0s; }
.shape2 { width: 150px; height: 150px; bottom: 15%; right: 15%; animation-delay: 2s; }
.shape3 { width: 250px; height: 250px; top: 40%; left: 70%; animation-delay: 4s; }
.shape4 { width: 120px; height: 120px; bottom: 10%; left: 25%; animation-delay: 1s; }

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-25px); }
}

/* ===== FORM CONTAINER ===== */
.login-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  z-index: 1;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
  position: relative;
  backdrop-filter: blur(15px);
  animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.logo {
  width: 100px;
  margin-bottom: 1rem;
  animation: popIn 1s ease;
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

h2 {
  color: #0f5132;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #24684b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1.5px solid #a8e3c6;
  outline: none;
  transition: 0.3s;
  background-color: #ffffffcc;
}

input:focus {
  border-color: #15b25c;
  box-shadow: 0 0 0 3px rgba(21, 178, 92, 0.15);
}

button {
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0cae54, #18f292);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #10b563, #1cf6a0);
}

.redirect-text {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.redirect-text a {
  color: #0fa95d;
  text-decoration: none;
  font-weight: 600;
}

.redirect-text a:hover {
  text-decoration: underline;
}
