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

body {
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login form style */
form.login-form {
  width: 400px;
  height: 680px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(8,7,16,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s ease-out forwards;
}

/* Animation: Fade in and slide up */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  margin-top: 18px;
  font-weight: 500;
  font-size: 14px;
  color: #080710;
}

input {
  width: 100%;
  height: 45px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 5px;
  padding: 0 10px;
  margin-top: 5px;
  font-size: 14px;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

input:focus,
input:hover {
  background-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 8px rgba(0, 146, 69, 0.3);
}

button {
  margin-top: 25px;
  width: 100%;
  background-color: #009245;
  color: #ffffff;
  padding: 12px 0;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #00b64f;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logo {
  text-align: center;
  margin-bottom: 15px;
}

.logo img {
  width: 350px;
  transition: transform 0.4s ease;
}

.logo img:hover {
  animation: bounce 1s;
  transform: scale(1.05);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-8px); }
}

.single-icon {
  margin-top: 30px;
  text-align: center;
}

.single-icon img {
  width: 65%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.single-icon img:hover {
  transform: scale(1.05);
}

.footer-text {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}

.footer-text a {
  color: #007bff;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

.input-error {
  border: 1px solid red;
  background-color: #ffe5e5;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.4s;
}

/* Responsive */
@media (max-width: 480px) {
  form.login-form {
    width: 90%;
    padding: 25px;
    height: auto;
  }

  .logo img {
    width: 200px;
  }

  .single-icon img {
    width: 80%;
  }

  input {
    height: 44px;
    font-size: 14px;
  }

  button {
    padding: 12px 0;
    font-size: 15px;
  }

  .footer-text {
    font-size: 12.5px;
  }
}
