/* style/login.css */

/* Body background color is #1a1a2e (dark), so text color should be light (#ffffff) for general content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

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

.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 0;
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:bg:1920x1080:cockfighting_arena,thomo,night_view,vibrant_lights]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-login__hero-content {
  flex: 1;
  max-width: 500px;
  text-align: center;
  margin-right: 40px;
}

.page-login__main-title {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__form-group {
  margin-bottom: 20px;
  text-align: left;
}

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

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

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

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

.page-login__forgot-password-link {
  color: #FFFF00; /* Custom color for link */
  text-decoration: none;
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #ffffff;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #C30808; /* Custom color for Login button */
  color: #ffffff; /* Contrast fix: Overriding #FFFF00 to meet WCAG AA contrast for dark background */
}

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

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: transparent;
  color: #017439;
}

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

.page-login__register-text {
  margin-top: 25px;
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #FFFF00; /* Custom color for link */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #666666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__benefits-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__benefit-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e0e0e0;
}

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

.page-login__benefit-card p {
  color: #555555;
}

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

.page-login__games-section {
  padding: 60px 0;
}

.page-login__games-section .page-login__section-title,
.page-login__promotions-section .page-login__section-title,
.page-login__register-cta .page-login__section-title {
  color: #ffffff;
}

.page-login__games-section .page-login__section-description,
.page-login__promotions-section .page-login__section-description,
.page-login__register-cta .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-login__game-card .page-login__card-title {
  font-size: 1.3em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-login__game-card .page-login__card-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-login__game-card .page-login__card-title a:hover {
  text-decoration: underline;
}

.page-login__game-card p {
  color: #cccccc;
  font-size: 0.95em;
}

.page-login__security-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.page-login__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__feature-item p {
  color: #555555;
}

.page-login__promotions-section {
  padding: 60px 0;
}

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

.page-login__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-login__promo-card .page-login__card-title {
  font-size: 1.3em;
  color: #FFFF00;
  padding: 15px 20px 0;
}

.page-login__promo-card p {
  color: #cccccc;
  padding: 10px 20px 20px;
  font-size: 0.95em;
}

.page-login__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__faq-item {
  background-color: #f9f9f9;
  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: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details tag */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-login__faq-item[open] > .page-login__faq-question {
  border-bottom: 1px solid #d0d0d0;
  background-color: #e8e8e8;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #f9f9f9;
}

.page-login__register-cta {
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(1, 116, 57, 0.9), rgba(1, 116, 57, 0.9)), url('[GALLERY:bg:1920x1080:cockfighting_stadium,crowd,excitement,online_gaming]');
  background-size: cover;
  background-position: center;
}

.page-login__register-cta .page-login__section-title {
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__register-cta .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-login__register-cta .page-login__register-button {
  background-color: #C30808; /* Custom color for Register button */
  color: #ffffff; /* Contrast fix: Overriding #FFFF00 to meet WCAG AA contrast for dark background */
  width: auto;
  display: inline-block;
  padding: 15px 40px;
}

.page-login__register-cta .page-login__register-button:hover {
  background-color: #a30606;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-login__hero-content {
    margin-right: 0;
  }
  .page-login__hero-section .page-login__container {
    flex-direction: column;
  }
  .page-login__hero-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-description,
  .page-login__section-description,
  .page-login p,
  .page-login li {
    font-size: 1em;
    line-height: 1.6;
  }
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__games-section,
  .page-login__security-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__register-cta {
    padding: 40px 0;
  }

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__game-card,
  .page-login__feature-item,
  .page-login__promo-card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__login-button,
  .page-login__register-button,
  .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 !important;
    padding-right: 15px !important;
  }
  .page-login__cta-container,
  .page-login__form-options {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__form-options a,
  .page-login__remember-me {
    width: 100%;
    text-align: center;
  }
  .page-login__hero-content {
    order: 2;
  }
  .page-login__hero-image-wrapper {
    order: 1;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__register-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form {
    padding: 20px;
  }
}