/* style/login.css */

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px;
  overflow: hidden;
  background-color: #E53935; /* Main brand color for hero background */
  color: #ffffff;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px; /* Adjust based on desired hero image width */
  margin: 0 auto;
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

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

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  color: #333333;
}

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

.page-login__form-group {
  margin-bottom: 15px;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

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

.page-login__forgot-password:hover {
  color: #FF5A4F;
}

.page-login__register-link-wrapper {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
}

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

.page-login__register-link:hover {
  color: #FF5A4F;
}

/* Section General Styles */
.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.page-login__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

/* Features Section */
.page-login__features-section {
  padding: 60px 20px;
}

.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__feature-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, box-shadow 0.3s ease;
  color: #333333;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.page-login__feature-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

.page-login__feature-card p {
  font-size: 1rem;
  color: #555555;
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 20px;
}

.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.page-login__step-item {
  text-align: center;
  color: #ffffff;
}

.page-login__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FF5A4F;
}

.page-login__troubleshoot-section {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.page-login__troubleshoot-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
}

.page-login__troubleshoot-list li {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__troubleshoot-list li strong {
  color: #FF5A4F;
}

/* Games Preview Section */
.page-login__games-preview-section {
  padding: 60px 20px;
}

.page-login__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__game-card {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

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

.page-login__game-card .page-login__card-title {
  color: #E53935;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-login__game-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #555555;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 60px 20px;
}

.page-login__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.page-login__promo-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-login__promo-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__promo-card .page-login__card-title {
  color: #E53935;
}

.page-login__promo-card p {
  font-size: 1rem;
  color: #555555;
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #E53935;
  background-color: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  list-style: none;
}

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #FF5A4F;
  color: #ffffff;
  border-color: #FF5A4F;
}

.page-login__faq-item[open] .page-login__faq-question .page-login__faq-toggle {
  color: #ffffff;
}

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

.page-login__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  background-color: #fcfcfc;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}

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

.page-login__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border-color: #E53935;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #FF5A4F;
  color: #FF5A4F;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-section {
    padding: 10px 15px 40px;
  }

  .page-login__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-login__description {
    font-size: 1rem;
  }

  .page-login__section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .page-login__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__games-grid,
  .page-login__promotions-grid {
    gap: 25px;
  }

  .page-login__feature-card,
  .page-login__game-card,
  .page-login__promo-card {
    padding: 25px;
  }

  .page-login__card-title {
    font-size: 1.3rem;
  }

  .page-login__faq-question {
    font-size: 1.05rem;
    padding: 15px 20px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 10px 15px 30px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-login__description {
    font-size: 0.95rem;
  }

  .page-login__form-wrapper {
    padding: 25px;
  }

  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-login__section-description {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .page-login__features-section,
  .page-login__guide-section,
  .page-login__games-preview-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 15px;
  }

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__games-grid,
  .page-login__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-card,
  .page-login__game-card,
  .page-login__promo-card,
  .page-login__faq-item,
  .page-login__troubleshoot-section,
  .page-login__cta-buttons,
  .page-login__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Button responsiveness */
  .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 !important;
    gap: 15px;
    padding-left: 0; /* Handled by parent section padding */
    padding-right: 0;
  }
  
  .page-login__faq-question {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .page-login__faq-answer {
    padding: 10px 18px 12px;
  }

  .page-login__faq-toggle {
    font-size: 1.5rem;
  }
}