body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url('login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* stack vertically on mobile */
  padding: 20px;
  box-sizing: border-box;
}

.login-box {
  background-color: rgba(189, 57, 52, 0.7);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  width: 100%;
  max-width: 320px; /* responsive limit */
  box-shadow: 0 0 50px rgba(0, 99, 221, 0.5);
}

.login-box input {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  border: none;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 0.7rem;
  margin-top: 1rem;
  background-color: #00c16e;
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-box button:hover {
  background-color: #009c57;
}

footer {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  background: #222;
  color: #ccc;
  font-size: 0.9rem;
  user-select: none;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
  margin-top: auto; /* push to bottom */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  body {
    align-items: flex-start;
  }

  .login-box {
    margin-top: 50px;
  }

  footer {
    position: relative; /* no overlap on small screens */
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 1.5rem;
    max-width: 100%;
  }

  .login-box h2 {
    font-size: 1.2rem;
  }

  .login-box input,
  .login-box button {
    font-size: 0.9rem;
  }
}
