.page-login__hero-section {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #017439;
  color: #FFFFFF;
  padding-bottom: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-login__hero-content {
  max-width: 800px;
  margin-top: 30px;
  padding: 0 15px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for login/register title */
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-login__login-form-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  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;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  cursor: pointer;
}

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

.page-login__forgot-password {
  color: #FFFF00; /* Custom color for login/register font */
  text-decoration: none;
}

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

.page-login__btn-submit {
  background-color: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom color for login button font */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  background-color: #a00606;
}

.page-login__no-account {
  margin-top: 20px;
  font-size: 1em;
  color: #FFFFFF;
}

.page-login__register-link {
  color: #FFFF00; /* Custom color for login/register font */
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__dark-bg .page-login__section-title {
  color: #FFFF00; /* Custom color for title on dark background */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-login__benefit-card,
.page-login__troubleshoot-item,
.page-login__tip-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-login__dark-bg .page-login__benefit-card,
.page-login__dark-bg .page-login__troubleshoot-item,
.page-login__dark-bg .page-login__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-login__dark-bg .page-login__benefit-title,
.page-login__dark-bg .page-login__troubleshoot-title,
.page-login__dark-bg .page-login__tip-title {
  color: #FFFF00; /* Custom color for titles on dark background */
}

.page-login__benefit-text,
.page-login__troubleshoot-text,
.page-login__tip-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-login__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808; /* Custom color for step number */
  color: #FFFF00; /* Custom color for step number font */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid #FFFF00;
}

.page-login__step-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for titles on dark background */
}

.page-login__step-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-login__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__cta-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 500;
}

.page-login__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-login__register-cta-section {
  text-align: center;
}

.page-login__btn-register-main {
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register button font */
  padding: 15px 35px;
  border: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register-main:hover {
  background-color: #a00606;
}

.page-login__register-subtext {
  margin-top: 20px;
  font-size: 1em;
}

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

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

.page-login__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-login__game-category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-login__game-category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__category-image {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__category-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #FFFF00; /* Custom color for titles on dark background */
}

.page-login__cta-explore {
  text-align: center;
  margin-top: 50px;
}

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

.page-login__faq-item {
  background-color: #f9f9f9;
  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;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  background-color: #f0f0f0;
  list-style: none; /* For details tag */
  user-select: none;
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #017439;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

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

.page-login__contact-section {
  text-align: center;
}

.page-login__contact-section .page-login__btn-primary,
.page-login__contact-section .page-login__btn-secondary {
  margin-top: 20px;
}

/* General image responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__container {
    padding: 30px 20px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

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

  .page-login__login-form-wrapper {
    padding: 25px;
    max-width: 350px;
  }

  .page-login__btn-submit,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-register-main {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-login__benefits-grid,
  .page-login__troubleshoot-grid,
  .page-login__security-tips,
  .page-login__guide-steps,
  .page-login__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-login__hero-content {
    margin-top: 20px;
    padding: 0 10px;
  }

  .page-login__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
    line-height: 1.1;
  }

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

  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0;
  }

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

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

  .page-login__forgot-password {
    align-self: flex-end;
  }

  .page-login__btn-submit,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-register-main,
  .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;
    margin: 10px 0 !important; /* Override inline margins for full width */
  }

  .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;
    display: flex;
    flex-direction: column;
  }

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

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

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

  .page-login__benefits-grid,
  .page-login__troubleshoot-grid,
  .page-login__security-tips,
  .page-login__guide-steps,
  .page-login__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login__guide-image {
    margin-top: 30px;
  }

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

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

  /* General image responsiveness for content area */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__guide-image,
  .page-login__security-image,
  .page-login__benefit-icon,
  .page-login__category-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}