:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9; /* Slightly off-white for sections */
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color); /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Fixed Header Offset - applied to the first main content section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #40c0f0); /* Slightly varied gradient for visual appeal */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden; /* Prevent content overflow */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any potential background effects */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--light-text-color);
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__intro-text {
  font-size: 1.25em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-login__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--login-button-color); /* Custom login color */
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background: #ff8c00; /* Slightly darker orange on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-login__section-title--light {
  color: var(--light-text-color);
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.page-login__section-description--light {
  color: #e0e0e0; /* Lighter text for dark backgrounds */
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
  background: var(--secondary-color); /* White background */
  color: var(--dark-text-color);
}

.page-login__login-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 40px auto;
  border: 1px solid var(--border-color);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 15px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  color: var(--dark-text-color);
  background-color: #fcfcfc;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color); /* Custom checkbox color */
}

.page-login__checkbox-label {
  color: var(--dark-text-color);
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #1a7bbd; /* Slightly darker blue */
  text-decoration: underline;
}

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: var(--login-button-color);
  color: var(--light-text-color);
  text-decoration: none; /* For a tag */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center; /* For a tag */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: var(--dark-text-color);
}

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

.page-login__register-link:hover {
  color: #1a7bbd;
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background: var(--primary-color); /* Dark background */
  color: var(--light-text-color);
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-login__benefit-card img {
  width: 100%;
  max-width: 350px; /* Max width for images in cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-login__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-login__benefit-card p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly lighter text for readability on dark card */
  flex-grow: 1; /* Allow paragraphs to take up available space */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background: var(--background-light); /* Slightly off-white background */
  color: var(--dark-text-color);
}

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

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 25px !important;
  opacity: 1;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}