* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
  }
  
  .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #efeaf4, #2575fc);
    padding: 1rem 2rem;
    color: white;
  }
  
  .logo {
    display: flex;
    align-items: center;
    
  }
  
  .logo img {
    height: auto; /* increase height */
    width: 210px;
  }
  
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .nav a {
    text-decoration: none;
    color: white;
    margin-left: 1rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
  }
  
  .nav a.sign-in-link {
    background-color: #e53935;
  }
  
  .nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Main Content */
  .main-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .image img {
    width: 65%;
    height: auto;
    background-color: transparent !important;
  }


  
  .sign-in-form {
    flex: 1;
    max-width: 600px;
    padding: 2rem;
    border-radius: 10px;
  }
  
  .sign-in-form h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #22058a;
    text-align: center;
    letter-spacing: 4px;
  }
  
  .sign-in-form p {
    margin-bottom: 5rem;
    font-size: 1.3rem;
    color: #555;
    text-align: center;
  }
  
  .sign-in-form form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  
/* Ensure the password container behaves like the regular input fields */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #85abe4;
  border-radius: 30px;
  background-color: #e8f0ff;
  font-size: 1rem;
  width: 100%; /* Make sure the password input takes the full width */
}

/* Make sure the toggle icon is positioned correctly */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 38%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Ensure the regular inputs take full width and are uniform */
.sign-in-form input {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #b1aeae;
  border-radius: 30px;
  background-color: #f7f7f7;
  font-size: 1rem;
  width: 100%; /* Match the password input width */
}

  
  .sign-in-form button {
    margin-top: 1.8rem;
    padding: 0.8rem;
    background-color: #004dd1;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
  }
  
  .sign-in-form button:hover {
    background-color: #1a5cd7;
  }
  
  .register {
    text-align: center;
    margin-top: 3rem;
  }
  
  .register a {
    color: #2575fc;
    text-decoration: none;
  }
  
  .register a:hover {
    text-decoration: underline;
  }
  /* Register1 */

  form label{
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .sel{
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: #e8f0ff;
    font-size: 1rem;
  }

  select {
    width: 100%; /* Responsive width */
    padding: 14px; /* Reduced padding slightly */
    margin-bottom: 1rem;
    border: 1px solid #747272 ;
    border-radius: 30px; /* Slightly smaller border radius */
    background-color: #dedee1;
    font-size: 1.1rem; /* Reduced font size slightly */
    height: 50px; /* Adjusted height */
    appearance: none; /* Removes default browser styles */
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

/* Optional: Improve focus styling */
select:focus {
    outline: none;
    border-color: #dbd7d7;
    background-color: #ded9d9;
}


  /* Animation  */

   img{
    -webkit-transition: all 0.7s ease;
    transition: all 0.7s ease;
  }
   img:hover {
    -webkit-transform:scale(1.2);
    transform:scale(1.2);
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .main-content {
      flex-direction: column;
      align-items: center;
    }
    .sign-in-form {
      width: 100%;
      padding: 1.5rem;
    }
    .name-fields{
        flex-direction: column;
    }
    .register-container{
        width: 90%;
    }
  }

  @media (max-width: 768px) {
    .logo img {
      height: 50px; /* smaller height for mobile */
      width: 180px;  /* maintain aspect ratio */
    }
  
    .logo h1 {
      font-size: 1rem; /* smaller text */
    }
  

  
    .nav {
      margin-top: 1rem;
      margin-left:1rem;
    }
  
    .nav a {
      display: inline-block;
      margin: 0.3rem;
      font-size: 0.9rem;
    }
  }
  


  /* pop model */

  .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    background-color: white;
    padding: 20px;
    width: 90%;  /* Default width for mobile */
    max-width: 400px; /* Maximum width for larger screens */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: red;
    cursor: pointer;
}

/* Ensure modal stays centered in all screen sizes */
@media (min-width: 600px) {
    .modal-content {
        width: 50%;  /* Adjust width for larger screens */
    }
}
