.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.page-login__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Rely on body padding from shared.css, add small top margin */
  padding-bottom: 0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-login__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(rgba(13, 14, 18, 0.7), rgba(13, 14, 18, 0.9)); /* Overlay to ensure text readability */
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #FFF3E6;
  margin-bottom: 15px;
  max-width: 900px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-login__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-login__login-container {
  display: flex;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  margin-top: 20px;
}

.page-login__form-wrapper {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-login__form-title {
  font-size: 2em;
  color: #FFF3E6;
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 5px;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 0.95em;
  color: #f0f0f0;
  user-select: none;
}

.page-login__checkbox-container input {
  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: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 3px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-label::before {
  background-color: #FF8C1A;
  border-color: #FF8C1A;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-label::after {
  content: '✔';
  position: absolute;
  left: 4px;
  top: 0px;
  color: #FFF3E6;
  font-size: 14px;
  font-weight: bold;
}

.page-login__forgot-password {
  color: #FFA53A;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Glow */
}

.page-login__register-text {
  margin-top: 20px;
  color: #f0f0f0;
  text-align: center;
}

.page-login__register-link {
  color: #FF8C1A;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__form-bg-image {
  flex: 1;
  object-fit: cover;
  max-width: 50%; /* Adjust for 50/50 split */
  display: block;
}

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

.page-login__section-title {
  font-size: 2.2em;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-login__text-block {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-login__why-888hu-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-login__feature-item {
  background-color: #17191F;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 140, 26, 0.5));
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__game-types-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-login__game-card {
  display: block;
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF3E6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-card-title {
  font-size: 1.4em;
  color: #FFA53A;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-login__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

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

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

.page-login__faq-item {
  background-color: #17191F;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #FFF3E6;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #FFA53A;
  list-style: none;
  position: relative;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FF8C1A;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%); /* Deep Orange to Main Color */
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__cta-section .page-login__section-title {
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-login__cta-section .page-login__text-block {
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-login__cta-button {
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: #17191F;
  color: #FFF3E6;
  border: 2px solid #FFF3E6;
}

.page-login__btn-primary:hover {
  background: #0D0E12;
  border-color: #FFA53A;
}

.page-login__btn-secondary {
  background: #FFF3E6;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

.page-login__btn-secondary:hover {
  background: #f0f0f0;
  color: #D96800;
}

.page-login__about-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }

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

  .page-login__login-container {
    max-width: 800px;
  }

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

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

  .page-login__form-bg-image {
    display: none;
  }
  
  .page-login__login-container {
    max-width: 500px;
  }
  
  .page-login__hero-content {
    position: static;
    background: none;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO Chủ đề chính */
  .page-login__hero-section {
    padding-top: 10px !important; /* Đảm bảo khoảng cách trên */
    padding-bottom: 20px;
  }

  .page-login__hero-image {
    max-height: 400px;
  }

  .page-login__hero-content {
    padding: 15px;
  }

  .page-login__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-login__description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .page-login__login-container {
    flex-direction: column;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-login__form-bg-image {
    display: none !important;
  }

  /* Phần Why 888hu */
  .page-login__why-888hu-section {
    padding: 40px 0;
  }

  .page-login__content-wrapper {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__text-block {
    font-size: 0.95em;
  }

  .page-login__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item {
    padding: 25px;
  }

  .page-login__feature-icon {
    max-width: 120px;
  }

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

  /* Phần loại game */
  .page-login__game-types-section {
    padding: 40px 0;
  }

  .page-login__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* Phần FAQ */
  .page-login__faq-section {
    padding: 40px 0;
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9em;
  }

  /* Phần CTA */
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__cta-section .page-login__text-block {
    margin-bottom: 30px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Hình ảnh chung và container */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}