.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
}

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

.page-login__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

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

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
}

.page-login__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #000;
}

.page-login__hero-video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 100%;
  margin-top: 40px;
  text-align: left;
  color: #333333;
}

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

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

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

.page-login__btn-login {
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #555555;
}

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

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

.page-login__benefits-section,
.page-login__security-section,
.page-login__games-section,
.page-login__troubleshoot-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description {
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439;
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: #555555;
}

.page-login__dark-bg .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__benefit-card,
.page-login__game-card,
.page-login__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-login__benefit-card:hover,
.page-login__game-card:hover,
.page-login__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-image,
.page-login__game-image,
.page-login__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: contain;
}

.page-login__card-title,
.page-login__security-subtitle,
.page-login__troubleshoot-subtitle {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__security-item .page-login__security-subtitle {
  color: #ffffff;
}

.page-login__card-text,
.page-login__security-text,
.page-login__troubleshoot-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__security-item .page-login__security-text {
  color: #f0f0f0;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Pushes button to bottom */
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__troubleshoot-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__contact-support {
  margin-top: 50px;
  font-size: 1.1em;
}

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

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

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

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

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

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

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

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

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

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

.page-login__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

  .page-login__form-wrapper {
    padding: 30px;
  }

  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__games-grid,
  .page-login__troubleshoot-grid,
  .page-login__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__main-title {
    font-size: 1.8em;
    line-height: 1.3;
  }

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__form-wrapper {
    margin-top: 30px;
    padding: 25px;
  }

  .page-login__form-title {
    font-size: 1.5em;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__troubleshoot-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 15px;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-login__benefit-card,
  .page-login__game-card,
  .page-login__promo-card,
  .page-login__security-item,
  .page-login__troubleshoot-item {
    padding: 20px;
  }

  .page-login__card-title,
  .page-login__security-subtitle,
  .page-login__troubleshoot-subtitle {
    font-size: 1.3em;
  }

  .page-login__btn-login,
  .page-login__btn-register {
    max-width: 100% !important;
    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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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__faq-question,
  .page-login__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}