/* style/login.css */
/* Body padding-top is handled by shared.css's body element. No need to duplicate here. */

.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content background is transparent to show body background */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header-offset */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__subtitle {
  font-size: clamp(1em, 1.5vw, 1.3em);
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  justify-content: center;
}

.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.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;
  transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Light text for dark background */
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0; /* Slightly lighter for description */
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

.page-login__dark-bg {
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

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

.page-login__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__feature-icon {
  width: 200px; /* Min display size 200x200px */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color */
}

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
  color: #333333; /* Dark text for light background */
}

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

.page-login__benefit-card {
  background-color: #f8f8f8; /* Light background for card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__benefit-icon {
  width: 200px; /* Min display size 200x200px */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color */
}

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

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px; /* Min display size 200px height */
  object-fit: cover;
}

.page-login__game-title {
  font-size: 1.3em;
  font-weight: 600;
  padding: 15px 15px 5px;
  color: #26A9E0; /* Brand color */
}

.page-login__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__game-text {
  font-size: 0.95em;
  line-height: 1.5;
  padding: 0 15px 15px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-login__promotions-section .page-login__section-title,
.page-login__promotions-section .page-login__section-description {
  color: #333333;
}

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

.page-login__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-login__promo-image {
  width: 100%;
  height: 200px; /* Min display size 200px height */
  object-fit: cover;
}

.page-login__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  padding: 15px 15px 5px;
  color: #26A9E0;
}

.page-login__promo-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  padding: 0 15px 15px;
  color: #555555;
  flex-grow: 1;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.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);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 15px;
  color: #26A9E0; /* Brand color */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "−"; /* Change to minus sign when open, handled by JS for non-details */
}

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

.page-login__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-login__faq-answer a:hover {
  text-decoration: none;
}

/* Register CTA Section */
.page-login__register-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-login__register-cta .page-login__section-title,
.page-login__register-cta .page-login__section-description {
  color: #ffffff;
}

.page-login__register-cta .page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  border-color: #EA7C07;
  color: #ffffff;
  margin-top: 30px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header-offset, small top padding for section */
  }

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

  .page-login__subtitle {
    font-size: 1em;
  }

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

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

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

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

  .page-login__security-section,
  .page-login__benefits-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__register-cta {
    padding: 50px 0;
  }

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

  /* Force all images to be responsive on mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure image containers are also responsive */
  .page-login__hero-image-wrapper,
  .page-login__feature-card,
  .page-login__benefit-card,
  .page-login__game-card,
  .page-login__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Crucial for preventing overflow */
  }

  /* Specific adjustments for feature/benefit icons to maintain minimum size */
  .page-login__feature-icon,
  .page-login__benefit-icon {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-login__game-image,
  .page-login__promo-image {
    height: 200px !important; /* Keep a minimum height for visual impact */
    object-fit: cover !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
}

/* General text contrast for light backgrounds */
.page-login p,
.page-login li,
.page-login a {
  /* Default to light for dark body background, overridden in light sections */
  color: #f0f0f0;
}

.page-login__benefits-section p,
.page-login__benefits-section li,
.page-login__benefits-section a,
.page-login__promotions-section p,
.page-login__promotions-section li,
.page-login__promotions-section a {
  color: #555555; /* Darker text for light sections */
}

.page-login__benefits-section .page-login__section-title,
.page-login__promotions-section .page-login__section-title {
  color: #333333;
}

.page-login__faq-answer a {
  color: #26A9E0;
}