* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
body {
  background-color: #ffffff;
  width: 100%;
  min-height: 100vh;
}
.logo img {
  max-width: 180px;
  height: auto;
  margin-right: 50px;
  padding-bottom: 10px;
}
nav {
  width: 100%;
  height: 120px;
  position: fixed;
  justify-content: space-between;
  left: 0;
  top: 0;
  right: 0;
  background: white;
  color: #51770b;
  display: flex;
  align-items: center;
  padding: 0 7%;
  z-index: 10;
}
.nav-right {
  display: flex;
  align-items: center;
}
.menu-icon {
  margin-right: 50px;
}

.nav-links a {
  text-decoration: none;
  color: #51770b;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 50px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #b83211;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a:hover {
  color: #b83211;
}
.menu-icon {
  display: none;
}
.login-links span {
  font-size: 1rem;
  font-weight: 600;
}
.login-links {
  display: flex;
  align-items: center;
}
.login-links a {
  text-decoration: none;
  color: #51770b;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 50px;
  position: relative;
}
.login-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #b83211;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.login-links a:hover::after {
  transform: scaleX(1);
}
.login-links a:hover {
  color: #b83211;
}

/*nav ends here*/
.main-heading {
  background: #eff6e2;

  margin-top: 120px;
  height: 104px;
  justify-content: center;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}
.main-heading h1 {
  color: black;
  font-size: 2rem;
  font-weight: 600;
}
.form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}
#login-form {
  border-radius: 5px;
  padding: 4rem 3.5rem;
  box-shadow: 0px 8px 8px 11px rgba(0, 0, 0, 0.1);
  max-width: 530px;
  width: 90%;
  display: flex;
  flex-direction: column;
}
#login-form input {
  padding: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 400;
  background: #eff6e2;
  border: none;
}
#login-form label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
#login-form input:focus,
textarea:focus {
  outline: none;
  border: 2px solid #51770b;
  box-shadow: 0 0 0 3px rgba(113, 170, 115, 0.2);
}
.forgotPass {
  text-align: right;
  margin-bottom: 20px;
}
.forgotPass p {
  font-size: 12px;
  font-weight: 400;
}
.form-btn {
  display: flex;
  align-items: center;
  margin-top: 30px;
  justify-content: center;
  margin-bottom: 40px;
}
.form-btn button {
  border: none;
  cursor: pointer;
  color: white;
  background: #51770b;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  width: 150px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.form-btn button:hover {
  background: #b83211;
}
.register-link {
  display: flex;
  align-items: center;
  justify-content: center;
}
.register-link p {
  font-size: 14px;
  font-weight: 400;
  padding-right: 5px;
}
.register-link a {
  font-size: 14px;
  font-weight: 700;
  color: #b83211;
}
#message {
  margin-bottom: 40px;
  text-align: center;
  color: #b83211;
  font-size: 1rem;
  font-weight: 500;
}
#loader-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;

  align-items: center;
  justify-content: center;
  pointer-events: none; /* Prevent blocking interactions if needed */
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0077cc;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*footer starts here*/
footer {
  background: #51770b;
  height: 290px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  padding: 0 20px;
  margin-bottom: 50px;
}
.media-icons img {
  font-size: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
  padding: 0 20px;
}
.copyright p {
  font-size: 13px;
  font-weight: 400;
  color: white;
}
/*footer ends here*/
@media only screen and (max-width: 1200px) {
  .logo img {
    max-width: 170px;
  }
  nav {
    height: 110px;
  }
  .main-heading {
    margin-top: 110px;
  }
}
@media only screen and (max-width: 1100px) {
  .logo img {
    max-width: 150px;
    margin-right: 30px;
  }
  .nav-links a {
    margin-left: 40px;
  }
  nav {
    padding: 0 7%;
  }
  .login-links a {
    margin-left: 40px;
  }
}
@media only screen and (max-width: 1024px) {
  .menu-icon {
    margin-right: 30px;
    display: block;
    font-size: 22px;
  }
  nav {
    height: 100px;
    padding: 0 7%;
  }
  .nav-links {
    height: 50vh;
    width: 100%;
    background: #eff6e2;
    position: absolute;
    top: 100px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.7s ease-in-out;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    display: block;
    margin: 25px;
    font-size: 0.938rem;
  }
  .login-links a {
    font-size: 0.938rem;
    margin-left: 35px;
  }
  .main-heading {
    margin-top: 100px;
    margin-bottom: 40px;
  }
  .main-heading h1 {
    font-size: 1.75rem;
  }
  .form-container {
    margin-bottom: 80px;
  }

  footer {
    height: 270px;
  }
  .footer-links a {
    font-size: 0.938rem;
  }
}
@media only screen and (max-width: 950px) {
  nav {
    padding: 0 7%;
  }
  .main-heading {
    height: 90px;
  }

  .main-heading h1 {
    font-size: 1.6rem;
  }

  footer {
    height: 250px;
  }
  .footer-links a {
    font-size: 0.875rem;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
  }
}
@media only screen and (max-width: 860px) {
  .main-heading h1 {
    font-size: 1.5rem;
  }
  .main-heading {
    margin-bottom: 40px;
  }

  .footer-links a {
    font-size: 0.875rem;
    padding: 0 15px;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
  }
  .form-container {
    margin-bottom: 70px;
  }
}
@media only screen and (max-width: 768px) {
  .logo img {
    max-width: 130px;
  }
  .main-heading h1 {
    font-size: 1.25rem;
  }
  .main-heading {
    height: 80px;
  }
  .footer-links a {
    font-size: 0.813rem;
    padding: 0 15px;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
  }
}
@media only screen and (max-width: 670px) {
  #login-form {
    max-width: 490px;
    width: 90%;
  }
  footer {
    height: auto;
    padding: 40px;
  }
  .footer-links a {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    margin-bottom: 40px;
  }
  .form-container {
    margin-bottom: 50px;
  }
}
@media only screen and (max-width: 600px) {
  nav {
    height: 85px;
    padding: 0 6%;
  }
  .nav-links {
    height: 40vh;
    top: 85px;
  }
  .menu-icon {
    margin-right: 22px;
    display: block;
    font-size: 20px;
  }
  .nav-links a {
    font-size: 0.875rem;
    margin: 20px;
  }
  .logo img {
    max-width: 130px;
    padding-bottom: 0px;
  }
  .login-links a {
    font-size: 0.875rem;
    margin-left: 30px;
  }
  .login-links span {
    font-size: 0.875rem;
    font-weight: 600;
  }
  .main-heading {
    margin-top: 85px;
  }
  #login-form {
    max-width: 470px;
    width: 90%;
    padding: 4rem 3rem;
  }
  .form-btn button {
    width: 130px;
  }

  .media-icons img {
    height: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
  }
  #message {
    font-size: 0.875rem;
  }
}
@media only screen and (max-width: 500px) {
  .login-links a {
    font-size: 0.875rem;
    margin-left: 20px;
  }
  #login-form {
    padding: 3.5rem 2rem;
  }
  .form-container {
    margin-bottom: 40px;
  }
}
