@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 140px; /* space for fixed logo band */
  min-height: 100vh;
}

/* Logo band */
.logo-band {
  width: 100%;
  background: white;
  padding: 12px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.main-logo {
  height: 64px;
}

.subtitle {
  font-size: 1.3rem;
  color: #1e1e1e;
  margin-top: 4px;
  font-weight: 500;
}

/* Login Box */
.login-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  padding: 24px 20px;
  text-align: center;
}

.logo {
  width: 80%;
  max-width: 270px;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.6rem;
  margin: 10px 0;
}

.election-title {
  color: #D81C1B;
  font-weight: bold;
  font-size: 1.6rem;
  margin-bottom: 5px;
}

p {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1.4rem;
}

/* Membership input and select side by side */
.membership-box {
  display: flex;
  flex-wrap: nowrap;
}

.membership-select {
  border-radius: 8px 0 0 8px;
  border-right: none;
  flex: 1;
}

.membership-box input {
  border-radius: 0 8px 8px 0;
  border-left: none;
  flex: 2;
}

.info-text {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 16px;
}

button {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.instructions {
  margin-top: 20px;
  font-size: 1.4rem;
}

.instructions a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.instructions a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .main-logo {
    height: 52px;
  }

  .logo-band {
    padding: 10px 0;
  }

  .login-box {
    padding: 20px 16px;
  }

  .membership-box {
    flex-direction: column;
  }

  .membership-box input,
  .membership-select {
    border-radius: 8px !important;
    margin-top: 8px;
    border: 1px solid #ccc !important;
  }

  .membership-box input {
    border-left: 1px solid #ccc !important;
  }
}
