/* style/login.css */

/* Global styles for .page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Overall page background */
  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.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F2FFF6;
  position: relative;
  padding-bottom: 15px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
  border-radius: 2px;
}

.page-login__description,
.page-login__text-secondary {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Secondary text color */
}

.page-login__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-login__card-description {
  color: #A7D9B8;
  line-height: 1.7;
  font-size: 1rem;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

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

.page-login__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

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

.page-login__cta-buttons--centered {
  justify-content: center;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #08160F;
}

.page-login__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Ensure image is not covered by text */
  z-index: 1;
}

.page-login__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Min size for images */
}

.page-login__hero-content {
  position: relative; /* Not absolute, to be below the image */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: 40px; /* Spacing between image and text */
}

.page-login__main-title {
  font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 900;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Login Guide Section */
.page-login__login-guide-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green background for contrast */
}

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

.page-login__step-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
}

.page-login__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
  color: #F2FFF6;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.page-login__step-description {
  color: #A7D9B8;
  font-size: 0.95rem;
}

.page-login__image-and-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
}

.page-login__form-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px; /* Min size for images */
}

.page-login__tips-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #A7D9B8;
  font-size: 1rem;
}

.page-login__list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #2AD16F;
}

/* Features Section */
.page-login__features-section {
  padding: 80px 0;
  background-color: #08160F; /* Page background */
}

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

.page-login__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-login__card-link {
  display: inline-block;
  margin-top: 20px;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__card-link:hover {
  color: #57E38D; /* Glow color */
}

.page-login__game-showcase {
  margin-top: 60px;
  text-align: center;
}

.page-login__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Min size for images */
}

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

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

.page-login__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-login__security-text .page-login__card-title {
  margin-top: 20px;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Min size for images */
}

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

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6;
  background-color: #11271B;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

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

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8;
  font-size: 1rem;
  line-height: 1.7;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-login__faq-answer a.page-login__faq-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.page-login__faq-answer a.page-login__faq-link:hover {
  color: #57E38D;
}

/* Video Section */
.page-login__video-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green background for contrast */
  text-align: center;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
  width: 100%; /* Ensure width is 100% for desktop too */
  max-width: 100%; /* Ensure width is 100% for desktop too */
  box-sizing: border-box;
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer; /* Make video clickable */
}

.page-login__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Overlay to capture clicks */
  cursor: pointer;
  background: transparent; /* Invisible overlay */
}

/* Final CTA Section */
.page-login__cta-final-section {
  padding: 80px 0;
  background-color: #08160F; /* Page background */
  text-align: center;
}

.page-login__cta-content {
  max-width: 900px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 2rem;
  }
  .page-login__description,
  .page-login__text-secondary {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
  }

  .page-login__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-login__section-title::after {
    width: 60px;
  }

  .page-login__description,
  .page-login__text-secondary {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-login__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-login__login-guide-section,
  .page-login__features-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__video-section,
  .page-login__cta-final-section {
    padding: 40px 0;
  }

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

  .page-login__steps-container {
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-login__image-and-form {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__form-image,
  .page-login__tips-card,
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__features-grid {
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-login__game-image {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-text {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

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

  /* Video responsiveness */
  .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;
  }

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

  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all content containers are constrained */
  .page-login__hero-section,
  .page-login__login-guide-section,
  .page-login__features-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

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