/* style/login.css */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for dark background */
  background-color: var(--page-bg-color); /* Matches body background from shared.css */
}

.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: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__text-block {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  text-align: justify;
}

.page-login__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__dark-bg {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
}

.page-login__light-bg {
  background-color: #f5f5f5;
  color: #333333; /* Dark text for light background */
}

.page-login__text-contrast-fix {
  color: #333333 !important; /* Ensure dark text on light backgrounds */
}

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

.page-login__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text on green gradient */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-login__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--page-bg-color);
  border-color: var(--glow-color);
}

.page-login__btn-large {
  min-width: 250px;
}

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

.page-login__text-center {
  text-align: center;
}

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

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

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

/* Features Section */
.page-login__features-section {
  padding: 80px 0;
}

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

.page-login__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-login__feature-description {
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

/* How to Login Section */
.page-login__how-to-login {
  padding: 80px 0;
}

.page-login__login-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-login__login-steps li {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.6;
  position: relative;
  padding-left: 60px;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-login__login-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--deep-green-color);
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__step-title {
  color: var(--deep-green-color);
  font-size: 1.2em;
  margin-bottom: 5px;
  display: block;
}

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

.page-login__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__security-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-secondary-color);
}

.page-login__security-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-weight: bold;
}

.page-login__security-feature {
  color: var(--text-main-color);
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Game Highlights Section */
.page-login__game-highlights {
  padding: 80px 0;
}

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

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

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

.page-login__game-title {
  font-size: 1.4em;
  color: var(--glow-color);
  margin-bottom: 10px;
}

.page-login__game-description {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-login__game-link {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--glow-color);
  padding-bottom: 5px;
}

.page-login__game-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

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

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

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

.page-login__promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-login__promotion-title {
  font-size: 1.4em;
  color: var(--glow-color);
  margin-bottom: 10px;
}

.page-login__promotion-description {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

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

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

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details summary */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--deep-green-color);
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

.page-login__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__section-title,
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-login__subtitle {
    font-size: 1.1em;
  }
  .page-login__security-content {
    flex-direction: column;
  }
  .page-login__security-image-wrapper {
    margin-top: 30px;
  }
}

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

  .page-login__container {
    padding: 0 15px !important;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset, this is decorative */
  }

  .page-login__section-title,
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 20px;
  }

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

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

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

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

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

  /* All containers with images/content */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__how-to-login,
  .page-login__security-info,
  .page-login__game-highlights,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__hero-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__promotion-image,
  .page-login__game-image,
  .page-login__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-login__login-steps li {
    padding-left: 50px;
    font-size: 1em;
  }
  .page-login__login-steps li::before {
    width: 30px;
    height: 30px;
    font-size: 1.1em;
    left: 15px;
  }

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

  .page-login__feature-icon {
    width: 150px;
    height: 100px;
  }

  /* Ensure content images are not too small */
  .page-login__feature-icon,
  .page-login__game-image,
  .page-login__promotion-image,
  .page-login__security-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjust based on aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  /* No video on this page, but if there was, this would apply */
  .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;
  }

}