.page-login {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Headroom for fixed header */
  background-color: #000000; /* Ensure main content area respects body background */
}

.page-login__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle overlay to make text pop */
}

.page-login__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

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

.page-login__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.page-login__button--login {
  background-color: #FCBC45;
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-login__button--login:hover {
  background-color: #e0a73c;
  transform: translateY(-2px);
}

.page-login__button--register {
  background-color: #FFFFFF;
  color: #000000; /* Dark text for light button */
  border: 2px solid #FFFFFF;
}

.page-login__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-login__info-section {
  padding: 60px 20px;
  background-color: #000000; /* Ensure background is dark */
}

.page-login__content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__section-title {
  font-size: 2.2em;
  color: #FCBC45;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-login__module {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for modules */
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__module-title {
  font-size: 2em;
  color: #FCBC45;
  margin-bottom: 25px;
  text-align: center;
}

.page-login__module-image {
  width: 100%;
  max-width: 600px; /* Constrain image width */
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure images are not small */
  min-height: 200px; /* Ensure images are not small */
}

.page-login__module-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: justify;
}

.page-login__process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-login__process-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-login__process-step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FCBC45;
  color: #000000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.3em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-login__process-step-title {
  font-size: 1.3em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-login__process-step-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-login__security-list {
  list-style: disc;
  padding-left: 25px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-login__security-item {
  margin-bottom: 10px;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-question::marker {
  display: none; /* Hide default marker for details summary */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2em;
  }

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-login__module {
    padding: 30px 20px;
  }

  .page-login__module-title {
    font-size: 1.6em;
  }

  .page-login__process-list {
    grid-template-columns: 1fr;
  }

  .page-login__security-list {
    font-size: 1em;
    padding-left: 20px;
  }

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

  .page-login__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Mobile content area image constraint */
  .page-login img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not small */
    min-height: 200px; /* Ensure images are not small */
  }
}

@media (max-width: 480px) {
  .page-login__hero-section {
    padding: 60px 15px;
  }

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

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

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

  .page-login__module-title {
    font-size: 1.4em;
  }
}

/* Ensure images within .page-login are never smaller than 200px */
.page-login img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Added for better image display */
}