/* style.css */
body, html {
  height: 100%;
  margin: 0;
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* Ensures background is behind everything else */
}

.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Adjust the size of the title box and text */
.title-container {
  position: absolute;
  top: 10vh; /* Adjust top position */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw; /* Adjust width */
  max-width: 400px; /* Maximum width */
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffc107;
  padding: 1vh; /* Adjust padding */
  border-radius: 10px; /* Rounded corners */
  z-index: 2; /* Above background, below login */
  text-align: center;
}

.title-container h1 {
  font-size: 4vw; /* Adjust font size */
  color: #333;
  font-weight: bold;
  margin: 0; /* Remove default margin */
}

/* Adjust the size and position of the login box */
.login-container {
  position: absolute;
  top: 60vh; /* Adjust top position */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;  /*Adjust width based on viewport width */
  max-width: 400px; /* Maximum width */
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffc107;
  padding: 1vh; /* Adjust padding */
  border-radius: 10px; /* Rounded corners */
  z-index: 3; /* Above title box */
  font-size: 1vw; /* Scales the font size with the width of the viewport */
}


/* Ensure the image fits within the modal and does not overflow */
.modal-body img {
  max-width: 80%; /* Adjust width */
  height: auto; /* Maintain aspect ratio */
}

.form-group label {
  color: #333;
  font-weight: bold;
  font-size: 3vh; /* Adjust font size */
}

.form-control {
  background-color: #ffffffc7;
  border: 1px solid #ffc107;
  color: #555;
  margin-bottom: 2vh; /* Adds space between form elements */
}

.btn-primary {
  padding: 0.5rem 1rem; /* Adjust padding to vertically align with the image */
  background-color: #ffc107;
  border: none;
  margin-top: 2vh; /* Adds space above the button */
}

.btn-primary:hover {
  background-color: #e0a800;
}

/* Style for the modal to make sure it scales with the window size */
/* Ensuring the modal fits the content and is centered */
.modal.show .modal-dialog {
  transform: translate(0, calc(50vh - 50%)); /* Center vertically */
  margin: 0 auto; /* Center horizontally */
}

.modal-content {
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
  border-radius: 10px; /* Rounded corners */
  overflow: hidden; /* Hide overflow to maintain the border radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  text-align: center; /* Center align the content */
  padding: 2vh; /* Responsive vertical padding */
}

/* Adjustments to the modal header */
.modal-header {
  padding: 1vh 1vw; /* Responsive padding */
  border-bottom: 1px solid #ddd; /* Light border for separation */
}

/* Style for the close button to make sure it's visible and clear */
.close {
  font-size: 3vh; /* Responsive font size */
  color: #333; /* Dark color for contrast */
}

/* Style for the modal body */
.modal-body {
  padding: 2vh 1vw; /* Responsive padding */
}

/* Style for the image inside the modal */
.modal-body img {
  max-width: 40%; /* Adjust width to not exceed 40% of the modal */
  height: auto; /* Maintain aspect ratio */
  margin: 0 auto; /* Center the image */
  padding: 2vh 0; /* Responsive padding above and below the image */
}

/* Style for the message text inside the modal */
.modal-body p {
  font-size: 2.5vh; /* Responsive font size */
  color: #333; /* Dark color for readability */
  margin: 0; /* Remove default margins */
}

.login-container .form-group.d-flex {
  display: flex;
  justify-content: space-between; /* Space out the image and button */
  align-items: center; /* Vertically center the contents */
}

.login-container .login-image {
  max-height: 3rem; /* Set a maximum height for the image */
  width: auto; /* Maintain aspect ratio */
  margin-right: 1rem; /* Add some space between the image and the button */
}

/* Adjust the size of the form group to ensure the image scales with it */
.login-container .form-group {
  margin-bottom: 1rem; /* Add some space between form groups */
  position: relative; /* Set position context for absolute positioning */
}

/* Style adjustments for responsiveness */
@media (max-width: 768px) {
  .login-container {
    width: 80vw; /* Increase width on smaller screens */
  }

  .login-container .login-image {
    max-width: 30%; /* Smaller image on smaller screens */
  }

  .login-container .button-group {
    flex-direction: column; /* Stack elements on smaller screens */
  }

  .btn-primary {
    width: 100%; /* Full width button on smaller screens */
  }  
}


