/* style/login.css */

/* --- General Styles for page-login scope --- */
.page-login {
  background-color: var(--background, #08160F); /* Fallback to deep green if var not set */
  color: var(--text-main, #F2FFF6); /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: clamp(2em, 5vw, 2.8em); /* Responsive font size */
  color: var(--gold, #F2C14E); /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small padding as body handles header offset */
  padding-bottom: 60px;
  min-height: 500px; /* Ensure hero section has some height */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em); /* Responsive font size for H1 */
  color: var(--text-main, #F2FFF6); /* Main text color */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D); /* Glow color */
  border: 2px solid var(--glow, #57E38D);
}

.page-login__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: #08160F; /* Background color */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* --- Why Choose Section --- */
.page-login__section--why-choose {
  background-color: var(--card-bg, #11271B); /* Card Background */
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding-bottom: 60px;
}

.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: var(--deep-green, #0A4B2C); /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  display: block; /* Ensure it's a block element for margin auto */
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E); /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__feature-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text */
}

/* --- How to Login Section --- */
.page-login__section--how-to-login {
  background-color: var(--background, #08160F); /* Background */
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-login__step-item {
  background-color: var(--card-bg, #11271B); /* Card Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--glow, #57E38D); /* Glow */
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6); /* Main text */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__step-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text */
}

.page-login__button-container {
  text-align: center;
  margin-top: 50px;
}

/* --- Troubleshooting Section --- */
.page-login__section--troubleshooting {
  background-color: var(--background, #08160F); /* Background */
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-login__card--trouble {
  background-color: var(--deep-green, #0A4B2C); /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__card-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E); /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text */
}

/* --- Games Section --- */
.page-login__section--games {
  background-color: var(--card-bg, #11271B); /* Card Background */
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.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: var(--deep-green, #0A4B2C); /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-login__game-title {
  font-size: 1.3em;
  color: var(--gold, #F2C14E); /* Gold */
  margin: 15px 15px 5px 15px;
  font-weight: 600;
}

.page-login__game-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text */
  padding: 0 15px 15px 15px;
  flex-grow: 1; /* Push content to bottom if needed */
}

/* --- Responsible Gaming Section --- */
.page-login__section--responsible-gaming {
  background-color: var(--background, #08160F); /* Background */
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-login__responsible-gaming-points {
  margin-top: 30px;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__point-item {
  font-size: 1.05em;
  color: var(--text-main, #F2FFF6); /* Main text */
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-login__point-item::before {
  content: "✅"; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D); /* Glow color */
}

/* --- FAQ Section --- */
.page-login__section--faq {
  background-color: var(--card-bg, #11271B); /* Card Background */
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  border: 1px solid var(--border, #2E7A4E); /* Border color */
  border-radius: 10px;
  overflow: hidden;
}

.page-login__faq-item {
  border-bottom: 1px solid var(--divider, #1E3A2A); /* Divider color */
}

.page-login__faq-item:last-child {
  border-bottom: none;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6); /* Main text */
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-login__faq-question:hover {
  background-color: var(--divider, #1E3A2A); /* Divider for hover */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold, #F2C14E); /* Gold */
  margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-login__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text */
  background-color: var(--card-bg, #11271B); /* Card Background */
}

/* --- CTA Bottom Section --- */
.page-login__section--cta-bottom {
  background-color: var(--background, #08160F); /* Background */
  padding-bottom: 80px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-login__section {
    padding: 50px 20px;
  }
  .page-login__hero-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-login__section {
    padding: 40px 15px;
  }
  .page-login__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content,
  .page-login__features-grid,
  .page-login__steps-list,
  .page-login__troubleshooting-cards,
  .page-login__games-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-section {
    padding-top: 10px !important; /* Small padding, body handles header offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .page-login__video-section { 
    padding-top: 10px !important; 
  }

  .page-login__game-image {
    height: 180px; /* Adjust height for smaller screens */
  }

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

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

  .page-login__point-item {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-login__section {
    padding: 30px 10px;
  }
  .page-login__hero-content {
    padding: 10px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 0.95em;
  }
  .page-login__game-image {
    height: 150px;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none;
}