/* style/login.css */

/* --- Base Styles --- */
.page-login {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Custom gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-login__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Custom secondary text color */
}

/* --- Buttons --- */
.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F; /* Custom border color */
}

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

.page-login__btn-text {
  background-color: transparent;
  color: #57E38D; /* Custom glow color for text buttons */
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  text-decoration: underline;
}

.page-login__btn-text:hover {
  color: #F2C14E;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Adjust as needed */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  text-align: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  min-height: 600px; /* Ensure image covers hero section height */
}

.page-login__hero-content {
  position: relative; /* Ensure content is above image */
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 15px;
  margin-top: 80px; /* Push content down to avoid overlapping image too much, and for visual separation */
  margin-bottom: 80px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 800;
  color: #F2C14E; /* Custom gold for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: clamp(1em, 1.8vw, 1.3em);
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Intro Section --- */
.page-login__intro-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green custom color */
  color: #F2FFF6;
  text-align: center;
}

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

.page-login__feature-item {
  background-color: #11271B; /* Card B G custom color */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E; /* Custom border color */
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold for feature titles */
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- Guide Section --- */
.page-login__guide-section {
  padding: 80px 0;
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6;
}

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

.page-login__step-item {
  background-color: #11271B; /* Card B G custom color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E; /* Custom border color */
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #2AD16F; /* Primary green for step numbers */
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold for step titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__troubleshooting {
  margin-top: 60px;
  padding: 40px;
  background-color: #0A4B2C; /* Deep Green custom color */
  border-radius: 15px;
  text-align: center;
  border: 1px solid #2E7A4E;
}

.page-login__troubleshooting-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold for troubleshooting title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__illustration {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* --- Security Section --- */
.page-login__security-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green custom color */
  color: #F2FFF6;
}

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

.page-login__security-list li {
  background-color: #11271B; /* Card B G custom color */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E;
}

.page-login__security-list-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold for security titles */
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- Games Section --- */
.page-login__games-section {
  padding: 80px 0;
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6;
}

.page-login__game-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

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

.page-login__game-card {
  background-color: #11271B; /* Card B G custom color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__game-card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__game-card-title a {
  color: #F2C14E; /* Gold for game card titles */
  text-decoration: none;
}

.page-login__game-card-title a:hover {
  text-decoration: underline;
  color: #57E38D;
}

/* --- Promotions Section --- */
.page-login__promotions-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green custom color */
  color: #F2FFF6;
}

.page-login__promotions-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

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

.page-login__promo-card {
  background-color: #11271B; /* Card B G custom color */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E;
}

.page-login__promo-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold for promo titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6;
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card B G custom color */
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #2E7A4E;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color for questions */
  cursor: pointer;
  background-color: #11271B;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #1e3a2a; /* Slightly darker hover */
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #F2C14E; /* Gold for FAQ question text */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
}

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

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color for answers */
  background-color: #0A4B2C; /* Deep Green custom color for answer background */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

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

/* --- Conclusion Section --- */
.page-login__conclusion-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green custom color */
  color: #F2FFF6;
  text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }
  
  .page-login__hero-section {
    min-height: 500px;
  }

  .page-login__hero-image {
    min-height: 500px;
  }

  .page-login__hero-content {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 25px 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }

  .page-login__subtitle {
    font-size: clamp(0.9em, 2.5vw, 1.1em) !important;
  }

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

  .page-login__btn,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__intro-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__conclusion-section {
    padding: 50px 0;
  }

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

  .page-login__text-block {
    font-size: 1em;
  }

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__security-list,
  .page-login__game-categories,
  .page-login__promo-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers wrap images/buttons properly */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__cta-buttons,
  .page-login__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-login__troubleshooting {
    padding: 25px;
  }

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

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

/* Specific color contrast fixes for dark background sections */
.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__feature-title,
.page-login__dark-section .page-login__security-list-title,
.page-login__dark-section .page-login__promo-title {
  color: #F2C14E; /* Gold for titles on dark backgrounds */
}

.page-login__dark-section p,
.page-login__dark-section li {
  color: #A7D9B8; /* Secondary text color on dark backgrounds */
}

.page-login__dark-section .page-login__text-block {
  color: #A7D9B8;
}

/* Divider color */
.page-login__divider {
  border-top: 1px solid #1E3A2A; /* Custom Divider color */
  margin: 40px auto;
  max-width: 800px;
}