/* style/login.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-login {
  background: #08160F; /* Nền chính */
  color: #F2FFF6; /* Màu chữ chính */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn để tránh trùng với padding-top của body */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Làm tối hình ảnh để chữ dễ đọc */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Nền bán trong suốt cho nội dung */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font size */
  color: #F2FFF6;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-login__login-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 30px auto 0;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__card-title {
  font-size: 1.8em;
  color: #F2FFF6;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for input BG */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

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

.page-login__remember-me {
  color: #A7D9B8;
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #11A84E; /* Accent color for checkbox */
}

.page-login__forgot-password-link {
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #2AD16F;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-text {
  margin-top: 25px;
  color: #F2FFF6;
  text-align: center;
  font-size: 0.95em;
}

.page-login__link {
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #2AD16F;
}

/* General Section Styling */
.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-section {
  background: #0A4B2C; /* Deep Green */
}

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #A7D9B8;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Why Login Section */
.page-login__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__feature-item {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 400px; /* Enforce min 200px, use max-width for responsive */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

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

.page-login__feature-text {
  color: #A7D9B8;
  font-size: 1em;
}

/* Security Info Section */
.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__security-item {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-feature-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__security-feature-text {
  color: #A7D9B8;
  font-size: 0.95em;
}

/* Troubleshooting Section (FAQ) */
.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-login__faq-item summary {
  list-style: none;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  color: #F2FFF6;
  font-weight: 600;
  background: #11271B; /* Card BG */
  transition: background 0.3s ease;
}

.page-login__faq-question:hover {
  background: #0A4B2C; /* Deep Green */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #2AD16F; /* Glow color for toggle */
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  color: #A7D9B8;
  font-size: 1em;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-login__faq-answer p {
  margin: 0;
}

.page-login__support-cta {
  margin-top: 50px;
  padding: 30px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__support-cta p {
  font-size: 1.1em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #2AD16F; /* Button border */
  border-radius: 5px;
  background: transparent;
  color: #2AD16F; /* Button text */
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F; /* Dark background color */
}

/* Explore Games Section */
.page-login__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__game-card {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be object-fit */
  object-fit: cover;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-login__game-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-login__game-text {
  color: #A7D9B8;
  font-size: 0.95em;
  padding: 0 15px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-login__btn-link {
  display: inline-block;
  margin: 20px 15px;
  padding: 10px 20px;
  border: 1px solid #2AD16F;
  border-radius: 5px;
  color: #2AD16F;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-login__btn-link:hover {
  background: #2AD16F;
  color: #08160F;
}

/* CTA Download Section */
.page-login__cta-download {
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Brand colors for CTA */
  padding: 80px 20px;
}

.page-login__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.page-login__cta-download .page-login__section-title {
  color: #F2FFF6; /* Main Text */
}

.page-login__cta-download .page-login__section-description {
  color: #F2FFF6; /* Main Text */
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 15px;
  }
  .page-login__login-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-login__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }

  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }

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

  /* Images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images/content */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__feature-item,
  .page-login__security-item,
  .page-login__faq-item,
  .page-login__game-card,
  .page-login__login-card,
  .page-login__support-cta,
  .page-login__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important; /* body already handles offset */
  }
  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Ensure full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers */
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container,
  .page-login__support-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }
  .page-login__support-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

@media (max-width: 480px) {
  .page-login__login-card {
    padding: 20px;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-primary {
    font-size: 1em;
    padding: 12px 20px;
  }
}