@media (min-width: 690px) {
  /* Reset and global styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
  }

  body {
    background-color: #0c1844;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures the body covers the full height of the viewport */
    margin: 0;
  }

  /* Logo styling */
  .logo {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 40px;
  }

  /* Container to center the form box */
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  /* Register form box */
  .register-box {
    background-color: transparent;
    border: 1px solid white;
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 420px; /* Makes sure it's responsive on smaller screens */
  }

  /* Headings */
  h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
  }

  h6 {
    color: white;
    font-size: 16px;
    font-weight: 400;
  }

  /* Form container */
  .form {
    display: flex;
    flex-direction: column;
  }

  /* Input group styling */
  .input-group {
    margin: 10px 0;
    position: relative;
  }

  .input-group-one {
    display: flex;
    gap: 5px;
  }

  input {
    width: 100%;
    padding: 10px;
    color: black;
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
  }

  input:focus {
    border-color: #c80036; /* Highlight the input field when focused */
    outline: none; /* Remove default outline */
  }

  /* Toggle password visibility icon */
  .toggle-visibility {
    position: absolute;
    right: 10px;
    top: 30px;
    cursor: pointer;
    font-size: 14px;
  }

  .btn-container {
    display: flex;
    justify-content: center;
  }

  /* Register button */
  button.register-btn {
    background-color: #c80036;
    color: white;
    padding: 10px;
    width: 50%;
    margin-top: 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  button.register-btn:hover {
    background-color: #b7152d; /* Slightly darker on hover */
  }

  /* Paragraph for additional links/info */
  p {
    text-align: center;
    color: white;
    margin-top: 10px;
  }

  /* Anchor link styling */
  a {
    color: #c80036;
    text-decoration: none;
    font-weight: bold; /* Ensures the "Log in here" link has a consistent weight */
    transition: color 0.3s ease;
  }

  a:hover {
    color: #b7152d; /* Slightly darker on hover */
    text-decoration: underline;
  }

  /* Media Query for mobile responsiveness */
  @media (max-width: 600px) {
    .register-box {
      padding: 20px; /* Reduce padding for smaller screens */
      border-radius: 20px; /* Adjust border radius */
    }

    input {
      font-size: 14px; /* Adjust font size for input fields */
      padding: 8px; /* Slightly smaller padding for mobile */
    }

    button.register-btn {
      font-size: 16px; /* Slightly smaller button font on mobile */
    }
  }

  .statusEmail {
    text-align: left;
    font-size: 12px;
    margin: 0;
    padding: 2px;
    color: #c80036;
  }

  .statusPassword {
    text-align: left;
    font-size: 12px;
    margin: -3px 0;
    padding: 0 1px;
  }

  .statusPassword1 {
    text-align: left;
    font-size: 12px;
    margin-top: 3px;
    padding: 0 1px;
  }

  .valid {
    color: rgb(114, 194, 114);
  }

  .invalid {
    color: white; /* Red color for invalid messages */
  }

  #errorMessage {
    text-align: center;
    color: #c80036;
    margin-top: 20px;
    margin-bottom: -10px;
    font-size: 14px;
  }
}

@media (max-width: 689px) and (min-width: 0px) {
    /* Reset and global styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Outfit", sans-serif;
    }
  
    body {
      background-color: #0c1844;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh; /* Ensures the body covers the full height of the viewport */
      margin: 0;
    }
  
    /* Logo styling */
    .logo {
      text-align: center;
      margin-top: -15px;
      margin-bottom: 40px;
    }
  
    /* Container to center the form box */
    .container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
    }
  
    /* Register form box */
    .register-box {
      background-color: transparent;
      border: 1px solid white;
      padding: 40px;
      border-radius: 30px;
      width: 100%;
      max-width: 350px; /* Makes sure it's responsive on smaller screens */
    }
  
    /* Headings */
    h2 {
      color: white;
      margin-bottom: 30px;
      font-size: 24px;
      font-weight: bold;
      text-align: center;
    }
  
    h6 {
      color: white;
      font-size: 16px;
      font-weight: 400;
    }
  
    /* Form container */
    .form {
      display: flex;
      flex-direction: column;
    }
  
    /* Input group styling */
    .input-group {
      margin: 10px 0;
      position: relative;
    }
  
    .input-group-one {
      display: flex;
      gap: 5px;
    }
  
    input {
      width: 100%;
      padding: 10px;
      color: black;
      background-color: white;
      border: 1px solid white;
      border-radius: 5px;
      font-size: 16px;
      transition: border-color 0.3s ease;
    }
  
    input:focus {
      border-color: #c80036; /* Highlight the input field when focused */
      outline: none; /* Remove default outline */
    }
  
    /* Toggle password visibility icon */
    .toggle-visibility {
      position: absolute;
      right: 10px;
      top: 30px;
      cursor: pointer;
      font-size: 14px;
    }
  
    .btn-container {
      display: flex;
      justify-content: center;
    }
  
    /* Register button */
    button.register-btn {
      background-color: #c80036;
      color: white;
      padding: 10px;
      width: 50%;
      margin-top: 30px;
      border: none;
      border-radius: 5px;
      font-size: 18px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
  
    button.register-btn:hover {
      background-color: #b7152d; /* Slightly darker on hover */
    }
  
    /* Paragraph for additional links/info */
    p {
      text-align: center;
      color: white;
      margin-top: 10px;
    }
  
    /* Anchor link styling */
    a {
      color: #c80036;
      text-decoration: none;
      font-weight: bold; /* Ensures the "Log in here" link has a consistent weight */
      transition: color 0.3s ease;
    }
  
    a:hover {
      color: #b7152d; /* Slightly darker on hover */
      text-decoration: underline;
    }
  
    /* Media Query for mobile responsiveness */
    @media (max-width: 600px) {
      .register-box {
        padding: 20px; /* Reduce padding for smaller screens */
        border-radius: 20px; /* Adjust border radius */
      }
  
      input {
        font-size: 14px; /* Adjust font size for input fields */
        padding: 8px; /* Slightly smaller padding for mobile */
      }
  
      button.register-btn {
        font-size: 16px; /* Slightly smaller button font on mobile */
      }
    }
  
    .statusEmail {
      text-align: left;
      font-size: 12px;
      margin: 0;
      padding: 2px;
      color: #c80036;
    }
  
    .statusPassword {
      text-align: left;
      font-size: 12px;
      margin: -3px 0;
      padding: 0 1px;
    }
  
    .statusPassword1 {
      text-align: left;
      font-size: 12px;
      margin-top: 3px;
      padding: 0 1px;
    }
  
    .valid {
      color: rgb(114, 194, 114);
    }
  
    .invalid {
      color: white; /* Red color for invalid messages */
    }
  
    #errorMessage {
      text-align: center;
      color: #c80036;
      margin-top: 20px;
      margin-bottom: -10px;
      font-size: 14px;
    }
  }
  