.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background, so light text */
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

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

.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:bg:1920x1080:abstract_green_pattern,online_betting,tai_789bet_background]') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-login__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-login__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Login font color for main title */
}

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

.page-login__login-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-login__card-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #FFFF00; /* Login font color for card title */
  text-align: center;
}

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

.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: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

.page-login__links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.95em;
}

.page-login__link {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__cta-download {
  margin-top: 40px;
  text-align: center;
}

.page-login__cta-download p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #FFFF00;
  transform: translateY(-2px);
}

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

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

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-login__advantages-section, .page-login__guide-section, .page-login__faq-section, .page-login__security-tips-section, .page-login__explore-section {
  padding: 80px 0;
}

.page-login__advantages-grid, .page-login__security-grid, .page-login__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__advantage-item, .page-login__security-item, .page-login__product-item, .page-login__guide-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__light-bg .page-login__advantage-item, .page-login__light-bg .page-login__product-item {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-login__advantage-item:hover, .page-login__security-item:hover, .page-login__product-item:hover, .page-login__guide-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-login__advantage-icon, .page-login__security-icon, .page-login__product-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__advantage-title, .page-login__security-title, .page-login__product-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight important titles */
}

.page-login__light-bg .page-login__advantage-title, .page-login__light-bg .page-login__product-title {
  color: #017439;
}

.page-login__product-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-login__advantage-text, .page-login__security-text, .page-login__product-text {
  font-size: 1em;
  color: inherit;
}

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

.page-login__guide-item {
  position: relative;
  text-align: left;
  padding-top: 60px;
}

.page-login__step-number {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #FFFF00;
  color: #017439;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-login__cta-bottom p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #ffffff;
}

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

.page-login__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  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 value */
  padding: 20px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content {
    max-width: 100%;
  }

  .page-login__hero-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-title {
    font-size: 2.5em;
  }

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

  .page-login__hero-section, .page-login__advantages-section, .page-login__guide-section, .page-login__faq-section, .page-login__security-tips-section, .page-login__explore-section {
    padding: 60px 0;
  }

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

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

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__advantages-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__security-tips-section,
  .page-login__explore-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset */
  }

  /* Button responsiveness */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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;
  }

  .page-login__login-card {
    padding: 25px;
  }

  .page-login__advantages-grid, .page-login__security-grid, .page-login__product-grid, .page-login__guide-steps {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

  .page-login__login-button, .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}