.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections */
.page-login__hero-section,
.page-login__benefits-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__responsible-gambling-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

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

/* Header offset for fixed header */
.page-login__hero-section {
  padding-top: calc(80px + var(--header-offset, 120px)); /* Apply header offset to the first section */
}

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

.page-login__description,
.page-login__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Card */
.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  max-width: 450px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #ffffff;
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #f0f0f0;
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #666666;
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  color: #ffffff;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #017439;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.page-login__forgot-password-link:hover {
  color: #f0f0f0;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-login:hover {
  background-color: #a30606;
}

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

.page-login__register-link {
  color: #FFFF00; /* Login font color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #f0f0f0;
}

.page-login__hero-image {
  width: 1200px;
  height: 675px;
  max-width: 80%;
  margin: 40px auto 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* General Section Titles & Intros */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-login__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-login__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__benefit-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

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

.page-login__benefit-item p {
  color: #555555;
}

/* Security Section */
.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__security-text p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-login__security-image {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-login__ordered-list li {
  margin-bottom: 10px;
}

.page-login__inline-link {
  color: #FFFF00; /* Consistent link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__inline-link:hover {
  color: #f0f0f0;
}

/* Troubleshooting Section */
.page-login__troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__trouble-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-login__trouble-item:hover {
  transform: translateY(-5px);
}

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

.page-login__trouble-item p {
  color: #555555;
}

.page-login__troubleshooting-image {
  width: 800px;
  height: 600px;
  max-width: 80%;
  margin: 40px auto 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

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

.page-login__faq-title {
  margin: 0;
  font-size: 1.2em;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  color: #333333;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-login__faq-answer p {
  margin-bottom: 0;
  color: #333333;
}

/* CTA Section */
.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-login__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-login__cta-image {
  width: 1000px;
  height: 563px;
  max-width: 90%;
  margin: 50px auto 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Image specific styles - ensure no filters */
.page-login img {
  filter: none; /* Absolutely no filters to change image color */
}

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

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

  .page-login__hero-image,
  .page-login__security-image,
  .page-login__troubleshooting-image,
  .page-login__cta-image {
    max-width: 90%;
  }

  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-image {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Force header offset in mobile, as per common fragment */
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__description,
  .page-login__section-intro {
    font-size: 1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
    margin: 30px auto;
  }

  .page-login__card-title {
    font-size: 1.8em;
  }

  .page-login__btn-login,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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 {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-login__sub-title {
    font-size: 1.5em;
  }

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

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__responsible-gambling-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 0;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

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

  .page-login__card-title {
    font-size: 1.5em;
  }
}