* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #dce2d0, #f0e6d2);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  animation: fadeInBody 1.2s ease;
}

/* 🌿 Smooth fade-in for body */
@keyframes fadeInBody {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

.main-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.main-container:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

/* 🌿 Left Image Panel */
.image-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) sepia(0.2) hue-rotate(30deg);
  transition: transform 1s ease, filter 1s ease;
  animation: zoomIn 1.2s ease;
}

@keyframes zoomIn {
  0% { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.image-panel img:hover {
  transform: scale(1.07);
  filter: brightness(1) sepia(0.1);
}

/* 🌿 Overlay */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #3e3a33;
  text-align: center;
  padding: 20px;
  transition: all 0.5s ease;
}

.overlay h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.3s;
}

.overlay p {
  font-size: 1rem;
  line-height: 1.5;
  color: #3e3a33;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.6s;
}

/* 🌿 Right Form Panel */
.form-panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 30px;
  gap: 20px;
  transition: all 0.5s ease;
  animation: fadeInRight 1s ease 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

.form-panel h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #4a3f2f;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.2s;
}

.form-panel .subtext {
  font-size: 1rem;
  color: #5c503f;
  margin-bottom: 15px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.4s;
}

/* 🌿 Inputs + Buttons */
.form-panel input {
  width: 100%;
  max-width: 350px;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  font-size: 1rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.form-panel input:focus {
  box-shadow: 0 0 20px rgba(124, 115, 92, 0.6);
  transform: scale(1.03);
}

.btn {
  width: 100%;
  max-width: 350px;
  padding: 15px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #7b8d42, #b89a6d);
  color: white;
  font-size: 1rem;
  transition: all 0.4s ease;
  animation: fadeInUp 1s forwards 0.7s;
}

.btn:hover {
  transform: scale(1.07) rotate(0.5deg);
  box-shadow: 0 10px 25px rgba(124, 115, 92, 0.6);
}

.btn.outline {
  background: transparent;
  border: 2px solid #7b8d42;
  color: #7b8d42;
}

.btn.outline:hover {
  background: #7b8d42;
  color: white;
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(124, 115, 92, 0.6);
}

/* 🌿 Google Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  padding: 15px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 1s forwards 0.8s;
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(124, 115, 92, 0.4);
}

.note {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 10px;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.9s;
}

/* 🌿 Animation keyframes */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* 🌿 Responsive */
@media (max-width: 900px) {
  body {
    align-items: flex-start;
    background: linear-gradient(135deg, #e9e4d3, #dcd7c4);
  }

  .main-container {
    flex-direction: column;
    height: auto;
    margin-top: 40px;
    border-radius: 20px;
    box-shadow: none;
    animation: slideUp 0.8s ease;
  }

  .image-panel,
  .form-panel {
    width: 100%;
    height: auto;
  }

  .image-panel img {
    height: 250px;
    object-position: center;
  }

  .overlay {
    background: rgba(255,255,255,0.3);
    padding: 15px;
  }

  .overlay h1 { font-size: 1.6rem; }
  .overlay p { font-size: 0.9rem; }

  .form-panel { padding: 30px 20px; gap: 15px; }
  .form-panel h2 { font-size: 1.6rem; }
  .form-panel input,
  .btn,
  .google-btn { max-width: 100%; }
  .note { font-size: 0.8rem; }
}

@media (max-width: 500px) {
  .overlay h1 { font-size: 1.4rem; }
  .overlay p { font-size: 0.85rem; }
  .form-panel { padding: 20px 15px; }
  .form-panel input { padding: 12px 15px; font-size: 0.9rem; }
  .btn { padding: 12px; font-size: 0.9rem; }
}