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

.page-login__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #1E90FF, #0d0d0d);
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

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

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-login__login-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  text-align: center;
  border: 1px solid #FF4500;
}

.page-login__card-title {
  font-size: 2em;
  color: #FF4500;
  margin-bottom: 30px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #1E90FF;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #FF4500;
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.3);
}

.page-login__forgot-password-link {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
  color: #1E90FF;
  text-decoration: none;
  font-size: 0.9em;
}

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

.page-login__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: #FF4500;
  color: #ffffff;
  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;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__login-button {
  width: 100%;
  margin-top: 15px;
}

.page-login__register-text {
  margin-top: 25px;
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-login__section-title {
  font-size: 2.8em;
  color: #FF4500;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

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

.page-login__benefits-section {
  background-color: #0d0d0d;
  padding: 80px 20px;
  color: #ffffff;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 69, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 69, 0, 0.1);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.6em;
  color: #FF4500;
  margin-bottom: 15px;
}

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

.page-login__security-section {
  background-color: #1a1a1a;
  padding: 80px 20px;
  color: #ffffff;
}

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

.page-login__security-item {
  background: rgba(30, 144, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E90FF;
  transition: background-color 0.3s ease;
}

.page-login__security-item:hover {
  background-color: rgba(30, 144, 255, 0.2);
}

.page-login__security-title {
  font-size: 1.6em;
  color: #1E90FF;
  margin-bottom: 15px;
}

.page-login__security-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-login__security-text a {
  color: #FF4500;
  text-decoration: none;
}

.page-login__security-text a:hover {
  text-decoration: underline;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.page-login__games-section {
  background-color: #0a0a0a;
  padding: 80px 20px;
  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 {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 69, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__game-title {
  font-size: 1.8em;
  color: #FF4500;
  margin-bottom: 10px;
}

.page-login__game-title a {
  color: #FF4500;
  text-decoration: none;
}

.page-login__game-title a:hover {
  text-decoration: underline;
}

.page-login__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #1E90FF;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #1a7ae0;
  transform: translateY(-2px);
}

.page-login__download-section {
  background: linear-gradient(135deg, #0d0d0d, #1E90FF);
  padding: 80px 20px;
  color: #ffffff;
}

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

.page-login__app-image {
  max-width: 100%;
  width: 600px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-login__download-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 250px;
  max-width: 400px;
}

.page-login__download-btn {
  width: 100%;
}

.page-login__installation-guide-link {
  color: #FF4500;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

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

.page-login__faq-section {
  background-color: #0d0d0d;
  padding: 80px 20px;
  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);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 69, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 69, 0, 0.15);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 69, 0, 0.25);
}

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

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FF4500;
  transition: transform 0.3s ease;
}

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

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

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

.page-login__faq-answer a {
  color: #1E90FF;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

.page-login__cta-section {
  background: linear-gradient(45deg, #FF4500, #1E90FF);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-login__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

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

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2.5em;
  }
  .page-login__cta-title {
    font-size: 2.5em;
  }
  .page-login__container {
    gap: 30px;
  }
}

@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; /* Mobile fixed header offset */
  }
  .page-login__container {
    flex-direction: column;
    gap: 20px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__hero-content,
  .page-login__login-card,
  .page-login__hero-image-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .page-login__hero-title {
    font-size: 2.5em;
    text-align: center;
  }
  .page-login__hero-description {
    text-align: center;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-item,
  .page-login__security-item,
  .page-login__game-card {
    padding: 25px;
  }
  .page-login__game-image {
    height: 180px;
  }
  .page-login__download-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__download-buttons {
    max-width: 100%;
    width: 100%;
  }
  .page-login__app-image {
    max-width: 100%;
    width: 100%;
  }
  .page-login__faq-question h3 {
    font-size: 1.1em;
  }
  .page-login__faq-toggle {
    font-size: 1.5em;
  }
  .page-login__cta-title {
    font-size: 2em;
  }
  /* Ensure all content sections have proper padding */
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__download-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  /* Mobile image responsiveness for all images within .page-login */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* For any container that holds images to prevent overflow */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__download-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__cta-title {
    font-size: 1.8em;
  }
}