* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1%;
}
/* Background wrapper */
.background-wrapper {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 aligns content to the left */
  background-image: url('../images/desktop-bg-2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px;
  box-sizing: border-box;
}

.background-wrapper2 {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 aligns content to the left */
  background-image: url('../images/desktop-bg-2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px;
  box-sizing: border-box;
}

.background-wrapper2 .card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffffd9;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}



.login-box h2,
.login-box .election-title,
.login-box p {
  text-align: center;
}

.instructions {
  text-align: center;
}


.top-button { 
       padding: 6px 15px 6px 15px;
    border-radius: 23px;
    background-color: #0056b3;
    cursor: pointer;
    font-size: 12px;
    color: #ffffff;
    border: 1px solid #c5c5c5;
}
 

/* Login box */
.login-container {
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85); /* slightly transparent white */
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  margin-right: auto; /* 👈 ensures it sticks to the left in flex */
}

.login-box {
  text-align: left;
}

.logo {
  max-width: 200px;
  display: block;
  margin: 0 auto 16px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.election-title {
  font-weight: ;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

input, select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
      color: #7e7e7e;
}

.membership-box {
  display: flex;
}

.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: 0.9rem;
  color: #777;
  margin-bottom: 16px;
}

.buttonmain {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.buttonmain:hover {
  background-color: #0056b3;
}

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

.instructions a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.instructions a:hover {
  text-decoration: underline;
}
.top-center-logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.top-center-logo img {
  height: 60px;
	margin-left: 30px;
}

.ourballot-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #007bff;
  margin-top: 6px;
}

/* Branding in top right */
.branding {
  position: absolute;
  top: 20px;
  right: 30px;
  text-align: right;
}

.ourballot-logo {
  height: 48px;
  margin-bottom: 6px;
}

.tagline {
  font-weight: 500;
  color: #1a237e;
  font-size: 1rem;
}

@media (min-width: 1440px) {
  .login-container {
    max-width: 520px;
    padding: 40px 32px;
  }

  .logo {
    max-width: 240px;
  }

  h2, .election-title {
    font-size: 1.75rem;
  }

  input, select, button {
    font-size: 1.1rem;
  }

  .top-center-logo img {
    height: 70px;
  }
}

@media (min-width: 1920px) {
  .login-container {
    max-width: 580px;
    padding: 48px 40px;
  }

  .logo {
    max-width: 270px;
  }

  h2, .election-title {
    font-size: 2rem;
  }

  .top-center-logo img {
    height: 80px;
  }

  button {
    font-size: 1.25rem;
  }
}

@media (min-width: 2560px) {
  .login-container {
    max-width: 650px;
    padding: 60px 48px;
  }

  .logo {
    max-width: 300px;
  }

  h2, .election-title {
    font-size: 2.2rem;
  }

  input, select, button {
    font-size: 1.3rem;
  }

  .top-center-logo img {
    height: 90px;
  }

  .info-text,
  .instructions {
    font-size: 1.1rem;
  }
}




@media (max-width: 1200px) {
  .background-wrapper {
    padding-top: 100px; /* Push the whole layout down to make space for the logo */
  }
}

@media (max-width: 768px) {
    .top-center-logo img {
  height: 60px;
	margin-left: 0px;
}
    
    
  .background-wrapper {
    flex-direction: column;
    align-items: center; /* 👈 center-align for mobile */
    justify-content: center;
    padding: 20px;
	   background-image: url('../images/mobile-bg.png'); /* Replace with your actual mobile image path */
    background-size: cover;
    background-position: center;
  }
  
  
  .background-wrapper2 {
    flex-direction: column;
    align-items: center; /* 👈 center-align for mobile */
    justify-content: center;
    padding: 20px;
	   background-image: url('../images/mobile-bg.png'); /* Replace with your actual mobile image path */
 
    background-size: contain;
        background-position: top;
        height: auto;
        background-color: #e4e3de;
        background-attachment: fixed;

  }

 .background-wrapper2 .card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffffd9;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}


  .login-container {
    margin: 0 auto; /* Center it */
    max-width: 90%;
  }
}


.button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    justify-content: space-between;
}



  .membership-box {
     overflow-x: auto;

  }

	.membership-box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* Prevent wrapping */
  width: 100%;
  gap: 0;
}

.membership-select {
  flex: 0 0 40%; /* Do not grow, fixed 40% width */
  min-width: 40%;
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.membership-box input,select {
  flex: 1; /* Take remaining space */
  min-width: 60%;
  border-radius: 8px;
  /*border-left: none;*/
}
	
	
  .membership-select,
  .membership-box input {
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
    margin: 8px 0;
  }

  .top-center-logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

  .top-center-logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}




@media (max-width: 768px) {
 .background-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
  }
  
   .background-wrapper2 {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
  }
 .login-container {
    order: 2;
    margin-top: 10px;
  }
 .logo {
    max-width: 160px;
    margin-bottom: 12px;
  }

 
  .membership-select,
  .membership-box input {
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
    margin: 8px 0;
  }

 
  .top-center-logo {
    position: static;
    margin-top: 10px;
    margin-bottom: 20px;
    transform: none;
    text-align: center;
    display: block;
  }

}


