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

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

.page-login__section-padding {
  padding: 40px 0;
}

.page-login__section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-title--light {
  color: #ffffff;
}

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

.page-login__section-intro--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  max-width: 800px;
  margin-top: 30px;
  padding: 0 15px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

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

/* Guide Section */
.page-login__steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.page-login__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.page-login__step-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-list,
.page-login__recovery-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-login__step-list li,
.page-login__recovery-list li {
  margin-bottom: 10px;
  color: #555555;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto;
  display: block;
}

/* Benefits Section */
.page-login__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-login__benefit-card {
  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);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-login__benefit-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Troubleshoot Section */
.page-login__solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-login__solution-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-login__solution-title {
  font-size: 22px;
  color: #EA7C07;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Register Section */
.page-login__register-section {
  background-color: #f9f9f9;
}

.page-login__register-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-login__register-subtitle {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefits-list,
.page-login__register-steps {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-login__register-steps {
  list-style-type: decimal;
}

.page-login__register-image-wrapper {
  text-align: center;
}

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

/* FAQ Section */
.page-login__light-bg {
  background-color: #f5f5f5;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f0f8ff;
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

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

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

/* Responsive Styles */
@media (max-width: 1023px) {
  /* No game trial specific CSS for login page */
}

@media (min-width: 1024px) {
  /* No game trial specific CSS for login page */
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-bottom: 20px;
  }

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

  .page-login__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 10px;
  }

  .page-login__cta-center {
    padding: 0 15px;
  }

  .page-login__cta-center .page-login__btn-primary {
    margin-top: 20px;
  }

  .page-login__steps-grid,
  .page-login__benefits-grid,
  .page-login__solution-grid,
  .page-login__register-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__section-padding {
    padding: 30px 0;
  }

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

  .page-login__section-intro {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__step-item,
  .page-login__benefit-card,
  .page-login__solution-item {
    padding: 20px;
  }

  .page-login__step-title,
  .page-login__benefit-title,
  .page-login__solution-title,
  .page-login__register-subtitle {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-login__register-image-wrapper {
    order: -1; /* Image appears above text on mobile */
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-qtext {
    font-size: 16px;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image responsiveness for content area */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-login__container,
  .page-login__hero-section,
  .page-login__guide-section,
  .page-login__benefits-section,
  .page-login__troubleshoot-section,
  .page-login__register-section,
  .page-login__faq-section,
  .page-login__step-item,
  .page-login__benefit-card,
  .page-login__solution-item,
  .page-login__register-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Fixed header spacing - only if shared.css doesn't handle body padding-top */
/* If shared.css does, the .page-login__hero-section padding-top: 10px is sufficient */
/* .page-login { padding-top: var(--header-offset, 122px); } */

/* Color contrast fixes (if needed, but design should prevent) */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}