.page-login {
  color: #ffffff; /* Body background is dark (#1a1a2e), so text must be light */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  padding-bottom: 60px;
}

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

.page-login__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* Slight zoom for better effect */
  filter: brightness(0.7); /* Darken video for text readability */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__login-form-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background: #333333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__btn-primary {
  background: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-login__btn-primary:hover {
  background-color: #d16b05;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: transparent;
  color: #26A9E0;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
  text-align: center;
  border: 2px solid #26A9E0;
  cursor: pointer;
}

.page-login__btn-secondary:hover {
  color: #ffffff;
  background: #26A9E0;
}

.page-login__register-link {
  font-size: 0.9em;
  margin-top: 10px;
  color: #26A9E0;
  text-decoration: none;
  text-align: center;
}

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

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Brand color for titles */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Why Choose Section */
.page-login__why-choose {
  padding: 60px 0;
  background: #ffffff; /* Light background */
  color: #333333;
}

.page-login__why-choose .page-login__section-title {
  color: #000000; /* Dark text for light background */
}

.page-login__why-choose .page-login__section-description {
  color: #333333; /* Dark text for light background */
}

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

.page-login__feature-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-login__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Game Categories Section */
.page-login__game-categories {
  padding: 60px 0;
  background: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-login__game-categories .page-login__section-title {
  color: #ffffff;
}

.page-login__game-categories .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background for cards */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-login__game-card .page-login__card-title {
  font-size: 1.4em;
  padding: 15px;
  margin: 0;
  color: #26A9E0;
}

/* VIP Services Section */
.page-login__vip-services-section {
  padding: 60px 0;
  background: #ffffff;
  color: #333333;
}

.page-login__vip-services-section .page-login__section-title {
  color: #000000;
}

.page-login__vip-services-section .page-login__section-description {
  color: #333333;
}

.page-login__vip-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-login__vip-button {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 60px 0;
  background: #1a1a2e;
  color: #ffffff;
}

.page-login__promotions-section .page-login__section-title {
  color: #ffffff;
}

.page-login__promotions-section .page-login__section-description {
  color: #f0f0f0;
}

.page-login__promotions-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-login__promotions-button {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background: #ffffff;
  color: #333333;
}

.page-login__faq-section .page-login__section-title {
  color: #000000;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-top: 1px solid #e0e0e0;
}

.page-login__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #333333;
}

.page-login__faq-question:hover {
  background-color: #f5f5f5;
}

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

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px;
}

.page-login__faq-answer p {
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  line-height: 1.6;
}

/* Final CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background: #26A9E0;
  text-align: center;
  color: #ffffff;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-form-container {
    max-width: 90%;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__feature-grid, .page-login__game-grid {
    grid-template-columns: 1fr;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100%;
    max-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__hero-video, .page-login__vip-image, .page-login__promotions-image, .page-login__feature-image, .page-login__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-video-wrapper, .page-login__vip-services-section, .page-login__promotions-section, .page-login__game-categories, .page-login__why-choose, .page-login__faq-section, .page-login__cta-section, .page-login__container, .page-login__feature-card, .page-login__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__login-form-container {
    padding: 20px;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 10px;
  }
  .page-login__faq-answer {
    padding: 0 10px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form-input {
    padding: 10px;
  }
}