html, body {
  height: 100%;
  margin: 0;
}

body {
  background-image: url('../images/background.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 100vh; /* Or 100vh for broader browser support */
  display: flex;
  flex-direction: column;
  color: #222;
  font-family: adineuePRO;
}

/* *********************************************************
 * HTML Header (Login Navigation Panel) - Flex Container
 * *********************************************************
 */

.nav-bar {
    display: flex;
    align-items: center;
    background-color: #f47b20;
    padding: 6px 16px;
}

.nav-bar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-bar img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* *********************************************************
 * HTML Main (Login Buttons) - Flex Container
 * *********************************************************
 */

.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 28px;
  gap: 24px;
}

.login-panel {
  background: #f47b20;
  border-radius: 20px;
  padding: 28px 22px;
  height: auto;
  width: 320px;
  max-width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.login-as-label {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 1.25rem;
  padding: 10px 14px;
  border-radius: 10px;
  //background-color: rgba(255, 255, 255, 0.75);
  color: #222;
  font-size: 1.25rem;
  pointer-events: none;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.login-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.06);
  background: #ffffff;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.login-option:hover,
.login-option:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  outline: none;
}

.login-option:active {
  transform: translateY(-1px);
}

.login-option img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.login-option span {
  font-weight: bold;
  font-size: 1rem;
}

.login-option:focus-visible {
  outline: 3px solid rgba(20,115,255,0.18);
  outline-offset: 2px;
}

/* differentiate options by subtle accents */
.login-option[data-role="shopper"] { border-color: rgba(119, 0, 255, 0.45); }
.login-option[data-role="advertiser"] { border-color: rgba(0, 255, 170, 0.45); }
.login-option[data-role="shopper"]:hover { border-color: rgba(119, 0, 255, 1); }
.login-option[data-role="advertiser"]:hover { border-color: rgba(0, 255, 170, 1); }

/* *********************************************************
 * HTML Footer - Flex Container
 * *********************************************************
 */

footer {
  background: #333;
  color: #fff;
  padding: 9px 16px;
  font-family: adineuePRO;
  font-size: 1rem;
  margin-top: auto; /* Keeps the Footer at the bottom of page */
}

.flex-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flex-footer-item a {
  color: #fff;
  margin-left: 10px;
  text-decoration: none;
}

.flex-footer-item a:hover {
  text-decoration: underline;
}

/* *********************************************************
 * Responsive rules
 * *********************************************************
 */

@media (max-width: 900px) {

  .main-container {
    justify-content: center;
  }

  .login-panel {
    width: 90%;
    max-width: 420px;
  }
}

/* *********************************************************
 * On wider screens, show two-column layout for options
 * *********************************************************
 */

@media (min-width: 900px) {
  .login-options {
    flex-direction: column;
  }
}