.page-login {
  color: #ffffff; /* Body background is dark, so default text color is light */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: url('[GALLERY:hero_login:1920x1080:online_betting,login,homepage,secure]') no-repeat center center/cover;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
  text-align: center;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast on dark hero */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  color: #ffffff;
  text-align: left;
}

.page-login__main-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Login font color for main title */
  line-height: 1.2;
  text-align: center;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-align: center;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #666666;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #ffffff;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #FFFF00; /* Login font color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #017439; /* Brand green on hover */
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: #a00606;
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #ffffff;
}

.page-login__features-section {
  padding: 60px 0;
  background-color: #017439; /* Brand main color for dark background */
  color: #ffffff;
  text-align: center;
}

.page-login__section-title {
  font-size: 2em;
  margin-bottom: 40px;
  color: #FFFF00; /* Use login font color for section titles */
}

.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px; /* Ensure images are not small icons */
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__app-download-section {
  padding: 80px 0;
  background-color: #ffffff; /* White background for this section */
  color: #333333;
  text-align: center;
}

.page-login__app-download-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  text-align: left;
}

.page-login__app-text {
  flex: 1;
}

.page-login__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__download-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Download button color, matching login button */
  color: #FFFF00; /* Download button font color */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 30px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__download-button:hover {
  background-color: #a00606;
}

.page-login__faq-section {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light grey background for FAQ */
  color: #333333;
  text-align: center;
}

.page-login__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439; /* Brand green for toggle icon */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__app-download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__app-text {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 80vh;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__description {
    font-size: 0.95em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
  }
  .page-login__download-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__app-download-content,
  .page-login__faq-list,
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile responsive for images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__app-image-wrapper,
  .page-login__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Mobile responsive for buttons */
  .page-login__submit-button,
  .page-login__download-button,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}