/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #4caf50, #81c784);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  animation: backgroundFade 10s ease infinite alternate;
}

/* Fade animation for background */
@keyframes backgroundFade {
  0% { background: linear-gradient(135deg, #4caf50, #81c784); }
  50% { background: linear-gradient(135deg, #43a047, #a5d6a7); }
  100% { background: linear-gradient(135deg, #66bb6a, #c8e6c9); }
}

/* Container */
.container {
  width: 350px;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  animation: fadeIn 1s ease forwards;
  position: relative;
}

/* Fade-in animation */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Heading */
h2 {
  margin-bottom: 25px;
  color: #2e7d32;
  font-size: 1.8rem;
  position: relative;
}

h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background: #4caf50;
  display: block;
  margin: 5px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 80px;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76,175,80,0.2);
}

/* Buttons */
button {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #43a047;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Message text */
#msg {
  margin-top: 15px;
  font-size: 14px;
  color: red;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Extra hidden fields to prevent autofill */
input[name="fakeuser"],
input[name="fakepass"] {
  display: none;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  h2 {
    font-size: 1.5rem;
  }

  input, button {
    padding: 10px;
    font-size: 14px;
  }
}
