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

/* Header offset to prevent content from being hidden by fixed header */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient for hero */
}

.page-login__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop: image and content side-by-side */
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-login__hero-content {
  flex: 1;
  text-align: left;
  max-width: 50%; /* Adjust width for content */
}

.page-login__main-title {
  font-size: 3.2em;
  color: #26A9E0; /* Primary brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__login-form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin-top: 30px;
  border: 1px solid #e0e0e0;
}

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

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  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: flex-end;
  margin-bottom: 25px;
}

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

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

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: #EA7C07; /* Login specific color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* Ensure it looks like a button */
  text-align: center;
  box-sizing: border-box;
}

.page-login__login-button:hover {
  background: #d46c06;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-login__hero-image {
  flex: 1;
  text-align: center;
  max-width: 50%; /* Adjust width for image */
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* General Section Styles */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

/* Security Section */
.page-login__security-section {
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

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

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
}

.page-login__feature-icon {
  width: 200px; /* Min size for images */
  height: 150px;
  object-fit: contain; /* Use contain for icons/illustrations */
  margin-bottom: 20px;
  border-radius: 8px; /* Added for consistency */
}

.page-login__feature-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
}

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

.page-login__feature-text a {
  color: #ffffff; /* Ensure links are visible on dark background */
  text-decoration: underline;
}

/* Explore Games Section */
.page-login__explore-games-section {
  padding: 80px 0;
  background-color: #f8fcfd; /* Light background for contrast */
}

.page-login__game-showcase {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-login__game-image {
  flex: 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Minimum size */
  min-height: 200px;
}

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

.page-login__game-link {
  display: block;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-login__game-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #26A9E0;
}

.page-login__game-link h3 {
  font-size: 1.3em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-login__game-link p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

.page-login__cta-area {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 300px; /* Limit button width */
}

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

.page-login__btn-primary:hover {
  background: #1f8ec7;
  border-color: #1f8ec7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-login__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

/* FAQ container style */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #555555;
  background: #ffffff;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important, value large enough to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e0e0e0;
}

.page-login__faq-item.active .page-login__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Question style */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-login__faq-item.active .page-login__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #26A9E0;
  background-color: #eaf6fc;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #1f8ec7;
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change to '-' */
}

/* Conclusion Section */
.page-login__conclusion-section {
  padding: 60px 0 80px 0;
  background-color: #f8fcfd;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile override */
    padding-bottom: 40px;
  }

  .page-login__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-login__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-form-wrapper {
    margin-top: 20px;
    padding: 25px 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

  .page-login__login-button {
    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__hero-image {
    max-width: 100%;
    width: 100%;
  }
  
  .page-login__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }

  .page-login__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific container paddings to ensure consistency */
  .page-login__security-section .page-login__container,
  .page-login__explore-games-section .page-login__container,
  .page-login__faq-section .page-login__container,
  .page-login__conclusion-section .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

  .page-login__security-section {
    padding: 50px 0;
  }

  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item {
    padding: 25px;
  }

  .page-login__feature-icon {
    width: 150px;
    height: 100px;
    margin-bottom: 15px;
  }

  .page-login__feature-title {
    font-size: 1.2em;
  }

  .page-login__explore-games-section {
    padding: 50px 0;
  }

  .page-login__game-showcase {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-login__game-image {
    min-width: 200px;
    min-height: 150px;
    border-radius: 8px;
  }

  .page-login__game-categories {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-login__game-link {
    padding: 18px;
  }

  .page-login__game-link h3 {
    font-size: 1.1em;
  }

  .page-login__game-link p {
    font-size: 0.9em;
  }

  .page-login__cta-area {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  .page-login__cta-button {
    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__faq-section {
    padding: 50px 0;
  }

  .page-login__faq-list {
    margin-top: 30px;
  }

  .page-login__faq-item {
    margin-bottom: 10px;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-question h3 {
    font-size: 1em;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

/* Ensure all images within .page-login are responsive by default */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all image containers within .page-login are responsive by default */
.page-login__hero-image,
.page-login__feature-item,
.page-login__game-showcase,
.page-login__game-image,
.page-login__card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Specific overrides for mobile images/containers to prevent overflow */
@media (max-width: 768px) {
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image,
  .page-login__feature-item,
  .page-login__game-showcase {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Padding already handled in general mobile styles for .page-login__container and sections */
}