/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css body, set here for clarity */
}

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

.page-login__hero-section {
  position: relative;
  background: url('[GALLERY:hero:1920x1080:viet69,login,background,secure,dynamic]') center center / cover no-repeat;
  padding: 120px 0 60px; /* Adjust top padding for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 700px;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for important titles */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-card {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #017439;
}

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

.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: #333333;
  color: #ffffff;
  font-size: 1em;
}

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

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #ffffff;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #555;
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
  background-color: #666;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
  background-color: #017439;
}

.page-login__checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

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

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom login button background */
  color: #FFFF00; /* Custom login button text */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-login__social-login {
  margin-top: 30px;
  text-align: center;
  color: #ffffff;
}

.page-login__social-login p {
  margin-bottom: 15px;
}

.page-login__social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.page-login__social-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__social-btn--facebook {
  background-color: #3b5998;
}

.page-login__social-btn--facebook:hover {
  background-color: #2d4373;
}

.page-login__social-btn--google {
  background-color: #dd4b39;
}

.page-login__social-btn--google:hover {
  background-color: #c23321;
}

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

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

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

.page-login__content-section,
.page-login__feature-section,
.page-login__games-section,
.page-login__promo-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 60px 0;
}

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

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

.page-login__dark-text {
  color: #e0e0e0; /* Slightly lighter than pure white for readability on dark backgrounds */
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #FFFF00; /* Custom color for important titles */
}

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

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

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

.page-login__feature-item,
.page-login__game-card,
.page-login__promo-card,
.page-login__security-item {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #017439;
  color: #ffffff;
}

.page-login__feature-title,
.page-login__game-title,
.page-login__promo-title,
.page-login__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for titles within cards */
}

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

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

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

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

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

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background: rgba(0, 0, 0, 0.7);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #017439;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #1a1a1a; /* Dark background for question */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #017439;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFFF00; /* Custom color for toggle icon */
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* For '-' effect if starting with '+' */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a2a2a; /* Slightly lighter background for answer */
  color: #e0e0e0;
}

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

.page-login__cta-buttons {
  text-align: center;
  margin-top: 40px;
}

/* Ensure all links are accessible */
.page-login a {
  color: #FFFF00; /* Default link color */
}

.page-login a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-login__intro-text {
    font-size: 1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__card-title {
    font-size: 1.8em;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__social-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__social-btn {
    width: 100%;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__features-grid,
  .page-login__game-categories,
  .page-login__promo-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
  }

  .page-login__content-section,
  .page-login__feature-section,
  .page-login__games-section,
  .page-login__promo-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 0;
  }

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

  /* Button responsiveness for mobile */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__btn-submit,
  .page-login__social-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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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

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

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