<html><head>
<meta name="viewport" content="width=device-width, initial-scale=1">


<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200;0,300;0,400;0,600;1,200&amp;family=Poppins:wght@300&amp;display=swap" rel="stylesheet">


<style>
body {font-family: 'Mulish', sans-serif;
}

/* Full-width input fields */
input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Set a style for all buttons */
button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

button:hover {
  opacity: 0.8;
}

/* Extra styles for the cancel button */
.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

/* Center the image and position the close button */
.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
  position: relative;
}

img.avatar {
  width: 40%;
  border-radius: 50%;
}

.container {
  padding: 16px;
}

span.psw {
  float: right;
  padding-top: 16px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 59%; /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.close {
  position: absolute;
  right: 25px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

/* Add Zoom Animation */
/*.animate {*/
/*  -webkit-animation: animatezoom 0.6s;*/
/*  animation: animatezoom 0.6s*/
/*}*/

/*@-webkit-keyframes animatezoom {*/
/*  from {-webkit-transform: scale(0)} */
/*  to {-webkit-transform: scale(1)}*/
/*}*/
  
/*@keyframes animatezoom {*/
/*  from {transform: scale(0)} */
/*  to {transform: scale(1)}*/
/*}*/

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
  }
  .cancelbtn {
     width: 100%;
  }
}
</style>
</head>
<body style="
    background-image: url('https://re.hrdandrecruitments.com/vs/home.jpg');
    /* width: 21vw; */
    height: -9%;
    background-repeat: no-repeat;
" wfd-invisible="true">



<img src="https://re.hrdandrecruitments.com/vs/home.jpg" style="
    width: 100%;
    height: 100vh;
">

<div class="" style="display: block;position: absolute;left: 28%;top: 50%;transform: translate(-50%, -50%);">
  
  <form class="modal-content animate" id="loginForm" onsubmit="return validateForm()" action="login.php" method="post" style="
   border-radius: 3px;
">
    

    <center><h1>Login</h1></center>
<div class="container">
      <label for="uname"><b>Username</b></label>
      <input type="text" placeholder="Enter Username" name="username" autocomplete="off" id="username">

      <label for="psw"><b>Password</b></label>
      <input type="password" name="password" autocomplete="off" id="password" placeholder="Password">
        
      <button type="submit" style="
    background: #2500ff;
">Login</button>
      
    </div>

    <div class="container" style="background-color:#f1f1f1">
      
      
    </div>
  </form>
</div>








  <script wfd-invisible="true"> 
function validateForm() {
    var username = document.getElementById("username").value;
    var password = document.getElementById("password").value;

    if (username === "") {
        alert("User Name Field is Empty");
        document.getElementById("username").style.borderColor = "red";
        return false;
    } else {
        document.getElementById("username").style.borderColor = "green";
    }

    if (password === "") {
        alert("Password Field is Empty");
        document.getElementById("password").style.borderColor = "red";
        return false;
    } else {
        document.getElementById("password").style.borderColor = "green";
    }

    // If all validations pass, you can proceed with form submission
    // For example, if you're using AJAX to submit the form data
    // Here you can add your AJAX submission logic

    return true; // Return true to allow form submission
}

    

    // Display login status alerts
    window.onload = function() {
      const urlParams = new URLSearchParams(window.location.search);
      const loginStatus = urlParams.get('login');

      if (loginStatus === 'success') {
        alert("Login Successful!");
      } else if (loginStatus === 'error') {
        alert("Invalid username or password. Please try again.");
      }
    };
  </script></body></html>