/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though body is white */
  overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

/* Section padding and max-width for content */
.page-login__content-section {
  padding: 40px 0;
  background-color: #f9f9f9; /* Light background for content sections */
}

.page-login__content-section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-login__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 20px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-login__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
}

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

.page-login__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  min-width: 180px; /* Minimum width for buttons */
}

.page-login__btn--primary {
  background-color: #C30808; /* Login button color */
  color: #FFFFFF; /* Adjusted for contrast, original #FFFF00 fails WCAG AA */
  border: 2px solid #C30808;
}

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

.page-login__btn--secondary {
  background-color: #017439; /* Register button color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-login__btn--secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* General section titles */
.page-login__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-login__text-block--light {
  color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
  padding-bottom: 60px;
}

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

.page-login__benefit-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Guide Section */
.page-login__guide-section {
  background-color: #017439;
  color: #ffffff;
}

.page-login__step-by-step {
  margin-top: 40px;
}

.page-login__step-item {
  margin-bottom: 50px;
  text-align: center;
}

.page-login__step-item:last-child {
  margin-bottom: 0;
}

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

.page-login__step-item p {
  max-width: 800px;
  margin: 0 auto 25px auto;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-login__image-figure {
  margin: 20px auto 0 auto;
  max-width: 680px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-login__step-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-login__image-caption {
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 0.9em;
  text-align: center;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding-bottom: 60px;
}

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

.page-login__troubleshoot-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  text-align: center;
}

/* Security Section */
.page-login__security-section {
  background-color: #017439;
  color: #ffffff;
  padding-bottom: 60px;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.page-login__security-list li:last-child {
  margin-bottom: 0;
}

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

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

/* Explore Games Section */
.page-login__explore-games-section {
  padding-bottom: 60px;
}

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

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

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

.page-login__game-card-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3; /* Maintain aspect ratio */
}

.page-login__game-card-title {
  font-size: 1.3em;
  color: #017439;
  margin: 15px 15px 10px 15px;
  font-weight: bold;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding-bottom: 60px;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* Hide default marker for details */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #f0f8f0; /* Slightly different background when open */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-login__faq-qtext {
  flex-grow: 1;
}