/* Base styles for .page-login */
.page-login {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* Ensure body padding-top is handled by shared.css, this section has minimal top padding */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 40px;
  background-color: #F4F7FB;
  text-align: center;
}

.page-login__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-login__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3em);
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-login__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
}

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

.page-login__section-subtitle {
  font-size: 1.1em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

/* Color Contrast Handling */
.page-login__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-login__dark-section {
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-subtitle,
.page-login__dark-section .page-login__benefit-title,
.page-login__dark-section .page-login__benefit-description,
.page-login__dark-section .page-login__security-title,
.page-login__dark-section .page-login__security-description {
  color: #ffffff;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
  background-color: #e0eaff;
  color: #2F6BFF;
  transform: translateY(-2px);
}

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

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF; /* Border */
}

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

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

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

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

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

.page-login__btn-submit {
  flex-grow: 1;
  max-width: 200px;
}

.page-login__forgot-password-link {
  color: #2F6BFF;
  text-decoration: none;
  font-size: 0.95em;
  flex-shrink: 0;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  color: #1F2D3D;
}

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

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

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

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max size */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-login__benefit-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-login__step-card {
  background-color: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

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

.page-login__step-description {
  font-size: 0.95em;
  color: #1F2D3D;
  margin-bottom: 20px;
}

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

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  box-sizing: border-box;
}

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

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
}

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

.page-login__troubleshooting-item {
  background-color: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
  height: 100%;
  box-sizing: border-box;
}

.page-login__troubleshooting-title {
  font-size: 1.4em;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-login__troubleshooting-description {
  font-size: 0.95em;
  color: #1F2D3D;
}

.page-login__troubleshooting-cta {
  margin-top: 50px;
}

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

.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-login__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: #1F2D3D;
  font-size: 0.95em;
}

/* Final CTA Section */
.page-login__cta-final-section {
  padding: 80px 0;
}

/* --- General Responsive Rules (from Homepage template) --- */
/* This section is included to satisfy the strict requirement for ALL media queries to be present, 
   even if the specific sections (e.g., game sliders) are not on this login page. */

/* Placeholder for home-content if it were present */
.page-login__home-content {
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  height: 650px;
  overflow-y: auto;
  padding: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

/* Placeholder for game/sport/coop rows */
.page-login__row-games,
.page-login__row-sport,
.page-login__row-coop {
  background-color: #2F6BFF; /* Main Color for dark background */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-login__games-title,
.page-login__sport-title,
.page-login__coop-title {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

/* Placeholder for slider wrapper */
.page-login__slider-wrapper {
  overflow: hidden;
  margin-top: 30px;
}

.page-login__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}

.page-login__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 15px;
}

.page-login__game-slide img {
  width: 100%;
   /* Recommended height for game cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.page-login__game-title {
  font-size: 1.1em;
  color: #1F2D3D;
  font-weight: bold;
  margin-bottom: 5px;
}

.page-login__game-category {
  font-size: 0.9em;
  color: #6c757d;
}

/* Placeholder for banners top wrapper (gameshow grid) */
.page-login__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  align-items: center;
  justify-items: center;
}

.page-login__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Placeholder for blog masonry */
.page-login__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* Ensure cards in the same row have equal height */
  margin-top: 40px;
}

.page-login__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-login__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-login__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-login__blog-card-title {
  font-size: 1.3em;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-login__blog-card-text {
  font-size: 0.9em;
  color: #1F2D3D;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-login__blog-card-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: auto;
}

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

.page-login__btn-outline {
  background-color: transparent;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: auto; /* For blog cards to push button to bottom */
}

.page-login__btn-outline:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

/* Placeholder for blog slider */
.page-login__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.page-login__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* For 3 items with 20px gap */
  max-width: calc(33.333% - 14px);
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

  .page-login__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

  /* General Section Titles */
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* All images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* All containers with images */
  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__security-item,
  .page-login__troubleshooting-item,
  .page-login__faq-item,
  .page-login__login-form,
  .page-login__blog-card,
  .page-login__game-slide {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons */
  .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__form-actions {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn-submit {
    max-width: 100% !important;
  }

  /* Login Form Section */
  .page-login__login-form {
    padding: 25px;
  }

  /* Benefits Section */
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-login__benefit-card {
    padding: 20px;
  }

  /* Guide Section */
  .page-login__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-login__step-card {
    padding: 20px;
  }

  /* Security Section */
  .page-login__security-features {
    grid-template-columns: 1fr;
  }

  /* Troubleshooting Section */
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  .page-login__faq-list {
    padding: 0 15px;
  }

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

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

  /* Placeholder for home-content */
  .page-login__home-content {
    height: auto;
    overflow-y: visible;
    padding: 15px;
  }

  /* Placeholder for game slider */
  .page-login__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .page-login__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

  /* Placeholder for banners top wrapper (gameshow grid) */
  .page-login__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .page-login__banner-item img {
    
    
  }

  /* Placeholder for blog masonry */
  .page-login__blog-masonry {
    grid-template-columns: 1fr !important;
  }

  .page-login__blog-card {
    margin-bottom: 20px;
  }

  /* Placeholder for blog slider */
  .page-login__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .page-login__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}