.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css, but set here for clarity */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-login__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom color for login/register font */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom color for login/register font */
  border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for login/register font */
  border: 2px solid #FFFF00;
}

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

.page-login__form-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Custom background color */
  color: #333333; /* Dark text for light background */
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-login__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 1em;
  margin-bottom: 8px;
  color: #333333;
  font-weight: bold;
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
  background-color: #ffffff;
}

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

.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 {
  width: 18px;
  height: 18px;
  accent-color: #017439;
}

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

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

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

.page-login__submit-button {
  background-color: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom color for login/register font */
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background-color: #ff3333;
}

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

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

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

.page-login__why-hi88-section,
.page-login__products-section,
.page-login__troubleshoot-section,
.page-login__download-app-section {
  padding: 80px 0;
  background-color: #121212; /* Dark background from body */
  color: #ffffff; /* Light text for dark background */
}

.page-login__guide-section,
.page-login__offers-section,
.page-login__security-section,
.page-login__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-login__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.7;
  color: inherit;
}

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

.page-login__feature-item,
.page-login__product-card,
.page-login__offer-card,
.page-login__troubleshoot-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #f0f0f0;
}

.page-login__guide-section .page-login__feature-item,
.page-login__guide-section .page-login__offer-card {
  background: #f8f8f8; /* Light background for light section */
  color: #333333;
}

.page-login__feature-item:hover,
.page-login__product-card:hover,
.page-login__offer-card:hover,
.page-login__troubleshoot-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__feature-title,
.page-login__product-title,
.page-login__offer-title,
.page-login__troubleshoot-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

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

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

.page-login__feature-description,
.page-login__product-description,
.page-login__offer-description,
.page-login__troubleshoot-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin: 60px auto 0;
  max-width: 900px;
}

.page-login__guide-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 40px;
}

.page-login__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-login__step-content {
  text-align: left;
}

.page-login__step-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #017439;
}

.page-login__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__note-box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 20px;
  margin-top: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #856404;
}

.page-login__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-login__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 60px auto 0;
}

.page-login__security-item {
  background-color: #f8f8f8;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__security-subtitle {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #017439;
}

.page-login__security-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-login__download-app-section .page-login__intro-text {
  color: #f0f0f0;
}

.page-login__app-download-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 60px;
}

.page-login__app-details {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
}

.page-login__app-feature {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-login__app-benefits-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-login__app-qr-code {
  text-align: center;
}

.page-login__qr-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__qr-text {
  margin-top: 15px;
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  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 to show content */
  padding: 15px 25px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__feature-title,
  .page-login__product-title,
  .page-login__offer-title,
  .page-login__troubleshoot-title,
  .page-login__step-title,
  .page-login__security-subtitle,
  .page-login__app-feature {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__form-section,
  .page-login__why-hi88-section,
  .page-login__guide-section,
  .page-login__products-section,
  .page-login__offers-section,
  .page-login__troubleshoot-section,
  .page-login__security-section,
  .page-login__download-app-section,
  .page-login__faq-section {
    padding: 50px 0;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__intro-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-login__features-grid,
  .page-login__product-grid,
  .page-login__offers-grid,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__feature-item,
  .page-login__product-card,
  .page-login__offer-card,
  .page-login__troubleshoot-item {
    padding: 25px;
  }
  .page-login__feature-title,
  .page-login__product-title,
  .page-login__offer-title,
  .page-login__troubleshoot-title,
  .page-login__step-title,
  .page-login__security-subtitle,
  .page-login__app-feature {
    font-size: 1.2em;
  }
  .page-login__feature-description,
  .page-login__product-description,
  .page-login__offer-description,
  .page-login__troubleshoot-description,
  .page-login__step-description,
  .page-login__security-text,
  .page-login__app-benefits-list,
  .page-login__qr-text {
    font-size: 0.9em;
  }
  .page-login__guide-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  .page-login__step-content {
    text-align: center;
  }
  .page-login__security-list {
    margin-top: 40px;
  }
  .page-login__app-download-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__app-details {
    text-align: center;
  }
  .page-login__app-benefits-list {
    margin-left: 0;
    text-align: left;
  }
  .page-login__qr-image {
    width: 200px;
    height: 200px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }
  /* Mobile image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
}