.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-login__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

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

.page-login__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #017439; /* Brand color for titles */
}

.page-login__dark-bg .page-login__section-title {
  color: #ffffff;
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero_login:1920x1080:login_form,secure_access,online_gaming_interface,green_gold_theme]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: left;
  padding-bottom: 60px; /* Adjust as needed */
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 55%;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Yellow for hero title */
}

.page-login__hero-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 40%;
  display: flex;
  justify-content: flex-end;
}

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

/* Login Card */
.page-login__login-card {
  background-color: #ffffff; /* White background for the card */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 400px;
  margin-top: 30px;
  color: #333333; /* Dark text for light background */
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #017439;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #333333;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkbox-checkmark {
  background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #017439;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

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

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

.page-login__btn-submit {
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login 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;
  width: 100%;
  box-sizing: border-box;
}

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

.page-login__register-text {
  margin-top: 25px;
  color: #333333;
}

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

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

/* Why Login Section */
.page-login__why-login .page-login__section-title,
.page-login__why-login .page-login__section-description {
  color: #333333;
}

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

.page-login__feature-item {
  padding: 30px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: left;
  color: #333333;
}

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

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

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

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

.page-login__guide-tips {
  margin-top: 60px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
}

.page-login__guide-tips-title {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #017439;
}

.page-login__guide-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__guide-tips li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-login__guide-tips li::before {
  content: '✓';
  color: #FFFF00;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Support Section */
.page-login__support-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-login__support-text {
  flex: 1;
  min-width: 300px;
  color: #333333;
}

.page-login__support-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-login__support-text ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-login__support-text li {
  margin-bottom: 8px;
}

.page-login__support-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

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

/* Video Section */
.page-login__video-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-login__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* FAQ Section */
.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-description {
  color: #333333;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

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

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

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

.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: #333333;
}

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

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* CTA Section */
.page-login__cta {
  padding: 100px 0;
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:cta_banner:1200x675:play_now,register_account,get_started]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-login__cta .page-login__section-title {
  color: #ffffff;
  font-size: 3em;
}

.page-login__cta .page-login__section-description {
  color: #f0f0f0;
}

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

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

.page-login__btn-primary {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-login__section {
    padding: 60px 0;
  }

  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-login__hero-content,
  .page-login__hero-image-wrapper {
    max-width: 100%;
    order: 1;
    display: block;
  }

  .page-login__login-card {
    margin-top: 20px;
    max-width: 100%;
    order: 2;
  }

  .page-login__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

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

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

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

  .page-login__features-grid,
  .page-login__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__support-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__support-image-wrapper {
    order: -1; /* Image above text on mobile */
  }

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

  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .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-direction: column;
    gap: 15px;
  }

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

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

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

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

/* Fixed contrast improvements for specific elements */
.page-login__login-card .page-login__form-input {
  color: #333333; /* Ensure dark text on light input background */
  background-color: #f9f9f9;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #017439; /* Brand color, check contrast on white background */
}

.page-login__hero-title {
  color: #FFFF00; /* Yellow on dark background, good contrast */
}

.page-login__step-title {
  color: #FFFF00; /* Yellow on dark background, good contrast */
}

.page-login__btn-submit {
  background-color: #C30808;
  color: #FFFF00; /* Red button with yellow text, good contrast */
}

.page-login__btn-primary {
  background-color: #C30808;
  color: #FFFF00; /* Red button with yellow text, good contrast */
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* White button with green text, good contrast */
}

/* Ensure all paragraph and list text in dark sections is white */
.page-login__dark-bg p,
.page-login__dark-bg li {
  color: #ffffff;
}

.page-login__guide-tips li::before {
  color: #FFFF00;
}

/* Ensure all paragraph and list text in light sections is dark */
.page-login__light-bg p,
.page-login__light-bg li {
  color: #333333;
}