/* style/login.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light); /* Default body background is light */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-login__hero-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 215, 0, 0.7) 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:background:bk8 40, cá cược trực tuyến, đăng nhập, thưởng lớn, 2026, pattern]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
}

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

.page-login__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 40px;
  max-width: 450px;
  margin: 0 auto;
  color: var(--text-dark);
}

.page-login__card-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

.page-login__forgot-password-link {
  display: block;
  text-align: right;
  font-size: 14px;
  color: var(--secondary-color);
  text-decoration: none;
  margin-top: -15px;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--primary-color);
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-login__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 15px;
  text-align: center;
}

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

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

/* General Section Styling */
.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.page-login__section-description {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-login__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 80px 0;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__highlight {
  color: var(--primary-color);
}

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

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-login__btn-secondary:hover {
  background: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Benefits Section */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

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

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__benefit-text {
  font-size: 16px;
  color: var(--text-light);
}

/* About BK8 Section */
.page-login__about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__about-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-login__about-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__about-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__about-item-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-login__about-item-text {
  font-size: 16px;
  color: var(--text-dark);
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--background-dark);
  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: 18px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-light);
  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 {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.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: var(--background-dark);
  color: var(--text-light);
  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;
}

.page-login__faq-answer p {
  margin: 0;
  color: var(--text-light);
}

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

.page-login__promotion-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-login__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-login__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-login__promotion-title a:hover {
  color: var(--primary-color);
}

.page-login__promotion-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-login__promotion-date {
  font-size: 14px;
  color: #777;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.page-login__responsible-gaming-content p {
  margin-bottom: 15px;
}

.page-login__responsible-gaming-content .page-login__highlight {
  color: var(--primary-color);
}

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

  .page-login__section-title {
    font-size: 30px;
  }

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

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-section {
    padding: 40px 0;
  }

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

  .page-login__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-login__card-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-login__form-input,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 16px !important;
    padding: 12px 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-login__dark-bg, .page-login__light-bg {
    padding: 50px 0;
  }

  .page-login__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  .page-login__benefits-grid,
  .page-login__about-grid,
  .page-login__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login__benefit-title {
    font-size: 20px;
  }

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

  .page-login__about-item-title {
    font-size: 20px;
  }

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

  .page-login__faq-question h3 {
    font-size: 16px;
  }

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

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

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

  .page-login__promotion-title {
    font-size: 18px;
  }

  .page-login__responsible-gaming-content {
    text-align: left;
    font-size: 15px;
  }

  .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__hero-section,
  .page-login__benefits-section,
  .page-login__about-bk8-section,
  .page-login__faq-section,
  .page-login__promotions-section,
  .page-login__responsible-gaming-section,
  .page-login__login-card,
  .page-login__benefits-item,
  .page-login__about-item,
  .page-login__promotion-card,
  .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: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 26px;
  }

  .page-login__section-title {
    font-size: 22px;
  }

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

  .page-login__card-title {
    font-size: 20px;
  }

  .page-login__form-input,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 15px !important;
    padding: 10px 15px !important;
  }

  .page-login__faq-question h3 {
    font-size: 15px;
  }

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

  .page-login__promotion-title {
    font-size: 16px;
  }
  .page-login__promotion-content {
    padding: 15px;
  }
}