
html, body {
  height: 100vh;
  width:100vw;
  padding:0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow: hidden;

}

/* Fallback background on the body: ensures the image displays even if #background
   isn't sized or if the #background element is not present/above other layers. */
body {
  /* path is relative to this CSS file (css/), so images/ not css/images/ */
  background-image: url('images/col-draguignan-2015-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  padding: 24px;
  box-sizing: border-box;
  /* Background image provided by user (local copy to avoid hotlink 403) */
  background-image: url('images/col-draguignan-2015-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* subtle dark overlay to keep UI readable */
  z-index: 0;
  /* create a stacking context so the pseudo-element is placed relative to this container */
  isolation: isolate;
}

/* Buttons: share width equally and look like big call-to-action tiles */
#background > div, #background > a {
  flex: 1 1 0; /* share available width equally */
  max-width: 540px; /* optional cap */
  margin: 0 12px;
  text-align: center;
  padding: 28px 18px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(16, 79, 85, 0.88);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative; /* ensure these sit above the overlay */
  z-index: 2;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Focus styles for keyboard users */
#background > a:focus-visible {
  outline: 3px solid rgba(16,79,85,0.95);
  box-shadow: 0 8px 30px rgba(16,79,85,0.12);
  transform: translateY(-4px) scale(1.005);
}

/* white veil overlay to make buttons stand out */
#background::before {
  content: '';
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(255,255,255,0.55); /* adjust opacity to taste */
  z-index: 1; /* sits above background image (z-index 0) and below buttons (z-index 2) */
  pointer-events: none; /* let clicks pass through to buttons */
  border-radius: 0;
}

#background > div:hover, #background > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Responsive: stack vertically on small screens */
@media (max-width: 640px) {
  #background {
    flex-direction: column;
    gap: 16px;
    justify-content: center;
  }
  #background > div, #background > a {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/* Login Box Styles */
.login-container {
  position: relative;
  z-index: 2;
  width: 320px;
  max-width: 90%;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.login-container h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
  text-align: center;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 18px;
  align-items: center;
}

.login-form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #000;
  font-size: 0.85rem;
  width: 80%;
  text-align: left;
}

.login-form-group input {
  width: 80%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  color: #000;
}

.login-form-group input:focus {
  outline: none;
  border-color: #104f55;
}

.login-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

.login-btn {
  width: 80%;
  padding: 10px 20px;
  background: #104f55;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
}

.login-btn:hover {
  background: #0d3f44;
}

.login-status {
  margin-top: 16px;
  padding: 8px;
  color: #b91c1c;
  background: #fee;
  border-radius: 4px;
  font-size: 0.8rem;
  text-align: center;
  display: none;
}

.login-status.visible {
  display: block;
}