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

:root {
  --primary-color: #26A9E0;
  --accent-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #FFFFFF;
  --border-light: #e0e0e0;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Body background is light, so text is dark */
  line-height: 1.6;
}

.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; /* Small top padding, body handles header offset */
  background-color: var(--background-light);
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: clamp(2em, 5vw, 2.8em); /* Use clamp for H1 */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-login__login-form-wrapper {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.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: var(--text-dark);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__btn-submit {
  background: var(--accent-color); /* Login button color */
  color: var(--text-light);
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  background: darken(var(--accent-color), 10%);
}

.page-login__link-forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  margin-top: 10px;
  display: block;
  transition: color 0.3s ease;
}

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

.page-login__no-account-text {
  margin-top: 20px;
  color: var(--text-dark);
}

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

.page-login__link-register:hover {
  text-decoration: underline;
}

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

.page-login__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-login__guide-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-login__step-card {
  background: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-login__step-card:hover {
  transform: translateY(-5px);
}

.page-login__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__step-text {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-login__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__recovery-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light); /* Dark background, so light text */
}

.page-login__recovery-section .page-login__section-title,
.page-login__recovery-section .page-login__section-description {
  color: var(--text-light);
}

.page-login__recovery-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.page-login__recovery-text,
.page-login__security-tips {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-login__sub-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
}

.page-login__recovery-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-login__btn-secondary {
  background: var(--background-light);
  color: var(--primary-color);
  padding: 12px 20px;
  border: 2px solid var(--background-light);
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background: transparent;
  color: var(--background-light);
}

.page-login__tip-list {
  list-style: none;
  padding-left: 0;
}

.page-login__tip-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-light);
}

.page-login__tip-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.page-login__why-choose-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-login__benefit-card {
  background: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-login__benefit-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-login__register-cta {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
  color: var(--text-light);
}

.page-login__register-cta .page-login__section-title,
.page-login__register-cta .page-login__section-description {
  color: var(--text-light);
}

.page-login__btn-primary {
  background: var(--accent-color);
  color: var(--text-light);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: darken(var(--accent-color), 10%);
}

.page-login__support-info {
  margin-top: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__support-info .page-login__sub-title {
  color: var(--text-light);
}

.page-login__support-info p {
  color: var(--text-light);
  font-size: 1em;
}

.page-login__app-download {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-login__app-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.page-login__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-login__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-login__app-features {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-login__app-features .page-login__sub-title {
  color: var(--primary-color);
  text-align: left;
}

.page-login__feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-login__feature-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  font-size: 1em;
  color: var(--text-dark);
}

.page-login__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-login__faq-question:hover {
  background: #f0f0f0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-section {
    padding: 40px 20px;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    padding: 30px 15px;
  }
  .page-login__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }
  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-login__login-form-wrapper {
    padding: 25px;
  }
  .page-login__btn-submit,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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__container,
  .page-login__guide-section,
  .page-login__recovery-section,
  .page-login__why-choose-section,
  .page-login__register-cta,
  .page-login__app-download,
  .page-login__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-login__steps-grid,
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__recovery-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__app-content {
    flex-direction: column;
  }
  .page-login__app-image-wrapper,
  .page-login__app-features {
    max-width: 100%;
    min-width: unset;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile responsive image styles */
  .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; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
  /* Mobile responsive button container styles */
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}