body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Ensures the footer is part of the layout */
    justify-content: space-between; /* Pushes footer to the bottom */
    background-color: #000; /* fallback */
    color: black;
    background-image: url("/static/images/loginpage.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', sans-serif;
}


.container {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    max-width: 400px;
    text-align: center; /* Center text inside the form */
    margin: auto; /* Centers the container vertically */
}

.site-footer {
    position: relative; /* Change from absolute to relative */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: auto; /* Pushes the footer to the bottom of the page */
}
  
  input, button {
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
  }
  
  button {
    background: #15a155;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }
  
  button:hover {
    background: #12b369;
  }

  .bubble-button {
    display: inline-block;
    padding: 6px 16px;
    margin-left: 10px;
    background-color: #12b369;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .bubble-button:hover {
    background-color: #15a155;
    transform: scale(1.05);
  }

  .toggle-text {
    text-align: center;
    margin-top: 20px;
  }

  input[type="text"], input[type="password"] {
    background-color: rgb(58, 48, 48);
    color: rgb(255, 255, 255);
  
  }
  input {
    background-color: rgb(58, 48, 48);
    color: rgb(254, 254, 254);
  }

  body.dark-mode {
    background-color: #121212;
    color: white;
  }

body.dark-mode input {
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #555;
}

.form-input {
  display: block;
  margin-bottom: 10px; /* Adds space between inputs */
  padding: 10px;
  width: 100%;         /* Optional: makes inputs stretch full container width */
  box-sizing: border-box; /* Ensures padding doesn't break layout */
}

/* Overlay covers entire page */
#click-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999; /* above all regular content */
  cursor: crosshair;
}


.placed-button {
  position: absolute;
  padding: 10px 16px;
  background-color: #f01919;
  color: white;
  border: none;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 1000;
}
.Dashboard {
  display: inline-block;
  padding: 10px 16px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
}


.site-footer a {
  color: #007BFF;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        width: 90%;
    }
    input, button {
        font-size: 0.9em;
    }
}
.password-container {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .password-container input {
    padding-right: 40px; /* Space for the toggle button */
  }
  
  .toggle-password {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Ensure it appears above the input field */
  }
  
  .toggle-password img {
    width: 20px;
    height: 20px;
    opacity: 1; /* Ensure the icon is fully visible */
  }