/* style/login.css */

/* Base styles for the page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background */
}

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

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

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

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

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

.page-login__btn-secondary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Use var(--header-offset) for top padding */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  text-align: center;
  color: #ffffff;
  background-color: #26A9E0; /* Primary brand color as background */
}

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

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let background color show */
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
  max-width: 900px;
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  color: #f0f0f0;
}

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

/* Login Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-login__checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

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

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

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

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

.page-login__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #EA7C07;
  color: #ffffff;
}

.page-login__form-submit-btn:hover {
  background-color: #d16b00;
}

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

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  max-width: 400px; /* Max width for consistency */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

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

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

.page-login__security-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-subtitle {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-login__security-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background-color: #333333;
  color: #ffffff;
}

.page-login__troubleshoot-section .page-login__section-title,
.page-login__troubleshoot-section .page-login__section-description {
  color: #ffffff;
}

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

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

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

.page-login__troubleshoot-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-top: 15px;
}

.page-login__troubleshoot-list li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__support-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

/* Mobile Section */
.page-login__mobile-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-login__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__mobile-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

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

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

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

.page-login__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__games-section .page-login__section-title,
.page-login__games-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__game-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__game-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

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

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

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

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

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

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.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; /* Sufficient height to show content */
  padding: 20px;
}

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

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

.page-login__cta-bottom-section .page-login__section-title,
.page-login__cta-bottom-section .page-login__section-description {
  color: #ffffff;
}

/* --- Responsive Design --- */

/* Desktop (default) - padding-top for fixed header */
.page-login__hero-section {
    padding-top: var(--header-offset, 120px);
}

@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  /* Ensure main content has proper padding and no overflow */
  .page-login__container {
    padding: 0 15px !important;
  }

  .page-login__hero-section {
    padding: 80px 0 40px; /* Adjust padding for mobile hero */
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile fixed header */
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
  }

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

  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__troubleshoot-grid,
  .page-login__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__mobile-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__mobile-subtitle {
    font-size: 1.6em;
    text-align: center;
  }

  .page-login__mobile-description {
    text-align: center;
  }

  .page-login__mobile-text {
    order: 2;
  }

  .page-login__mobile-image-wrapper {
    order: 1;
  }

  /* Image and Video Responsive - MUST BE HERE */
  .page-login img,
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image/video containers must have max-width: 100% and overflow: hidden */
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshoot-section,
  .page-login__mobile-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section,
  .page-login__mobile-image-wrapper,
  .page-login__game-card,
  .page-login__benefit-card,
  .page-login__troubleshoot-item,
  .page-login__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__form {
    padding: 20px 15px;
  }
  .page-login__faq-question {
    font-size: 0.9em;
  }
}