/* style/login.css */
.page-login {
  color: #ffffff; /* Text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-login__hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #1a1a2e; /* Fallback for background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for form */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted title color */
  font-weight: bold;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-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 #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-login__btn--primary {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
}

.page-login__btn--primary:hover {
  background-color: #a30606;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  margin-top: 10px;
  display: block;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

/* General content sections */
.page-login__section {
  padding: 60px 20px;
  background-color: #1a1a2e; /* Consistent dark background */
  text-align: center;
}

.page-login__section--light {
  background-color: #2a2a4a; /* Slightly lighter dark background for contrast */
}

.page-login__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #017439; /* Brand color for section titles */
  position: relative;
  padding-bottom: 10px;
  font-weight: bold;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #FFFF00; /* Accent line */
}

.page-login__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.05em;
  color: #f0f0f0;
}

/* Benefit cards */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__benefit-card {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark card */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure it's not a small icon */
  max-width: 250px; /* Example size for illustrative image */
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__benefit-text {
  color: #cccccc;
  font-size: 0.95em;
}

/* Video section */
.page-login__video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__promo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  min-width: 200px;
  min-height: 200px;
}

/* Game showcase grid */
.page-login__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__game-card {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

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

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

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

.page-login__game-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__game-description {
  color: #cccccc;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.page-login__game-link {
  display: inline-block;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

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

/* Security section */
.page-login__security-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 30px;
}

.page-login__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-login__security-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__security-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
}

.page-login__security-link:hover {
  text-decoration: underline;
  color: #FFFF00;
}

/* FAQ section */
.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFFF00;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

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

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

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  background-color: rgba(0, 0, 0, 0.3);
}

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

/* Call to action section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #017439; /* Brand color background */
  text-align: center;
}

.page-login__cta-title {
  font-size: 2.5em;
  color: #FFFF00;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__cta-description {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: auto; /* Adjust for mobile */
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-login__title {
    font-size: 1.8em;
  }

  .page-login__description {
    font-size: 1em;
  }

  .page-login__hero-content {
    padding: 20px;
  }

  .page-login__form-input {
    font-size: 0.9em;
  }

  .page-login__btn {
    font-size: 1em;
    padding: 10px 20px;
    max-width: 100% !important; /* Button responsive */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__section {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__benefits-grid,
  .page-login__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login__game-image {
    height: 180px;
  }

  .page-login__security-content {
    gap: 20px;
  }

  .page-login__security-image {
    max-width: 100%;
  }

  .page-login__security-links {
    flex-direction: column;
    gap: 10px;
  }

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

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

  .page-login__cta-title {
    font-size: 2em;
  }

  .page-login__cta-description {
    font-size: 1em;
  }

  /* Image responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__security-content,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Video responsive rules */
  .page-login video,
  .page-login__promo-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;
  }
}

/* Ensure no images smaller than 200px */
.page-login img:not(.page-login__logo) {
  min-width: 200px;
  min-height: 200px;
}