/* Modern Login Section Styling */
.login-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .login-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
  }
  
  .login-section p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  .login-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
  }
  
  .login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  #loginForm {
    display: flex;
    flex-direction: column;
  }
  
  #loginForm label {
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
  }
  
  #loginForm input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
  }
  
  #loginForm input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
    background-color: #fff;
  }
  
  .error-message {
    color: #e53935;
    text-align: left;
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    height: 20px;
    transition: all 0.3s ease;
  }
  
  #loadingMessage {
    display: none;
    color: #4CAF50;
    margin: 0.5rem 0;
    font-weight: 500;
  }
  
  .cta-button {
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cta-button:hover {
    background: linear-gradient(90deg, #43A047, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
  }
  
  .cta-button:active {
    transform: translateY(0);
  }
  
  .cta-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
  }
  
  .cta-button:hover::after {
    left: 100%;
  }
  
  .forgotpassword {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }
  
  .forgotpassword:hover {
    color: #2E7D32;
    text-decoration: underline;
  }
  
  .login-container p {
    color: #666;
    margin-top: 1rem;
  }
  
  .login-container p a {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .login-container p a:hover {
    color: #2E7D32;
    text-decoration: underline;
  }
  
  /* Animation for incorrect message */
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
  }
  
  #incorrectMessage {
    animation: shake 0.8s ease;
    padding: 0.5rem;
    background-color: rgba(229, 57, 53, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  /* Loading animation */
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }
  
  #loadingMessage {
    animation: pulse 1.5s infinite;
  }
  
  /* Responsive adjustments */
  @media screen and (max-width: 768px) {
    .login-container {
      padding: 2rem 1.5rem;
    }
    
    .login-section h1 {
      font-size: 2rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .login-container {
      padding: 1.5rem 1rem;
    }
    
    .login-section h1 {
      font-size: 1.8rem;
    }
    
    #loginForm input {
      padding: 0.8rem;
    }
    
    .cta-button {
      padding: 0.8rem;
    }
  }
  
  /* Styling the password input container */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Styling for password input field */
#password {
  padding: 1rem 2.5rem 1rem 1rem; /* Extra padding on right for the icon */
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  width: 100%;
}

/* Focus styling for password input */
#password:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  outline: none;
  background-color: #fff;
}

/* Toggle password visibility button */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 40%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
  z-index: 1; /* Ensure it is above the input field */
}

/* Change color on hover */
.toggle-password:hover {
  color: #333;
}

/* Styling for password visibility icon */
.toggle-password i {
  font-size: 18px;
}

/* Make sure the input and toggle button are aligned properly */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Styling for the error message */
.error-message {
  color: #e53935;
  text-align: left;
  font-size: 0.85rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  height: 20px;
  transition: all 0.3s ease;
}
