body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.background-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: zoomAndFade 9s infinite; /* Adjust the animation duration */
  z-index: 1; /* Lower z-index to place background image behind overlay */
}

/*
@keyframes zoomAndFade {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  33% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  66% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}
*/

/* Change background images appropriate animation delay */
.background-image:nth-child(1) {
  background-image: url('img/BangsarSouth.jpg');
  animation-delay: 0s;
}

.uoalogo{
  float: right;
  top: 50px;
  height: 100px;
  width: 50px;
}

.colored-label {
  color: #a4d0e0;
}

.remember-label {
  color: lightblue;
}
.white-label {
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: small;
}

form {
    border: none;
}

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 5px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  text-align: center;
}

button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  
}

button:hover {
  background-color: #03745e;
}

.button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.5s;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
}

img.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

img.forgotPW {
  width: 150px;
  height: 150px;
  border-radius: 10%;
  float: right;
  margin-right: 20px;
}

.container {
    margin: auto;
    padding: 10px;
    width: 50%;
    text-align: center;
    background-color: transparent;
}



span.psw {
  text-align: center;
  padding-top: 16px;
  cursor: pointer;
  
}

/* Change styles for span on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  z-index: 2; /* Place the overlay above the background image */
  display: flex; /* Add this line to make the overlay take up the full height */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}

.overlay h1, .overlay p, .overlay form {
  margin: 3px;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  transform: translate(-50%, -50%);
  z-index: 3; /* Place the content on top of overlay */
  border: 1px solid #ffffffec; /* Add a border with transparent white color */
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black background */
  padding: 20px; /* Add some padding to the content */
  border-radius: 10px; /* Add rounded corners */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Add styles for the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Style for the modal content */
.modal-content {
  background-color: #f4f4f4;
  margin: 15% auto;
  padding: 20px;
  border: none;
  width: 50%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  position: relative;
}

/* Style for the close button */
.close {
  color: #555;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #333;
  text-decoration: none;
}

/* Style for the reset password button */
#resetPasswordBtn {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
}

#resetPasswordBtn:hover {
  background: linear-gradient(to right, blue, purple); 
}

/* Style for the email input */
#emailInput {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}