/* style/login.css */
:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #000080; /* Xanh đậm */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark-1: #0d0d0d; /* Giả định từ shared.css */
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Mặc định chữ sáng trên nền tối của body */
  background-color: var(--bg-dark-1);
  padding-top: 10px; /* Đảm bảo nội dung không bị header cố định che */
}

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

/* Hero Section */
.page-login__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:fv88 nhà cái, cá cược trực tuyến Việt Nam, sòng bạc Việt Nam, login page, background]') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  padding-top: 10px; /* Đảm bảo nội dung không bị header cố định che */
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-light);
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  user-select: none;
  color: var(--text-light);
}

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

.page-login__checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 3px;
}

.page-login__checkbox:checked + .page-login__checkbox-label::before {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-login__checkbox:checked + .page-login__checkbox-label::after {
  content: '✔';
  position: absolute;
  left: 4px;
  top: 2px;
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: bold;
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--text-light);
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color); /* Chữ xanh đậm trên nền vàng */
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-login__submit-button:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--text-light);
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-login__section-title--light {
  color: var(--text-light); /* Tiêu đề sáng trên nền tối */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: var(--secondary-color); /* Nền xanh đậm */
  color: var(--text-light);
  text-align: center;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-login__benefit-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-login__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color); /* Chữ xanh đậm trên nền vàng */
}

.page-login__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Game Highlights Section */
.page-login__game-highlights-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
}

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

.page-login__game-card {
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

.page-login__game-content {
  padding: 25px;
}

.page-login__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-login__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__game-title a:hover {
  color: var(--text-light);
}

.page-login__game-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.page-login__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__read-more:hover {
  color: var(--text-light);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: var(--secondary-color); /* Nền xanh đậm */
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a5a; /* Nền tối hơn cho câu hỏi */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #4a4a6a;
  border-color: var(--primary-color);
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Chữ vàng cho câu hỏi */
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Để dấu + thành X */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #2a2a4a; /* Nền tối hơn cho câu trả lời */
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 8px 8px;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* APP Download Section */
.page-login__app-download-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: var(--text-light);
  text-align: center;
}

.page-login__app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-login__app-content {
  max-width: 800px;
}

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

.page-login__app-button {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-login__app-button:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-login__app-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

.page-login__app-qr-code {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
}

.page-login__qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-login__app-qr-code p {
  color: var(--text-light);
  font-size: 1em;
}

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

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

  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__game-highlights-section,
  .page-login__faq-section,
  .page-login__app-download-section {
    padding: 60px 15px;
  }

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

  .page-login__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .page-login__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 10px !important; /* Mobile fixed header adjustment */
    font-size: 15px;
  }

  .page-login__hero-section {
    padding: 60px 15px;
    padding-top: 10px !important; /* Mobile fixed header adjustment */
  }

  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-login__form-wrapper {
    padding: 25px;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-login__submit-button {
    font-size: 1em;
    padding: 12px;
  }

  .page-login__register-prompt {
    margin-top: 20px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-login__benefits-section,
  .page-login__game-highlights-section,
  .page-login__faq-section,
  .page-login__app-download-section {
    padding: 40px 15px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-login__benefit-icon {
    width: 60px;
    height: 60px;
  }

  .page-login__benefit-title {
    font-size: 1.3em;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__game-grid {
    grid-template-columns: 1fr;
  }

  .page-login__game-image {
    height: 180px;
  }

  .page-login__game-title {
    font-size: 1.4em;
  }

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

  .page-login__faq-question h3 {
    font-size: 1em;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

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

  .page-login__app-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__app-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__app-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__qr-image {
    width: 150px;
    height: 150px;
  }
  
  /* Ensure all images are responsive on mobile */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__benefits-section,
  .page-login__game-highlights-section,
  .page-login__faq-section,
  .page-login__app-download-section,
  .page-login__app-container,
  .page-login__app-buttons,
  .page-login__app-qr-code {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-login__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
}