.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a2e, so main text should be light */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  text-align: center;
  background-color: #1a1a2e; /* Fallback for image loading */
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Additional overlay for contrast */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for form area */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for login font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-login__form-wrapper {
  background: #2a2a3e; /* Darker background for form */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  margin: 0 auto;
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
}

.page-login__form-group {
  margin-bottom: 20px;
  text-align: left;
}

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #3a3a5e;
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #FFFF00;
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439; /* Custom checkbox color */
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push it out */
}

.page-login__btn-submit:hover {
  background-color: #a00606;
  color: #ffffff;
}

.page-login__no-account-text {
  margin-top: 20px;
  color: #f0f0f0;
  text-align: center;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* General Section Styling */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00;
}

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

/* Dark Section - General styles for sections with dark background */
.page-login__dark-section {
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

/* Light Section - General styles for sections with light background */
.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-login__light-bg .page-login__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__game-text,
.page-login__light-bg .page-login__trouble-text,
.page-login__light-bg .page-login__support-text,
.page-login__light-bg .page-login__faq-answer p {
    color: #555555; /* Darker text for readability on light background */
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

/* Game Showcase Section */
.page-login__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__game-card {
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-title {
  font-size: 1.3em;
  margin: 15px 10px 5px 10px;
  color: #017439;
}

.page-login__game-text {
  font-size: 0.9em;
  padding: 0 15px 20px 15px;
  color: #555555;
}

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__feature-title {
  font-size: 1.3em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-login__feature-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-login__text-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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


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

.page-login__trouble-card {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__trouble-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__trouble-text {
  color: #555555;
  font-size: 0.95em;
}

.page-login__support-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__support-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-login__btn-support {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-support:hover {
  background-color: #005a2e;
}

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

.page-login__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__promo-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__promo-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.page-login__promo-title {
  font-size: 1.3em;
  color: #FFFF00;
  margin: 15px 10px 5px 10px;
}

.page-login__promo-text {
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  color: #f0f0f0;
}

.page-login__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

.page-login__btn-promotions {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-promotions:hover {
  background-color: #005a2e;
}

/* Video Section */
.page-login__video-section {
    padding: 60px 0;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-login__video-link-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.page-login__faq-item[open] {
  background: rgba(255, 255, 255, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFFF00;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

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

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

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-login__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__btn-register {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-register:hover {
  background-color: #a00606;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.4em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__form-title {
    font-size: 1.6em;
  }
}