/* style/login.css */

/* Base Styles & Page-specific variables */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light sections */
  background-color: var(--dark-bg-1); /* Inherits from shared, typically dark */
}

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

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Color Contrast Handling */
.page-login__dark-bg {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff; /* Light text on dark background */
}

.page-login__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text on light background */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding to accommodate header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  min-height: 700px;
  padding-top: var(--header-offset, 120px);
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: 1.3em;
  max-width: 700px;
  margin: 0 auto 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-login__login-form-wrapper {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
}

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

.page-login__input-group {
  margin-bottom: 20px;
}

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-login__input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

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

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

.page-login__remember-me {
  color: #555555;
}

.page-login__login-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.page-login__btn-primary {
  background: #EA7C07; /* Login button color */
  color: #ffffff;
}

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

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

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

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

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

.page-login__benefit-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__benefit-description {
  color: #555555;
  font-size: 1em;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  background: #EA7C07;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

.page-login__step-description {
  color: #f0f0f0;
}

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

.page-login__trouble-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-login__trouble-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__trouble-description {
  color: #555555;
}

.page-login__trouble-link {
  color: #EA7C07;
  text-decoration: none;
}

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

/* Security Section */
.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-login__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__security-text {
  flex: 1;
  color: #ffffff;
}

.page-login__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-login__security-list li {
  background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23EA7C07" width="24px" height="24px"%3e%3cpath d="M0 0h24v24H0z" fill="none"/%3e%3cpath d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/%3e%3c/svg%3e') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-login__security-list strong {
  color: #EA7C07;
}

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

.page-login__category-card {
  display: block;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-login__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__category-title {
  font-size: 1.3em;
  color: #26A9E0;
  padding: 20px;
  margin: 0;
}

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

.page-login__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.1);
  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;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section {
    padding: 40px 0;
  }
  .page-login__hero-section {
    min-height: 600px;
    padding: 100px 0 60px; /* Adjusted for mobile header offset */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
    max-width: 90%;
  }
  .page-login__security-image {
    max-width: 100%;
  }
  .page-login__security-list li {
    font-size: 0.95em;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Mobile image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-login__cta-button,
  .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__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}