.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000, so text should be light */
  background-color: #000; /* Ensure main content area matches body background */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  background-color: #000;
  color: #ffffff;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
}

.page-login__hero-content {
  flex: 1;
  max-width: 600px;
  margin-right: 40px;
  text-align: left;
}

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

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

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

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

.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: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

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

.page-login__forgot-password {
  color: #FFFF00;
  text-decoration: none;
}

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

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

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

.page-login__no-account {
  margin-top: 20px;
  text-align: center;
  color: #ffffff;
}

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

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

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

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-login__light-bg {
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for contrast */
  padding: 80px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__benefit-title,
.page-login__light-bg .page-login__benefit-text,
.page-login__light-bg .page-login__reset-steps li,
.page-login__light-bg .page-login__security-tip,
.page-login__light-bg .page-login__footer-link {
  color: #333333;
}

.page-login__dark-bg {
  background-color: #000; /* Dark background */
  color: #ffffff; /* Light text for contrast */
  padding: 80px 0;
}

/* 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: rgba(0, 0, 0, 0.05);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-login__benefit-item .page-login__benefit-text {
  font-size: 0.95em;
  color: #555555;
}

.page-login__section-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 60px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Guide Section */
.page-login__guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  flex: 1 1 calc(33% - 20px);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Troubleshoot Section */
.page-login__reset-steps {
  list-style-type: decimal;
  max-width: 700px;
  margin: 40px auto;
  padding-left: 25px;
  text-align: left;
}

.page-login__reset-steps li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

.page-login__security-tip {
  font-style: italic;
  text-align: center;
  max-width: 700px;
  margin: 30px auto;
  color: #333333;
}

.page-login__btn-support {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-support:hover {
  background-color: #005f2c;
}

/* Register CTA Section */
.page-login__register-cta-section {
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.page-login__register-content {
  flex: 1;
  padding-right: 40px;
  text-align: left;
}

.page-login__register-benefits-list {
  list-style-type: disc;
  margin: 30px 0 40px 20px;
  color: #f0f0f0;
}

.page-login__register-benefits-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-login__btn-register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__register-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-login__feature-item {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-login__feature-text {
  font-size: 0.95em;
  color: #555555;
}

.page-login__security-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95em;
  color: #333333;
}

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

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

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
}

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-login__game-title {
  font-size: 1.3em;
  margin: 15px 10px 10px 10px;
}

.page-login__game-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-login__game-title a:hover {
  text-decoration: underline;
}

.page-login__game-text {
  font-size: 0.9em;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
}

.page-login__explore-more {
  text-align: center;
  margin-top: 50px;
  font-size: 1.2em;
  color: #ffffff;
}

.page-login__keyword {
  color: #FFFF00;
  font-weight: bold;
}

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

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

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

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

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

.page-login__faq-question h3 {
  margin: 0;
  color: #333333;
  font-size: 1.1em;
}

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

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

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

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

.page-login__faq-answer p {
  margin: 0 0 15px 0;
  color: #555555;
}

.page-login__faq-answer a {
  color: #017439;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* Contact CTA Section */
.page-login__contact-cta {
  padding: 80px 0;
  text-align: center;
}

.page-login__btn-contact {
  background-color: #017439;
  color: #ffffff;
  padding: 14px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  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-contact:hover {
  background-color: #005f2c;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
  }

  .page-login__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

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

  .page-login__hero-description {
    font-size: 1em;
  }

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

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

  .page-login__hero-image-container {
    width: 100%;
  }
  
  .page-login__hero-image,
  .page-login__section-image,
  .page-login__register-image,
  .page-login__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshoot-section,
  .page-login__register-cta-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__contact-cta {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__guide-steps {
    flex-direction: column;
  }

  .page-login__step-item {
    flex: none;
    width: 100%;
  }

  .page-login__register-cta-section {
    flex-direction: column;
  }

  .page-login__register-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-login__register-image-container {
    width: 100%;
  }

  .page-login__btn-login,
  .page-login__btn-register,
  .page-login__btn-support,
  .page-login__btn-contact {
    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__login-form-wrapper,
  .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: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .page-login__game-categories {
    grid-template-columns: 1fr;
  }

  .page-login__faq-question,
  .page-login__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__reset-steps {
    padding-left: 20px;
  }

  .page-login__reset-steps li {
    font-size: 1em;
  }
}