.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  color: #ffffff;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_login:1920x1080:m88,sports,betting,login,secure,dynamic]') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-login__hero-description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #017439;
  text-align: center;
}

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

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

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
}

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

.page-login__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439;
}

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

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  display: block;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login {
  background-color: #C30808; /* Specific login button background */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast */
}

.page-login__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #555555;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

.page-login__section {
  padding: 60px 20px;
  text-align: center;
}

.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: inherit;
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-login__text-link {
  color: inherit;
  text-decoration: underline;
}

.page-login__text-link:hover {
  opacity: 0.8;
}

.page-login__features-grid, .page-login__steps-grid, .page-login__troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item, .page-login__step-item, .page-login__troubleshooting-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.page-login__light-bg .page-login__feature-item,
.page-login__light-bg .page-login__troubleshooting-item {
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-login__feature-image, .page-login__step-image, .page-login__troubleshooting-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-login__feature-title, .page-login__step-title, .page-login__troubleshooting-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: inherit;
}

.page-login__feature-text, .page-login__step-text, .page-login__troubleshooting-text {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

.page-login__cta-support {
  margin-top: 50px;
}

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-login__faq-section {
  padding-bottom: 80px;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-item.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px 20px 20px;
}

.page-login__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__hero-content {
    text-align: center;
  }

  .page-login__form-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
  }

  .page-login__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-login__section {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__features-grid, .page-login__steps-grid, .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item, .page-login__step-item, .page-login__troubleshooting-item {
    padding: 20px;
  }

  .page-login__feature-title, .page-login__step-title, .page-login__troubleshooting-title {
    font-size: 1.4em;
  }

  .page-login__feature-text, .page-login__step-text, .page-login__troubleshooting-text {
    font-size: 0.9em;
  }

  .page-login__faq-list {
    margin-top: 30px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 15px 15px 15px;
  }

  /* Image responsive adjustments */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__feature-item,
  .page-login__step-item,
  .page-login__troubleshooting-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive adjustments */
  .page-login__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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }
}