/* Body: full viewport center */
body {
  font-family: 'Poppins', sans-serif;
  background: url('../images/hero-bg-pattern.svg') no-repeat center center;
  background-size: cover;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}


.lottie-wrapper {
  width: 200px;        /* desired visible width */
  height: 35px;       /* desired visible height */
  overflow: hidden;    /* crop anything outside */
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;  /* optional: slightly rounded corners */
}

#lottie-cat {
  width: 220px;               /* actual animation size */
  height: 150px;
  transform: translate(0px, -40px);  /* shift visible area as needed */
}


@media (max-width: 480px) {
  .lottie-wrapper {
    width: 120px;
    height: 120px;
  }

  #lottie-cat {
    width: 180px;
    height: 180px;
    transform: translate(-15px, -15px);
  }
}


.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Horizontal centering */
  justify-content: center;  /* Vertical centering */
  width: 100%;
  padding: 40px 20px;
  height: 100%;
}

/* Login Box */
.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.login-box p {
    padding-top: 2%;
    padding-bottom: 2%;
}

.logo_login {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Logo */
.logo_login img {
    width: 80px;
    margin-bottom: 10px;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.input-group i {
    margin-right: 10px;
    color: #555;
}

.input-group input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 16px;
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5%;
    margin-top: 2%;
}

.options a {
    color: #01295d;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #01295d;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #014a8a;
}

/* Register Link */
.register-text {
    margin-top: 15px;
    font-size: 14px;
}

.register-text a {
    color: #01295d;
    font-weight: bold;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to Lottie and Login Box */
.lottie-wrapper,
.login-box {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0; /* required to animate from invisible */
}

/* Lottie cat: show after */
.lottie-wrapper {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

#lottie-cat {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

#lottie-cat.lottie-loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .login-container {
    padding: 30px 15px;
  }

  .login-box {
    padding: 25px 20px;
    max-width: 90%;
  }

  .lottie-wrapper {
    width: 160px;
    height: 80px;
  }

  #lottie-cat {
    width: 200px;
    height: 120px;
    transform: translate(0, -30px);
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 20px 10px;
  }

  .login-box {
    padding: 20px;
  }

  .input-group {
    flex-direction: row;
    padding: 8px;
  }

  .input-group i {
    font-size: 14px;
  }

  .input-group input {
    font-size: 14px;
  }

  .login-btn {
    padding: 10px;
    font-size: 15px;
  }

  .register-text,
  .options {
    font-size: 13px;
  }

  .lottie-wrapper {
    width: 140px;
    height: 70px;
    margin-bottom: 16px;
  }

  #lottie-cat {
    width: 180px;
    height: 110px;
    transform: translate(0, -25px);
  }
}
