body {
  background: linear-gradient(to bottom right, #e3fce2, #fffecf);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}


.login-card {
  background: #ffffff;
  padding: 4rem 2rem 2rem; /* top padding adjusted for logo */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: slideFadeIn 0.6s ease;
  position: relative;
  margin-top: 40px;
}

.login-card img.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: transparent; 
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}


.login-card.shake {
  animation: shake 0.4s;
}


h4 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #2e2e2e;
}

.form-control {
  border-radius: 12px;
}

.btn-green {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
}

.btn-green:hover {
  background-color: #43A047;
}

.error-box {
  background-color: #ffe1e1;
  border: 1px solid #ff7b7b;
  color: #c0392b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

/* Animation */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
  100% { transform: translateX(0); }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .login-card img.logo {
    max-width: 48px;
  }
}
