
/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  justify-content: center;
  align-items: center; /* Center everything horizontally */
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* Header and Footer Text Styles */
h3 {
  text-align: center;
  color: #ffffff; /* White text color for visibility on the gradient background */
  margin: 20px 0; /* Add spacing above and below */
  width: 100%; /* Full width */
  max-width: 400px; /* Match the form width */
}

p {
  text-align: center;
  color: #ffffff; /* White text color for visibility on the gradient background */
  margin: 20px 0; /* Add spacing above and below */
  width: 100%; /* Full width */
  max-width: 400px; /* Match the form width */
}

/* Overlay Container */
.overlay-container {
  background: white; /* White background for the form */
  padding: 20px;
  border-radius: 10px;
  width: 90%; /* Responsive width for small screens */
  max-width: 400px; /* Fixed width for larger screens */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow */
  margin: 0 auto; /* Center horizontally */
}

/* Responsive Styles */


/* Form Container */
.overlay-content {
  background: white; /* White background for the form */
  padding: 20px;
  border-radius: 10px;
  width: 90%; /* Responsive width for small screens */
  max-width: 350px; /* Smaller fixed width for larger screens */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow */
  position: relative; /* Ensure this is the positioning context for child elements */
  overflow: visible; /* Ensure error popups are visible outside the form */
  margin: 0 auto; /* Center the form horizontally */
}


  .input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 8px; /* Reduced padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .input-group i {
    margin-right: 8px; /* Reduced margin */
    color: #3498db;
  }
  
  input {
    width: 100%;
    padding: 8px; /* Reduced padding */
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 14px; /* Smaller font size for small screens */
    background-color: transparent;
  }
  
  .radio-group {
    margin-bottom: 15px;
    text-align: left;
  }
  
  .radio-group p {
    margin-bottom: 8px; /* Reduced margin */
    font-size: 14px; /* Smaller font size for small screens */
    color: #2c3e50;
  }
  
  .radio-options {
    display: flex;
    gap: 10px; /* Space between radio buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
  }
  
  .radio-options label {
    display: flex;
    align-items: center;
    font-size: 14px; /* Smaller font size for small screens */
    cursor: pointer;
  }
  
  .radio-checkmark {
    display: inline-block;
    width: 14px; /* Smaller checkmark */
    height: 14px; /* Smaller checkmark */
    border: 2px solid #3498db;
    border-radius: 50%;
    margin-right: 6px; /* Reduced margin */
    position: relative;
  }
  
  .radio-options input[type="radio"] {
    display: none;
  }
  
  .radio-options input[type="radio"]:checked + .radio-checkmark::after {
    content: '';
    display: block;
    width: 6px; /* Smaller checkmark */
    height: 6px; /* Smaller checkmark */
    background-color: #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .checkbox-group {
    margin-top: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .checkbox-group input {
    width: auto;
    margin-right: 8px; /* Reduced margin */
  }
  
  .checkbox-group label {
    font-size: 14px; /* Smaller font size for small screens */
    color: #2c3e50;
  }
  
  .captcha-group {
    margin-bottom: 15px;
  }
  
/* CAPTCHA Styles */
.captcha-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  #captcha-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 5px;
    transform: rotate(-5deg); /* Tilt the text */
    color: #333;
    position: relative;
    z-index: 1;
  }
  
  /* Add lines over the CAPTCHA text */
  #captcha-text::before,
  #captcha-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 50%,
      transparent 100%
    );
    z-index: 2;
  }
  
  #captcha-text::after {
    transform: rotate(45deg); /* Diagonal lines */
  }
  
  /* Refresh Button */
  #refresh-captcha {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 18px;
  }
  
  #refresh-captcha:hover {
    color: var(--secondary-color);
  }
  
  button[type="submit"] {
    width: 100%;
    padding: 12px; /* Reduced padding */
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px; /* Smaller font size for small screens */
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  button[type="submit"]:hover {
    background-color: #2980b9;
  }
  
  .popup {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    display: none; /* Hidden by default */
  }
  




/* Input Field Error State */
input.error {
  border: 1px solid #ff4a3d; /* Red border for empty fields */
}
  
  .success-popup {
    background-color: #e8f5e9; /* Light green background */
    color: #2e7d32; /* Dark green text */
  }
  
  /* Password Strength Indicator */
  .password-strength {
    margin-bottom: 10px; /* Reduced margin */
    text-align: left;
  }
  
  .password-strength span {
    font-size: 12px; /* Smaller font size for small screens */
  }
  
  .strength-bar {
    width: 100%;
    height: 4px; /* Reduced height */
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 4px; /* Reduced margin */
    overflow: hidden;
  }
  
  .strength-bar .bar {
    height: 100%;
    width: 0;
    background-color: #e74c3c; /* Default: red */
    transition: width 0.3s ease, background-color 0.3s ease;
  }
  
  /* Responsive Styles */
  @media (max-width: 480px) {
    /* Small Mobile Devices (e.g., iPhone SE, 360x740) */
    .form-container {
      padding: 20px;
    }
  
  
    .input-group {
      margin-bottom: 15px;
    }
  
    input {
      padding: 10px;
      font-size: 14px;
    }

    input.error {
      border: 1px solid #ff4a3d; /* Red border for empty fields */
    }
  
    .radio-group p {
      font-size: 16px; /* Slightly smaller for small screens */
    }
  
    .radio-options label {
      font-size: 14px; /* Slightly smaller for small screens */
    }
  
    .captcha-box {
      padding: 8px;
    }
  
    #captcha-text {
      font-size: 18px;
    }
  }
  
  @media (min-width: 481px) and (max-width: 767px) {
    /* Medium Mobile Devices (e.g., iPhone XR) */
    .form-container {
      max-width: 450px;
    }
  
  
    .input-group {
      margin-bottom: 18px;
    }
  
    input {
      padding: 12px;
      font-size: 16px;
    }
  
    .radio-group p {
      font-size: 18px;
    }
  
    .radio-options label {
      font-size: 16px;
    }
  }
  
  @media (min-width: 768px) and (max-width: 1180px) {
    /* Tablets (e.g., iPad Air, 820x1180) */
    .form-container {
      max-width: 1400px;
      padding: 40px;
    }
  
  
    .input-group {
      margin-bottom: 25px;
    }
  
    input {
      padding: 16px;
      font-size: 20px;
    }
  
    .radio-group p {
      font-size: 22px;
    }
  
    .radio-options label {
      font-size: 20px;
    }
  
    .checkbox-group label {
      font-size: 20px;
    }
  
    .checkbox-group input {
      width: 20px;
      height: 20px;
    }
  
    button {
      padding: 16px;
      font-size: 20px;
    }
  
    .register-link, .forgot-password {
      font-size: 18px;
    }
  }
  
  @media (min-width: 1025px) and (max-width: 1366px) {
    /* Laptops (e.g., 1024x1366) */
    .form-container {
      max-width: 1500px;
      padding: 50px;
    }
  
    h2 {
      font-size: 36px;
    }
  
    .input-group {
      margin-bottom: 30px;
    }
  
    input {
      padding: 18px;
      font-size: 22px;
    }
  
    .radio-group p {
      font-size: 24px;
    }
  
    .radio-options label {
      font-size: 22px;
    }
  
    .checkbox-group label {
      font-size: 22px;
    }
  
    .checkbox-group input {
      width: 22px;
      height: 22px;
    }
  
    button {
      padding: 18px;
      font-size: 22px;
    }
  
    .register-link, .forgot-password {
      font-size: 20px;
    }
  }
  
  @media (min-width: 1367px) {
    /* Larger Desktops and Monitors */
    .form-container {
      max-width: 1600px;
      padding: 50px;
    }
  
    h2 {
      font-size: 32px;
    }
  
    .input-group {
      margin-bottom: 30px;
    }
  
    input {
      padding: 18px;
      font-size: 22px;
    }
  
    .radio-group p {
      font-size: 24px;
    }
  
    .radio-options label {
      font-size: 22px;
    }
  
    .checkbox-group label {
      font-size: 22px;
    }
  
    .checkbox-group input {
      width: 22px;
      height: 22px;
    }
  }

  /* Responsive Styles */
@media (max-width: 480px) {
  /* Small Mobile Devices (e.g., iPhone SE, 360x740) */
  .overlay-content {
    width: 90%; /* Full width on small screens */
    padding: 15px; /* Reduced padding */
  }

  .error-popup {
    font-size: 10px; /* Smaller font size for small screens */
    padding: 6px 10px; /* Reduced padding */
  }
}

/* Responsive Styles */
@media (max-width: 480px) {
  /* Small Mobile Devices (e.g., iPhone SE, 360x740) */
  .overlay-content {
    width: 90%; /* Full width on small screens */
    padding: 15px; /* Reduced padding */
  }

  .error-popup {
    font-size: 10px; /* Smaller font size for small screens */
    padding: 6px 10px; /* Reduced padding */
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  /* Medium Mobile Devices (e.g., iPhone XR) */
  .overlay-content {
    width: 80%; /* Slightly wider on medium screens */
    padding: 20px; /* Standard padding */
  }

  .error-popup {
    font-size: 12px; /* Standard font size */
    padding: 8px 12px; /* Standard padding */
  }
}

@media (min-width: 768px) {
  /* Tablets and Larger Screens */
  .overlay-content {
    width: 400px; /* Fixed width for larger screens */
    padding: 20px; /* Standard padding */
  }

  .error-popup {
    font-size: 14px; /* Larger font size for readability */
    padding: 10px 15px; /* Larger padding */
  }
}

@media (min-width: 481px) and (max-width: 767px) {
h3 {
  font-size: 20px; /* Slightly larger font size for medium screens */
  margin: 18px 0; /* Standard margin */
}}


@media (min-width: 768px) {
h3 {
  font-size: 22px; /* Larger font size for readability on larger screens */
  margin: 20px 0; /* Standard margin */
}
}