.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000000 (dark), so use light text */
  background-color: #000000;
}

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

.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-login__login-form-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  margin-top: 30px;
}

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

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #26A9E0;
}

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

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

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

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

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

.page-login__login-button {
  margin-bottom: 20px;
}

.page-login__register-text {
  text-align: center;
  color: #f0f0f0;
  font-size: 0.95em;
}

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

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

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333; /* Light background, dark text */
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

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

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

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

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

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

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

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

.page-login__process-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

.page-login__process-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-login__process-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 20px;
}

.page-login__process-step {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-login__process-content {
  text-align: left;
}

.page-login__process-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__process-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__troubleshoot-area {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__troubleshoot-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

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

.page-login__video-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.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;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-login__video-cta {
  text-align: center;
  margin-top: 30px;
}

.page-login__video-cta-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #000000;
}

.page-login__explore-games-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

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

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

.page-login__game-card .page-login__card-title a {
  color: #26A9E0;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__game-card .page-login__card-title a:hover {
  color: #ffffff;
}

.page-login__game-card .page-login__card-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-login__mobile-app-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-login__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__app-text-content {
  flex: 1;
  min-width: 300px;
}

.page-login__app-subtitle {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000000;
}

.page-login__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__app-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-login__app-features li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
}

.page-login__feature-highlight {
  color: #000000;
}

.page-login__download-button {
  margin-top: 20px;
}

.page-login__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
}

.page-login__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2em;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
  content: '−'; /* Change to minus sign */
}

.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 all content */
  padding: 15px 25px 25px 25px;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__hero-content, .page-login__hero-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-login__login-form-wrapper {
    margin-left: auto;
    margin-right: auto;
  }
  .page-login__app-content {
    flex-direction: column;
  }
  .page-login__app-text-content, .page-login__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__container {
    padding: 0 15px !important;
  }
  .page-login__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-login__login-form-wrapper {
    padding: 25px;
    margin-top: 20px;
  }
  .page-login__form-input {
    padding: 10px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }
  .page-login__login-button {
    margin-bottom: 15px;
  }

  .page-login__benefits-section, .page-login__process-section, .page-login__video-section, .page-login__explore-games-section, .page-login__mobile-app-section, .page-login__faq-section {
    padding: 50px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__benefit-card, .page-login__game-card {
    padding: 20px;
  }
  .page-login__card-title, .page-login__game-card .page-login__card-title a {
    font-size: 1.3em;
  }
  .page-login__process-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 30px;
  }
  .page-login__process-step {
    margin-bottom: 15px;
  }
  .page-login__process-title {
    font-size: 1.5em;
  }
  .page-login__process-text {
    font-size: 0.95em;
  }
  .page-login__troubleshoot-area {
    padding: 25px;
  }
  .page-login__troubleshoot-title {
    font-size: 1.5em;
  }
  .page-login__video-wrapper {
    margin: 20px auto;
  }
  .page-login__video-cta-text {
    font-size: 1.1em;
  }
  .page-login__app-subtitle {
    font-size: 1.8em;
  }
  .page-login__app-features li {
    font-size: 1em;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-login__faq-question h3 {
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Image responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness for mobile */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/videos must be constrained */
  .page-login__section, .page-login__card, .page-login__container, .page-login__video-section, .page-login__video-container, .page-login__video-wrapper, .page-login__app-content, .page-login__game-categories, .page-login__benefits-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Ensure no horizontal scroll for main content */
  .page-login {
    overflow-x: hidden;
  }

  /* Button group specific for mobile */
  .page-login__cta-buttons, .page-login__button-group, .page-login__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}