/* style/login.css */
.page-login {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: Arial, sans-serif;
  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;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: #1a1a2e;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section is tall enough */
}

.page-login__main-title {
  font-size: 3.5em;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #26A9E0;
}

.page-login__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;
  color: #ffffff;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background: #0d0d1a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

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

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

.page-login__remember-me input[type="checkbox"] {
  accent-color: #26A9E0;
}

.page-login__submit-button {
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: #EA7C07; /* Login button specific color */
  color: #ffffff;
}

.page-login__submit-button:hover {
  background: #d46b06;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
}

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

/* Benefits Section */
.page-login__benefits-section {
  background: #1a1a2e; /* Use body background for consistency */
  padding: 80px 0;
  color: #ffffff; /* Light text on dark 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.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;
  border: 1px solid #26A9E0;
}

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

.page-login__benefit-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Added border-radius for image consistency */
}

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

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

/* Security Section */
.page-login__security-section {
  background: #1a1a2e;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-login__security-item {
  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);
  border: 1px solid #26A9E0;
}

.page-login__security-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__security-item p {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-login__game-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #26A9E0;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px; /* Consistent height for game images */
  object-fit: cover;
}

.page-login__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px 15px 0;
}

.page-login__game-card p {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 15px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
  background: #1e87b7;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #26A9E0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.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;
  background: rgba(38, 169, 224, 0.2); /* Lighter brand color background for question */
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.4);
}

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

.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); /* Plus sign rotates to form an X or minus */
}

.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 25px;
}

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

/* CTA Section */
.page-login__cta-section {
  background: #1a1a2e;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__intro-text,
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__games-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: 60px 15px;
    min-height: 400px;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__intro-text {
    font-size: 0.9em;
  }
  .page-login__form-wrapper {
    padding: 25px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__games-grid {
    grid-template-columns: 1fr;
  }
  .page-login__benefit-icon {
    width: 150px;
    height: 150px;
  }
  .page-login__game-image {
    height: 180px;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-title {
    font-size: 1em;
  }
  .page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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: 15px 15px;
  }

  /* Mobile image and video responsive styles */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important; /* Added width for images in mobile */
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure correct header offset */
  }

  /* Video specific mobile styles, if any video 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;
  }
}