.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page */
}

.page-login__section-padding {
  padding: 60px 0;
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #2C3E50;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-login__image-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-login__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

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

.page-login__main-title {
  font-size: 3em;
  color: #2C3E50;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-login__login-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-login__login-form {
  margin-bottom: 20px;
}

.page-login__form-group {
  margin-bottom: 15px;
}

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

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

.page-login__form-input:focus {
  border-color: #F39C12;
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

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

.page-login__forgot-password {
  color: #2C3E50;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__login-button {
  background-color: #F39C12;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-login__login-button:hover {
  background-color: #e08e0b;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.page-login__register-prompt p {
  margin-bottom: 15px;
  color: #555555;
}

.page-login__register-button {
  background-color: #2C3E50;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-login__register-button:hover {
  background-color: #1a2a38;
  transform: translateY(-2px);
}

.page-login__hero-image-wrapper {
  flex: 1;
  text-align: center;
}

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

/* Benefits Section */
.page-login__benefits-section {
  background-color: #f8f8f8;
}

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

.page-login__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #2C3E50;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Security Section */
.page-login__dark-bg {
  background-color: #2C3E50;
  color: #ffffff;
}

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

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.page-login__security-title {
  font-size: 1.4em;
  color: #F39C12;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

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

/* Games Section */
.page-login__games-section {
  background-color: #ffffff;
}

.page-login__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-login__game-card {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__game-title {
  font-size: 1.4em;
  color: #2C3E50;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__game-text {
  color: #555555;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-login__game-link-text {
  color: #F39C12;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto; /* Pushes to the bottom */
}

.page-login__arrow {
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.page-login__game-card:hover .page-login__arrow {
  margin-left: 12px;
}

.page-login__games-footer-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #555555;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #f8f8f8;
}

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

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

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

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

.page-login__faq-title {
  font-size: 1.2em;
  color: #2C3E50;
  margin: 0;
  font-weight: bold;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  color: #F39C12;
  font-weight: bold;
  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;
  background-color: #ffffff;
}

.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-bottom: 10px;
}

.page-login__faq-list-item {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-login__faq-list-item li {
  margin-bottom: 5px;
}

.page-login__faq-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  color: #555555;
}

/* CTA Section */
.page-login__cta-section {
  background-color: #2C3E50;
  color: #ffffff;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: #ffffff;
}

.page-login__cta-button {
  background-color: #F39C12;
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  display: inline-block;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background-color: #e08e0b;
  transform: translateY(-3px);
}

.page-login__cta-small-text {
  margin-top: 20px;
  font-size: 0.9em;
  color: #f0f0f0;
}

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

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

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

  .page-login__intro-text {
    font-size: 1.1em;
  }

  .page-login__hero-image-wrapper {
    max-width: 80%;
  }

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

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

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

  .page-login__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }

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

  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__login-container {
    padding: 20px;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__login-button,
  .page-login__register-button {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__forgot-password {
    align-self: flex-start;
  }

  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__security-item,
  .page-login__game-card {
    padding: 20px;
  }

  .page-login__benefit-title,
  .page-login__security-title,
  .page-login__game-title {
    font-size: 1.3em;
  }

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

  .page-login__faq-title {
    font-size: 1.1em;
  }

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

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

  /* Responsive Images, Videos, and Containers */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__login-container,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-login__cta-button {
    width: calc(100% - 30px) !important; /* Adjust for padding in container */
    margin-left: 15px;
    margin-right: 15px;
    padding: 15px 20px !important;
  }

  .page-login__cta-content {
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__cta-button.page-login__btn-primary {
    max-width: 100% !important;
  }
}

/* General button styling for contrast */
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .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; */ /* Handled by container padding */
    /* padding-right: 15px; */
  }
  
  .page-login__form-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-login__form-actions > * {
    width: 100%;
    text-align: center;
  }

  .page-login__forgot-password {
    order: 2; /* Move below login button */
    margin-top: 15px;
  }
}

/* Contrast Fixes */
.page-login__dark-bg {
  color: #ffffff; /* Deep background, light text */
}

.page-login__light-bg {
  color: #333333; /* Light background, dark text */
}

/* Ensure all text elements have good contrast */
.page-login p, .page-login li, .page-login label {
  color: #333333;
}

.page-login__dark-bg p, .page-login__dark-bg li, .page-login__dark-bg label {
  color: #f0f0f0;
}

.page-login__btn-primary {
  background: #F39C12;
  color: #ffffff;
}

.page-login__btn-secondary {
  background: #2C3E50;
  color: #ffffff;
}

/* No CSS filters for images */
.page-login img {
  filter: none; /* Explicitly remove any potential filters */
}