/* General Reset and Base Styles */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: 'liga' 1;
    -moz-font-feature-settings: 'liga' 1;
    -ms-font-feature-settings: 'liga' 1;
    -o-font-feature-settings: 'liga' 1;
    font-feature-settings: 'liga' 1;
    font-variant-ligatures: common-ligatures;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;  
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    text-decoration: none;
    box-shadow: none;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Top Header Section */
.top-header {
  background-color: #2196f3; /* blue background */
  color: white;
  padding: 20px 0;
}

.top-header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo-left img {
  height: 100px;
}

.college-info {
  text-align: center;
}

.college-info h1 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

.college-info p {
  margin: 5px 0;
  font-size: 20px;
  color: #000;
}

/* Main Navigation Menu */
.main-menu {
  background-color: yellow;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  font-weight: bold;
}

.main-menu li {
  position: relative;
  margin: 0 15px;
}

.main-menu a {
  color: black;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

.main-menu a:hover {
  background-color: #f1f1f1;
  border-radius: 5px;
}

/* Dropdown Menu Styles */
.dropdown-menu,
.dropdown-submenu {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 200px;
}

.dropdown-submenu {
  left: 100%;
  top: 0;
}

.dropdown-menu li:hover .dropdown-submenu {
  display: block;
}

/* Main Content Section */
.main-content {
padding: 40px 20px;
background: linear-gradient(to right, #f8f9fa, #e0f7fa);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

/* Main Content Container */
.main-content-container {
width: 100%;
max-width: 800px;
background: #fff;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
border-radius: 12px;
padding: 30px;
}
/* Container for both forms */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Individual form boxes */
.form-box {
    background-color: #f7f7f7;
    padding: 40px 20px;
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    text-align: center; 
    justify-content: center;
    /* Add some spacing around the form */
    padding: 30px;
    /* Add a subtle background color */
    background-color: #ffffff;
    /* Rounded corners */
    border-radius: 10px;
    /* Box shadow for depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add a transition effect for hover */
    /* Transition effect for hover */
    /* Hover effect to scale up the form box */
    /* Scale up the form box on hover */
    transform: scale(1);
    /* Scale down the form box on hover */
    &:hover {
        transform: scale(1.05); /* Slightly enlarge on hover */
    }
    /* Responsive width */
    /* Adjust the width for different screen sizes */
    /* Default width for larger screens */
    /* Minimum and maximum widths for responsiveness */
    min-width: 300px; /* Minimum width for smaller screens */
    max-width: 500px; /* Maximum width for larger screens */
    width: 400px; /* Default width */
    box-sizing: border-box;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Form headings */
.form-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #007bff;
    /* Add a subtle background color */
    background-color: #f0f8ff; /* Light blue background */
    padding: 10px 20px; /* Add some padding around the heading */
    border-radius: 10px; /* Rounded corners for the heading */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: center; /* Center the heading text */
    text-transform: uppercase; /* Make the heading uppercase */
    letter-spacing: 1px; /* Add some letter spacing for better readability */
    margin-bottom: 30px; /* Add more space below the heading */
    font-family: 'Arial', sans-serif; /* Use a clean, sans-serif font */
    font-weight: 600; /* Make the heading slightly bolder */
}

/* Labels */
.form-box label {
display: block;
margin-bottom: 10px;
font-size: 16px;
}

/* Input fields */
.form-box input {
  width: 100%;
  height: 40px;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Submit buttons */
.form-box button {
  width: 100%;
  height: 40px;
  padding: 10px;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-box button:hover {
  background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .form-container {
    flex-direction: column;
    align-items: center;
  }

  .form-box {
    width: 100%;
    max-width: 400px;
  }
}



/* Footer Section */
.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
}

.footer-column h2 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.social-media {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin-top: 15px;
}

.social-media li a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.footer2-bachor {
  background-color: #111;
  padding: 10px;
  text-align: center;
}

.footer2-content {
  color: white;
  margin: 0;
  font-size: 14px;
}
.footer2-content a {
  color: #2196f3;
  text-decoration: none;
}   
.footer2-content a:hover {
  text-decoration: underline;
}   
.footer2-content p {
  margin: 0;
}   

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  .top-header-flex {
    flex-direction: column;
    align-items: center;
  }

  .logo-left img {
    height: 80px;
  }

  .main-menu {
    flex-direction: column;
    padding: 10px;
  }

  .main-menu li {
    margin: 5px 0;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }
}       

/* Main Login Form Styles */
.login-register-container {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 20px;
}

.form-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 45%;
}

.form-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-box label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-box button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form-box button:hover {
    background: #45a049;
}

/* Error Messages */
.error-message {
    color: #ff0000;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.875rem;
    z-index: 2;
}

/* Success Messages */
.success-message {
    color: #008000;
    background: #e6ffe6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-register-container {
        flex-direction: column;
    }
    
    .form-box {
        width: 90%;
        margin: 20px auto;
    }
}       

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    z-index: 3; /* Ensure toggle button is above input */
}

.password-toggle:hover {
    text-decoration: underline;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 0.5rem;
    height: 4px;
    background: #eee;
    position: relative;
    z-index: 2;
}

.password-strength-meter.very-weak { background-color: #ff4444; width: 20%; }
.password-strength-meter.weak { background-color: #ffbb33; width: 40%; }
.password-strength-meter.fair { background-color: #ffeb3b; width: 60%; }
.password-strength-meter.good { background-color: #00C851; width: 80%; }
.password-strength-meter.strong { background-color: #007E33; width: 90%; }
.password-strength-meter.very-strong { background-color: #00695c; width: 100%; }

.password-strength-text {
    font-size: 12px;
    margin: 5px 0;
    color: #666;
}

.password-strength-text.very-weak { color: #ff4444; }
.password-strength-text.weak { color: #ffbb33; }
.password-strength-text.fair { color: #fb8c00; }
.password-strength-text.good { color: #00C851; }
.password-strength-text.strong { color: #007E33; }
.password-strength-text.very-strong { color: #00695c; }

/* Form Input Position Relative for Password Toggle */
.form-box .form-group {
    position: relative;
}

/* Accessibility Focus Styles */
.password-toggle:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .password-toggle {
        padding: 10px;  /* Larger touch target */
    }
    
    .password-strength-text {
        font-size: 14px;  /* Larger text on mobile */
    }
}       

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input {
    width: 100%;
    padding-right: 40px; /* Space for the toggle button */
    position: relative;
    z-index: 2; /* Ensure input is above other elements */
}

/* Style for password field when autofill is active */
input[type="password"]:autofill,
input[type="password"]:-webkit-autofill {
    z-index: 1 !important; /* Keep autofill suggestions below our custom UI */
    -webkit-box-shadow: 0 0 0 30px white inset !important; /* Maintain white background */
}

/* Style for error messages */
.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #dc3545;
    font-size: 0.875rem;
    z-index: 2;
}

/* Remember me checkbox container */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}
  /* Responsive Design */
  /* Container Widths */
  @media (min-width: 576px) { .container { max-width: 540px; } }
   @media (min-width: 768px) { .container { max-width: 720px; } }
   @media (min-width: 992px) { .container { max-width: 960px; } }
   @media (min-width: 1200px) { .container { max-width: 1140px; } }
   @media (min-width: 1400px) { .container { max-width: 1320px; } }

   /* Image Responsiveness */
   img {
     max-width: 100%;
     height: auto;
     display: block;
   }

   /* Table Responsiveness */
   .table-responsive {
     overflow-x: auto;
     overscroll-behavior: auto;
   }

   /* Mobile Navigation */
   @media (max-width: 768px) {
     .nav-toggle {
       display: block;
       position: fixed;
       top: 15px;
       right: 15px;
       z-index: 1000;
     }
     
     .main-menu {
       display: none;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100vh;
       background: rgba(255, 255, 255, 0.95);
       padding: 60px 20px;
     }
     
     .main-menu.active {
       display: flex;
       flex-direction: column;
       align-items: center;
     }
   }

   /* Lazy Loading */
   .lazy-image {
     opacity: 0;
     transition: opacity 0.3s ease-in;
   }

   .lazy-image.loaded {
     opacity: 1;
   }

   /* Performance Optimizations */
   @media (prefers-reduced-motion: reduce) {
     * {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
       scroll-behavior: auto !important;
     }
   }

  /* Accessibility */
   :focus {
     outline: 3px solid #2196f3;
     outline-offset: 2px;
   }

   @media (hover: none) {
     .clickable {
       min-height: 44px;
       min-width: 44px;
     }
   }