.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is white */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #017439, #005a2e); /* Darker green for hero */
  color: #ffffff;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Use yellow for main title as per custom color, contrast with dark green background is good */
}

.page-login__intro-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-login__login-form-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__login-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__login-form {
  width: 100%;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

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

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

.page-login__forgot-password,
.page-login__register-link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: #005a2e;
  text-decoration: underline;
}

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: #C30808; /* Login button custom color */
  color: #ffffff; /* Adjusted for WCAG AA contrast */
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__login-button:hover {
  background: #a10707;
  transform: translateY(-2px);
}

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

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

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

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

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 17px;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

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

.page-login__dark-bg .page-login__step-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-login__dark-bg .page-login__step-item p {
  color: #e0e0e0;
}

.page-login__benefit-item:hover,
.page-login__step-item:hover,
.page-login__troubleshooting-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon,
.page-login__step-image,
.page-login__troubleshooting-image,
.page-login__game-card-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-login__benefit-title,
.page-login__step-title,
.page-login__troubleshooting-title,
.page-login__game-card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-login__benefit-text,
.page-login__step-text,
.page-login__troubleshooting-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

.page-login__dark-bg .page-login__benefit-title,
.page-login__dark-bg .page-login__step-title,
.page-login__dark-bg .page-login__troubleshooting-title {
  color: #ffffff;
}

.page-login__dark-bg .page-login__benefit-text,
.page-login__dark-bg .page-login__step-text,
.page-login__dark-bg .page-login__troubleshooting-text {
  color: #e0e0e0;
}

.page-login__tips-box {
  background: #e6ffe6; /* Light green for tips */
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
  text-align: left;
  color: #017439;
}

.page-login__tips-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #017439;
}

.page-login__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__tips-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 16px;
  line-height: 1.6;
}

.page-login__tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-login__contact-support-box {
  background: #fff3e0; /* Light orange for contact */
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
  text-align: center;
  color: #333333;
}

.page-login__contact-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #C30808;
}

.page-login__contact-text {
  font-size: 17px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-login__contact-button {
  display: inline-block;
  padding: 14px 30px;
  background: #C30808;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__contact-button:hover {
  background: #a10707;
  transform: translateY(-2px);
}

.page-login__register-cta-section {
  background: #005a2e; /* Darker green */
  padding: 100px 20px;
}

.page-login__register-cta {
  background: #C30808; /* Register button custom color */
  color: #ffffff; /* Adjusted for WCAG AA contrast */
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__register-cta:hover {
  background: #a10707;
  transform: translateY(-3px);
}

.page-login__game-card {
  display: block;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__game-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

/* FAQ container style */
.page-login__faq-section {
  padding-bottom: 100px;
}

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

/* FAQ default state - answer hidden */
.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to contain any content */
  padding: 20px 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left;
}

.page-login__faq-item.active .page-login__faq-answer p {
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

/* Question style */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left;
}

.page-login__faq-item.active .page-login__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #333333;
}

/* Toggle icon */
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #C30808;
  transform: rotate(45deg);
}

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

  .page-login__section-title {
    font-size: 30px;
  }

  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid,
  .page-login__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-login__intro-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__login-form-container {
    padding: 30px 20px;
  }

  .page-login__login-image {
    max-width: 200px;
    margin-bottom: 20px;
  }

  .page-login__form-input {
    padding: 10px 8px;
    font-size: 15px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-login__forgot-password,
  .page-login__register-link {
    margin-bottom: 10px;
  }

  .page-login__login-button {
    padding: 12px;
    font-size: 16px;
  }

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

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

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

  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid,
  .page-login__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-login__benefit-item,
  .page-login__step-item,
  .page-login__troubleshooting-item,
  .page-login__game-card {
    padding: 20px;
  }

  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__troubleshooting-title,
  .page-login__game-card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-login__benefit-text,
  .page-login__step-text,
  .page-login__troubleshooting-text,
  .page-login__game-card-text {
    font-size: 15px;
  }

  .page-login__tips-box,
  .page-login__contact-support-box {
    padding: 25px;
    margin-top: 30px;
  }

  .page-login__tips-title,
  .page-login__contact-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .page-login__contact-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__contact-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-login__register-cta-section {
    padding: 60px 15px;
  }

  .page-login__register-cta {
    padding: 15px 35px;
    font-size: 18px;
  }

  /* FAQ specific mobile styles */
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-login__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-login__faq-answer {
    padding: 0 15px;
  }
  
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }

  /* Global image and button responsive styles for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-container,
  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid,
  .page-login__game-categories,
  .page-login__tips-box,
  .page-login__contact-support-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__login-button,
  .page-login__contact-button,
  .page-login__register-cta {
    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__form-options {
    padding-left: 0;
    padding-right: 0;
  }

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