@import url('https://fonts.googleapis.com/css2?family=Fira+Sans&family=Poppins:wght@100;200;300;400;500;600;700&family=Catamaran&display=swap');

html {
    height: 100%;
    margin: 0;
    font-family: Poppins, sans-serif;
    justify-content: center;
    align-items: center;
}

body {
    height: 100%;
    margin: 0;
    font-family: Poppins, sans-serif;
    justify-content: center;
    align-items: center;
    background-image: url('../images/bg-blue.jpg');
    background-repeat: no-repeat;
  background-size: cover;
  position: relative;
    flex-direction: column;
    box-sizing: border-box;
    color: white;
}

* {
    box-sizing: border-box; /* Ensures padding and border are included in width for all elements */
}

.container {
    text-align: center;
    padding: 12px;
    width: 70%;
    max-width: 400px;
    margin: 0 auto;
    background-color: transparent; /* Make the container background transparent */
    border: none; /* Remove the border */
}

input[type="password"],
input[type="submit"] {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: block;
    font-family: Poppins, sans-serif;  /* Ensure both input and button use the same font */
    font-size: 16px; /* Set font size to match */
}

input[type="password"] {
    margin-top: 10px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-weight: 700;
    border: none; /* Override the shared border */
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

#bg-rectangles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: black;
  pointer-events: none;
}

p {
    color: red;
    margin-top: 10px;
}

.header {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* Media Query for Desktop */
@media (min-width: 768px) {
    .container {
        width: 70%; /* Apply 80% width only to container on desktop */
    }
}

/* Media Query for Mobile (screens smaller than 768px) */
@media (max-width: 400px) {
    .container {
        width: 90%; /* Increase container width on mobile */
    }
}

/* Captcha Modal */
.modal {
    display: <?= ($captcha_required && !$captcha_passed) ? 'block' : 'none' ?>;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; /* Enable Flexbox for center alignment */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    padding: 20px;
    width: 300px;
    text-align: center;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Prevent scrolling on the main screen when modal is open */
body.modal-open {
    overflow: hidden; /* Prevent scroll */
}