.page-login {
  color: #ffffff; /* Body background #1a1a2e is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Background handled by shared.css body */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  color: #ffffff;
}

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

.page-login__form-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for important text */
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.page-login__login-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__login-heading {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.95em;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__input:focus {
  border-color: #017439;
  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;
}

.page-login__label-checkbox {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #FFFF00; /* Custom color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #017439;
}

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

.page-login__btn-login-submit {
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  border: none;
  width: 100%;
  margin-top: 15px;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__register-text {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-login__link-register {
  color: #017439; /* Brand color for register link */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: color 0.3s ease;
}

.page-login__link-register:hover {
  color: #FFFF00; /* Custom color on hover */
}

.page-login__section-heading {
  font-size: 2.8em;
  color: #FFFF00; /* Custom color for headings */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-intro {
  font-size: 1.15em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-bg {
  background: #017439; /* Brand color as background */
  color: #ffffff; /* White text for brand color background */
}

.page-login__light-bg {
  background: #FFFFFF; /* White background */
  color: #333333; /* Dark text for white background */
}

.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.1);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__benefit-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.8em;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
  background: #1a1a2e; /* Dark background */
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__game-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__game-link {
  color: #FFFF00; /* Custom color for game links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-login__promo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__promo-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__promo-title {
  font-size: 1.8em;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__promo-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-login__btn-view-promos {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-login__btn-view-promos:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background: #1a1a2e; /* Dark background */
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-login__faq-title {
  font-size: 1.25em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for toggle icon */
  transition: transform 0.3s ease;
}

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

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

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

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.8;
}

.page-login__link-inline {
  color: #FFFF00; /* Custom color for inline links */
  text-decoration: underline;
}

.page-login__link-inline:hover {
  color: #017439;
}

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

.page-login__btn-login-cta {
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  border: none;
}

.page-login__btn-login-cta:hover {
  background-color: #a00606;
}

.page-login__btn-register-cta {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-login__btn-register-cta:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__login-box {
    padding: 30px 20px;
  }
  .page-login__login-heading {
    font-size: 1.8em;
  }
  .page-login__section-heading {
    font-size: 1.8em;
  }
  .page-login__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__benefits-section, .page-login__games-section, .page-login__promotions-section, .page-login__faq-section, .page-login__cta-final-section {
    padding: 60px 0;
  }
  .page-login__benefits-grid, .page-login__games-grid, .page-login__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-login__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-buttons .page-login__btn {
    width: 100% !important;
    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__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image specific rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__benefit-image, .page-login__game-image, .page-login__promo-image {
    width: 100%;
    max-width: 100% !important;
    height: auto;
  }

  /* Mobile video specific rules (if any videos were present) */
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__login-heading {
    font-size: 1.5em;
  }
  .page-login__section-heading {
    font-size: 1.5em;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}