/* ===============================
   RESET
================================= */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;

  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  background-color: #F2D3B1;

  color: #000000;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(14, 58, 63, 0.8); /* adjust opacity here */
  z-index: -1;
}
/* ===============================
   HERO LOGO (TOP IMAGE)
================================= */

.hero-logo {
  text-align: center;
  padding-top: 0;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===============================
   MAIN CONTAINER
================================= */

.container {
  max-width: 600px;
  margin: 40px auto 80px auto;
  padding: 40px;

  background: linear-gradient(180deg, #F7DBB9 0%, #F2D3B1 100%);

  border: 20px solid #B0764B;
  border-radius: 22px;

  box-shadow:
    0 18px 40px rgba(151, 93, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ===============================
   HEADINGS
================================= */

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
  font-size: 25px; /* was ~20px */
}

.login-subtext {
  text-align: center;
  font-size: 21px; /* was 16px */
  margin: 10px 0 20px 0;
  color: #000000;
}

/* ===============================
   FORM ELEMENTS
================================= */

label {
  display: block;
  margin: 10px 0 6px 0;
  font-size: 19px; /* was 14px */
  color: #000000;
}

input {
  width: 100%;
  padding: 10px;
  margin: 0 0 10px 0;
  font-size: 21px; /* was 16px */

  border-radius: 14px;
  border: 2px solid rgba(176, 118, 75, 0.55);
  background: rgba(247, 219, 185, 0.55);

  box-sizing: border-box;
  color: #000000;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

input:focus {
  border-color: #CB8E61;
  box-shadow:
    0 0 0 4px rgba(203, 142, 97, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

button {
  width: 100%;
  padding: 12px;
  font-size: 21px; /* was 16px */

  background: linear-gradient(180deg, #E5B08A 0%, #CB8E61 45%, #B0764B 100%);
  color: #000000;

  border: 2px solid rgba(151, 93, 46, 0.65);
  border-radius: 16px;

  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  box-shadow:
    0 8px 16px rgba(151, 93, 46, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

button:hover {
  filter: brightness(1.03) saturate(1.05);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Two-column row (State / Zip) */
.row {
  display: flex;
  gap: 12px;
}

.col {
  flex: 1;
}

/* ===============================
   MEMBER BLOCKS
================================= */

.member {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(176, 118, 75, 0.35);
}

/* ===============================
   UTILITY
================================= */

.hidden {
  display: none;
}

#loginError {
  color: #B00020;   /* clean readable red */
  text-align: center;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
}
#updateMessage {
  text-align: center;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
  display: none; /* hidden by default */
}

/* Only show when it actually contains text */
#updateMessage:not(:empty) {
  display: block;
  background: rgba(46, 125, 50, 0.5);
  color: #000000;
  padding: 10px 16px;
  border-radius: 16px;
  max-width: 400px;
  margin: 10px auto;
}

/* ===============================
   LOADING SPINNER
================================= */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(242, 211, 177, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

body.busy .loading-overlay {
  display: flex;
}

.spinner {
  width: 60px;
  height: 60px;

  border: 6px solid rgba(176, 118, 75, 0.25);
  border-top: 6px solid #CB8E61;

  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   MOBILE ADJUSTMENTS
================================= */

@media (max-width: 768px) {
  .hero-logo {
    padding-top: 50px;
  }

  .container {
    margin: 20px 15px 60px 15px;
    padding: 25px;
  }

  body {
    background-attachment: scroll;
  }

  .row {
    flex-direction: column;
    gap: 0;
  }
}

/* ===============================
   DESKTOP IMAGE SIZE CONTROL
================================= */

@media (min-width: 1024px) {
  .hero-logo img {
    max-width: 700px;
  }
}