@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* header popup panel styles */
.popup-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #5a653b;
  height: 70px;
  padding: 15px 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: none;
  display: block;
  z-index: 10000;
  
}

.popup-panel.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popup-panel{
  transition: top 0.3s ease-out; /* smooth slide */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.popup-panel.hide {
  top: -100px; /* move it above the viewport */
}

.popup-panel {
  transition: top 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.popup-panel:not(.show) {
  opacity: 0;
  pointer-events: none; /* so it’s not clickable when hidden */
}



/* Flex layout for menu */
.menu {
  display: flex;
  justify-content: center;

  
}
.account-icon {
  width: 30px; /* try increasing if it's too small */
  height: 30px;
  vertical-align: middle;
  cursor: pointer;
  margin-top: -5px;
  position: absolute;
  left: 700px;  /* moves it to the right edge */
}


/* Menu item styling */
.menu-item {
  position: relative;
  padding: -4px -5px;       /* smaller padding reduces spacing */
  border-radius: 5px;
  color: #fafafa;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  white-space: nowrap;
  transition: background-color 0.2s ease;
  font-family: "Trirong", serif;
  text-decoration: none;
  display: inline-block;
  font-size: large;
}
.menu-item:last-child {
  margin-right: 0;
}


/* Center-growing underline effect */
.menu-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.menu-item:hover::after {
  width: calc(100% - 40px);
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  font-family: "Trirong", serif;
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 600px;

  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 150px;
  z-index: 10000;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #5a653b;
  color: white;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Flex container for logo + menu */
.menu-wrapper {
  display: flex;
  align-items: center; /* vertical alignment */
  justify-content: center; /* center everything horizontally */
  gap: 10px; /* space between logo and menu */
  margin-left: -750px;
  margin-top: -15px;
}

/* Logo styling */
.logo-container .logo {
  height: 100px; /* adjust logo size */
  margin-left: 0px;
  
}

/* Menu styling */
.menu {
  display: flex;
  gap: 50px; /* space between menu items */
}
.logo{
  margin-right: 20px;
}

/* Remove margin-left hack */
.menu {
  margin-left: 0;
}


/* Responsive design */
@media (max-width: 768px) {
  .menu {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .menu-item {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-nav {
    gap: 20px;
  }
}


html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        font-family: 'Times New Roman', Times, serif, sans-serif;
        overflow: auto;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

     
  .form-logo {
    display: block;
    margin: auto;
    width: 180px; /* Slightly larger logo */
    height: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    
}


    /* Heading removed per request */
        h4{
            text-align: center;
            color: #333;
        }
    .login-form {
      position: fixed;
      top: calc(50% + 55px); /* adjusted up by 5px to reduce top margin */
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: #f9f9f9;
      padding: 36px 48px;
      border-radius: 18px;
      box-shadow: 0 10px 40px rgba(20,40,10,0.12);
      width: 520px;
      max-width: calc(100% - 40px);
      box-sizing: border-box;
      margin: 0;
      z-index: 900; /* under header (1000) but above background */
}

        .form-group {
            margin-bottom: 20px;
            
        }
    input, select {
      width: 100%;
      padding: 12px 14px;
      border: 2px solid #2f7a3f;
      border-radius: 6px;
      box-sizing: border-box;
      margin: 6px 0 14px 0;
      font-size: 15px;
    }

    /* Ensure login form has a bit more top space on small screens */
    @media (max-height: 700px), (max-width: 640px) {
      .login-form { top: calc(50% + 75px); width: 92%; padding: 28px 20px; }
    }
       
    input:hover, select:hover {
      border-color: #2f7a3f;
    }

 
 
  .checkbox-container {
    display: flex;                   /* align items horizontally */
    align-items: center;             /* vertically center checkbox and label */
    gap: 10px;
    margin: 8px 0 14px 0;
    color: #2f4b1a;
}

    .checkbox-container label { margin: 0; cursor: pointer; }

  /* Keep signup on left and forgot on right on wider screens */
  .Signup{ display:flex; justify-content:space-between; align-items:center; gap:24px; width:100%; padding:0; }

  .signup-link, .forgot-link{
    text-decoration: none; color: #2f4b1a; font-weight:600;
  }
  .signup-link:hover, .forgot-link:hover{ text-decoration:underline; }



    button {
      background-color: #55673d;
      color: white;
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      width: 200px;
      font-size: 16px;
      margin: 28px auto 8px auto;
      display:block;
      text-align: center;
    }
       
        #confirmation {
            margin-top: 20px;
            padding: 10px;
            background-color: #dff0d8;
            border-radius: 4px;
            display: none;
        }
        .loading {
            display: none;
            text-align: center;
            margin-top: 10px;
        }
       
        
        select:invalid {
            color: #999;
        }
    /* Labels are left-aligned inside the card */
    .login-form label{
      margin: 0 0 6px 0;
      color: #556b4a;
      font-family: 'Times New Roman', Times, serif;
      font-size: 14px;
      display:block;
      text-align: left;
    }

        .popup-message {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #5a653b;
            color: white;
            padding: 20px 30px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            text-align: center;
            width: 300px; /* ✅ Add a fixed width */
}

.popup-message button {
    margin-top: 20px;
    background-color: white;
    color: #5a653b;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block; /* Reset if previously set to block */
}

.popup-message button:hover {
    background-color: #ffe6e6;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Policy & Terms button (below Google button) */
.policy-terms{
  display: flex;
  justify-content: center;
  margin: 10px 0 0 0;
}
.policy-link{
  text-decoration: none;
  color: grey;
  font-family: 'Times New Roman', Times, serif;
}
.policy-link:hover{
  text-decoration: underline;
  color: #5a653b;
}



.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #55673d;
}

.gsi-material-button {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

.google-btn-responsive {
  width: 100%;
  margin: 16px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-sizing: border-box;
}

#googleSignInbtn {
  margin-top: 10px !important;
  margin-bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .google-btn-responsive {
    font-size: 0.95rem;
    padding: 8px 0;
  }
}

@media (max-width: 900px) {
  .login-form {
    width: 70%;
    margin: 0;
    padding: 16px;
  }
  .form-logo {
    width: 100px;
  }
}

@media (max-width: 800px) and (min-width: 600px) {
  .login-form {
    width: 75%;
    margin: 0;
    padding: 18px;
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .login-form {
    width: 94%;
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 0 30px #5a653b;
  }
  .form-logo {
    width: 70px;
  }
  h1 {
    margin-left: 0;
    text-align: center;
    font-size: 1.3rem;
  }
  label, .Signup label {
    margin-left: 0;
    font-size: 1rem;
    display: block;
    text-align: left;
  }
  input, select {
    width: 100%;
    margin-left: 0;
    font-size: 1rem;
  }
  .checkbox-container {
    width: 100%;
    margin-left: 0;
    font-size: 0.95rem;
  }
  button {
    width: 100%;
    margin-left: 0;
    font-size: 1rem;
    margin-top: 20px;
  }
  .forgot-link, .signup-link {
    margin-left: 0;
    font-size: 0.95rem;
    display: inline-block;
  }
  .Signup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 1200px) and (min-width: 800px) {
  .login-form {
    width: 60%;
    margin: 0;
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 1024px) {
  .login-form {
    width: 80%;
    margin: 0;
    padding: 16px;
    border-radius: 18px;
  }
}