/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
  }
  
  p {
    margin: 20px;
    font-size: 16px;
  }
  
  a {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
  }
  
  #popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9; /* Below the popup */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  /* Popup Styles */
  #popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 380px;
    background: white;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  #popup.visible {
    opacity: 1;
    visibility: visible;
  }
  
  #popup-overlay.visible {
    visibility: visible;
    opacity: 1;
  }
  
  /* Popup Content */
  .popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  
  /* Image Div */
  .image-div {
    position: absolute;
    top: -79px;
    left: 169px;
    width: 161.01px;
    height: 150.97px;
    padding: 15.04px 39.8px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .image-div img {
    max-width: 100%;
    max-height: 100%;
  }
  
  /* Form Div */
  .form-div {
    position: absolute;
    top: 33px;
    left: 42px;
    width: 416px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 23px;
    text-align: left;
  }
  
  /* Shared Input Styles */
  form input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 50px;
    margin-bottom: 10px;
  }
  
  #loginsubmitbutton {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
  }
  
  form button:hover {
    background-color: #0056b3;
  }
  
  /* Timer Styles (OTP) */
  #timer {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-top: 10px;
  }
  
  #timer.resend {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
  }
  
  /* Close Button */
  .close-btn-initial {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Media Query for Mobile */
  @media (max-width: 500px) {
    #popup {
      width: 90%; /* Make the popup smaller for mobile */
      height: 365px; /* Allow height to adjust dynamically */
      padding: 10px; /* Add padding for better spacing */
    }
  
    .image-div {
      top: -50px; /* Adjust position of the image for smaller screens */
      left: 50%; /* Center align the image */
      transform: translateX(-50%); /* Correct centering */
      width: 120px; /* Resize the image div */
      height: 120px;
    }
  
    .form-div {
      top: 40px; /* Adjust the top margin below the image */
      left: 0; /* No horizontal offset */
      width: 100%; /* Use full width of the popup */
      padding: 0px 10px 10px 10px; /* Add padding for smaller screen readability */
    }
  
    form input,
    #loginsubmitbutton {
      font-size: 14px; /* Adjust font size for smaller screens */
      padding: 8px; /* Reduce padding for smaller elements */
    }
  
    #loginsubmitbutton {
      margin-top: 10px; /* Reduce margin for buttons */
    }
  
    .close-btn-initial {
      font-size: 18px; /* Slightly smaller close button */
    }
  }
  
  
  #email-otp-verify, #mobile-otp-verify{
    width: 30%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    
  }
  
  #email-otp-div, #mobile-otp-div{
    display: none;
  }