/* style/login.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định chữ trắng trên nền tối #1a1a2e của body */
  background-color: transparent; /* Nền trong suốt để lộ màu nền body */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Padding top nhỏ, padding bottom lớn hơn */
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của hình ảnh */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Làm mờ ảnh nền để text nổi bật */
}

.page-login__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: #ffffff;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.15); /* Nền bán trong suốt */
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  margin: 0 auto;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #EA7C07;
  box-shadow: 0 0 0 3px rgba(234, 124, 7, 0.3);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.page-login__cta-button {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Màu cam cho nút Đăng Nhập */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-login__forgot-password {
  margin-top: 15px;
  font-size: 0.95rem;
}

.page-login__link {
  color: #26A9E0;
  text-decoration: none;
}

.page-login__link:hover {
  text-decoration: underline;
  color: #EA7C07;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-login__dark-bg {
  background-color: #1a1a2e; /* Màu nền body */
  color: #ffffff;
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: #0d0d1e; /* Một màu tối nhẹ hơn một chút so với body */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-login__benefit-card,
.page-login__security-item,
.page-login__game-card {
  background: rgba(255, 255, 255, 0.08); /* Nền card bán trong suốt */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-login__benefit-card:hover,
.page-login__security-item:hover,
.page-login__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-image,
.page-login__security-image,
.page-login__game-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__card-title,
.page-login__security-title,
.page-login__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__card-text,
.page-login__security-text,
.page-login__game-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

.page-login__game-card {
  text-decoration: none;
}

.page-login__game-card .page-login__game-title {
  color: #26A9E0;
}

.page-login__game-card .page-login__game-text {
  color: #f0f0f0;
}

.page-login__guide-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__step-item {
  flex: 1 1 280px;
  max-width: 350px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.page-login__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #EA7C07;
}

.page-login__step-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

.page-login__troubleshooting {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
}

.page-login__troubleshooting-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-login__troubleshooting-text {
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #26A9E0;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-login__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #EA7C07;
}

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

.page-login__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-login__cta-final {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d1e;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 700px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-login__form-wrapper {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-login__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Đảm bảo text dễ đọc trên mobile */
    margin-top: -100px; /* Kéo nội dung lên trên ảnh */
    width: 100%;
  }
  .page-login__hero-image-wrapper {
    max-height: 400px;
  }
  .page-login__hero-image {
    filter: brightness(0.5); /* Ảnh tối hơn trên mobile */
  }
  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-login__form-wrapper {
    padding: 20px;
    max-width: 100%;
    border: none;
    background: none;
    backdrop-filter: none;
  }
  .page-login__cta-button {
    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__form-actions,
  .page-login__button-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-login__dark-bg,
  .page-login__light-bg,
  .page-login__cta-final {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  .page-login__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__security-item,
  .page-login__game-card {
    padding: 20px;
    margin: 0 15px;
  }
  .page-login__guide-steps {
    flex-direction: column;
    gap: 20px;
  }
  .page-login__step-item {
    max-width: 100%;
    margin: 0 15px;
  }
  .page-login__troubleshooting {
    margin-top: 40px;
    padding: 30px 15px;
    margin: 40px 15px 0 15px;
  }
  .page-login__troubleshooting-title {
    font-size: 1.5rem;
  }
  .page-login__faq-list {
    margin: 40px 15px 0 15px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-login__faq-answer {
    padding: 10px 20px 20px 20px;
    font-size: 0.9rem;
  }
  /* 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-top: 10px !important;
  }
}