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

.page-login {
  color: #ffffff; /* Text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background is transparent to show body background */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

.page-login__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-content {
  width: 100%;
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #26A9E0; /* Primary brand color for title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

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

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

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

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

.page-login__btn-login {
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background-color: #d46b00;
}

.page-login__link-register,
.page-login__link-forgot-password {
  color: #26A9E0;
  text-decoration: none;
  text-align: center;
  font-size: 0.95em;
  transition: color 0.3s ease;
  max-width: 100%; /* For responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__link-register:hover,
.page-login__link-forgot-password:hover {
  color: #5ac4f0;
}

/* General content sections */
.page-login__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for content blocks */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Ensure text is light */
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-login__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-login__content-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-login__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-login__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__list-item::before {
  content: '✔';
  color: #EA7C07; /* Checkmark color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-login__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-login__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  color: #26A9E0; /* FAQ question text color */
}

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

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #EA7C07; /* Toggle icon color */
}

.page-login__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #cccccc;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 25px 25px;
}

/* For <details> tag, native toggle is used */
.page-login__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-login__faq-item details > summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

/* Call to Action Section */
.page-login__cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Gradient background for CTA */
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1200px;
  box-sizing: border-box;
}

.page-login__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-login__cta-description {
  font-size: 1.2em;
  color: #e0f2f7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  display: inline-block;
  background-color: #EA7C07;
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background-color: #d46b00;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-section {
    padding: 40px 20px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-content {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 30px 20px;
    max-width: 100%;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-login,
  .page-login__link-register,
  .page-login__link-forgot-password {
    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__section {
    padding: 30px 15px;
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__content-text,
  .page-login__list-item,
  .page-login__faq-question,
  .page-login__faq-answer {
    font-size: 0.95em;
  }
  .page-login__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__cta-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__cta-title {
    font-size: 1.8em;
  }
  .page-login__cta-description {
    font-size: 1em;
  }
  .page-login__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px;
  }
}