@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  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; 
}
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, fadeInGlow 2s ease forwards;
  z-index: 0;
  opacity: 0;
}

@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: 850px;
  min-height: 500px;
  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);
  margin: auto;

  /* ✨ animation added here */
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0; /* ensures it fades in */
}


/* 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; }
}

/* LOGIN 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: 25px;
  color: #D9E9CF;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.text-input {
  position: relative;
  background: rgba(255,255,255,0.08);
  height: 50px;
  display: flex;
  width: 90%;
  align-items: center;
  border-radius: 12px;
  padding: 0 15px;
  margin: 10px 0;
  margin-left: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.text-input:hover {
  border-color: #5E936C;
  box-shadow: 0 0 8px #5E936C;
}

.text-input input {
  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;
}

::placeholder {
  color: #96A78D;
}

.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;
  margin-left:15px;
}

.login-btn:hover {
  background: linear-gradient(90deg, #3E5F44, #5E936C);
  box-shadow: 0 0 15px #5E936C;
  transform: translateY(-2px);
}

a {
  font-size: 13px;
  color: #B6CEB4;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #D9E9CF;
}

a.forgot {
  margin-top: 15px;
}

.create {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 10px;
}

.create a {
  color: #D9E9CF;
  font-weight: 500;
 margin-bottom: 30px;
}

.create i {
  color: #5E936C;
  margin-left: 10px;
  margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .container {
    grid-template-columns: 100%;
    width: 100%;
    height: 100vh; /* full height view */
    border-radius: 0;
  }

  .design {
    display: none;
  }

  .login {
    padding: 40px 25px;
    overflow-y: auto; /* allow internal scroll only if content is tall */
  }

  .login h3.title {
    font-size: 1.5rem;
  }

  .text-input {
    width: 90%;
  }

  .login-btn {
    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;
}