/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css var(--dark-bg-1) */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-login__hero-overlay .page-login__container {
  z-index: 2;
  color: #ffffff;
}

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

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for form */
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

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

.page-login__form-group {
  text-align: left;
}

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

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

.page-login__form-input::placeholder {
  color: #666666;
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-login__login-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-login__login-btn:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-login__forgot-password-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__no-account-text {
  margin-top: 20px;
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Sections General */
.page-login__security-importance,
.page-login__login-process,
.page-login__troubleshooting,
.page-login__member-benefits,
.page-login__explore-games,
.page-login__faq-section,
.page-login__register-cta {
  padding: 80px 0;
}

.page-login__dark-bg {
  background-color: var(--dark-bg-1, #1a1a1a); /* Fallback for dark background */
  color: #f0f0f0;
}

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

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section for contrast */
}

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

/* Security Importance Section */
.page-login__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}

.page-login__content-block h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for headings on light background */
}

.page-login__content-block p {
  line-height: 1.7;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  grid-column: span 2 / auto; /* Span across columns for larger display */
  object-fit: cover;
}

/* Login Process Section */
.page-login__process-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-login__process-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__process-item:hover {
  transform: translateY(-5px);
}

.page-login__process-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for headings on dark background */
}

.page-login__process-item p,
.page-login__process-item ul {
  color: #f0f0f0;
}

.page-login__process-item ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

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

.page-login__troubleshooting-item {
  background-color: #f9f9f9; /* Light background on light section */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-login__troubleshooting-item:hover {
  transform: translateY(-5px);
}

.page-login__troubleshooting-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for headings on light background */
}

/* Member Benefits Section */
.page-login__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-login__benefits-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__benefits-item:hover {
  transform: translateY(-5px);
}

.page-login__benefits-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-login__benefits-item p {
  color: #f0f0f0;
}

/* Explore Games Section */
.page-login__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__game-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-login__game-card h3 {
  font-size: 1.3em;
  margin: 20px 20px 10px 20px;
  color: #017439;
}

.page-login__game-card h3 a {
  text-decoration: none;
  color: #017439;
  transition: color 0.3s ease;
}

.page-login__game-card h3 a:hover {
  color: #C30808; /* Hover color for game links */
}

.page-login__game-card p {
  font-size: 0.95em;
  margin: 0 20px 20px 20px;
  flex-grow: 1; /* Ensure paragraphs take up available space */
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  transform: translateY(-2px);
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00; /* Yellow toggle icon */
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.02); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

/* Register CTA Section */
.page-login__register-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background-color: var(--dark-bg-1, #1a1a1a); /* Fallback background */
}

.page-login__register-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 1;
}

.page-login__register-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Changed to 0 to be behind overlay */
}

.page-login__register-cta .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__register-cta .page-login__section-title,
.page-login__register-cta .page-login__section-description {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-login__register-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom register font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.page-login__register-btn:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    height: auto;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

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

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

  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 90%;
  }

  .page-login__login-btn,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__register-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 !important;
    gap: 15px;
  }

  .page-login__container,
  .page-login__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__security-image,
  .page-login__game-image,
  .page-login__register-image {
    width: 100% !important;
    height: auto !important;
  }

  .page-login__content-grid,
  .page-login__process-list,
  .page-login__troubleshooting-grid,
  .page-login__benefits-list,
  .page-login__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__security-image {
    grid-column: span 1 / auto;
  }

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

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

  .page-login__register-cta {
    min-height: 300px;
    padding: 60px 0;
  }
}