/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* Side Navigation */
.sidenav {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #28a745;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidenav.open {
  left: 0;
}

.sidenav a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s ease;
}

.sidenav a:hover,
.sidenav a:focus {
  background-color: #218838;
}

/* Sidenav Toggle Button */
.sidenav-toggle {
  position: absolute;
  top: 15px;
  right: -40px; /* Standardized offset */
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 0 5px 5px 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Page Heading */
h1 {
  text-align: center;
  margin-top: 40px;
  font-size: 28px;
}

/* Login Form Container */
.menuFormContainer {
  width: 90%;
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Group */
.menuFormContainer .form-group {
  margin-bottom: 15px;
}

.menuFormContainer label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Password Container */
.password-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.password-container input {
  width: 100%;
  padding-right: 45px;
  box-sizing: border-box;
}

/* Toggle Password Icon */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
}

/* Input Fields */
.menuFormContainer input[type="email"],
.menuFormContainer input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.menuFormContainer input[type="email"]:focus,
.menuFormContainer input[type="password"]:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.menuFormContainer input[type="checkbox"] {
  accent-color: #28a745;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover,
.submit-button:focus {
  background-color: #1e7e34;
}

.submit-button.loading::after {
  content: " ⏳";
}



/* Forgot Password Link */
#forgotPassword {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
}

#forgotPassword:hover,
#forgotPassword:focus {
  text-decoration: underline;
}

/* Toastify Customization */
.toastify {
  font-family: Arial, sans-serif;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .menuFormContainer {
    margin: 60px auto;
    padding: 15px;
  }
  
  h1 {
    font-size: 24px;
    margin-top: 30px;
  }
  
  .sidenav {
    width: 200px;
    left: -200px;
  }
  
  .sidenav.open {
    left: 0;
  }
}

/* Small devices (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .menuFormContainer {
    margin: 70px auto;
    padding: 18px;
  }
  
  h1 {
    font-size: 26px;
  }
  
  .sidenav {
    width: 220px;
    left: -220px;
  }
}

/* Medium devices (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .menuFormContainer {
    margin: 80px auto;
    padding: 20px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .sidenav {
    width: 240px;
    left: -240px;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .menuFormContainer {
    margin: 100px auto;
    padding: 25px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  .sidenav {
    width: 250px;
    left: -250px;
  }
}