/* style/login.css */

/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
  box-sizing: border-box;
}

.page-login__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-login__hero-content {
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on font-weight and line-height */
}

.page-login__subtitle {
  color: #f0f0f0;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* General button styles */
.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  min-width: 180px; /* Ensure a minimum width */
  max-width: 100%; /* Ensure responsiveness */
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* General section styles */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  color: #ffffff; /* Default for dark background sections */
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

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

/* Section specific colors for contrast */
.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__card-title {
  color: #000000; /* Black for titles on light background */
}

.page-login__light-bg .page-login__section-description,
.page-login__light-bg p {
  color: #333333; /* Dark gray for text on light background */
}

.page-login__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text on dark background */
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__card-title {
  color: #ffffff; /* White for titles on dark background */
}

.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg p {
  color: #f0f0f0; /* Light gray for text on dark background */
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
}

.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-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 0;
}

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

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__forgot-password {
  margin-top: 50px;
  text-align: center;
}

.page-login__forgot-password-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__text-link {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-login__text-link:hover {
  color: #1a7bb7;
}

/* Games Section */
.page-login__games-section {
  padding: 60px 0;
}

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

.page-login__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-login__game-card .page-login__card-title a {
  color: #000000;
  text-decoration: none;
}

.page-login__game-card .page-login__card-title a:hover {
  color: #26A9E0;
  text-decoration: underline;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 60px 0;
}

.page-login__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 40px;
  max-width: 700px;
  text-align: left;
}

.page-login__promo-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  display: flex;
  align-items: center;
}

.page-login__promo-list li::before {
  content: "✅";
  margin-right: 10px;
  font-size: 1.2em;
}

/* Support Section */
.page-login__support-section {
  padding: 60px 0;
  text-align: center;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for summary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-login__faq-item details > summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' */
  content: '−'; /* Change to minus sign */
}

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

/* Final CTA Section */
.page-login__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 10px 15px 40px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Clamp for H1 */
    margin-bottom: 15px;
  }

  .page-login__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-login__btn-primary,
.page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-login__benefit-card,
.page-login__step-item,
.page-login__game-card {
    padding: 25px;
  }

  .page-login__benefit-image,
.page-login__game-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__promo-list {
    margin: 20px auto 30px;
    padding: 0 10px;
  }

  .page-login__promo-list li {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  .page-login__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }

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

  /* Video responsiveness (if any, though not explicitly used for video in this HTML, but for safety) */
  .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: 10px !important; /* body already handles --header-offset */
  }
}