/* style/login.css */

/* Căn bản và Màu sắc */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Phù hợp với nền body tối */
  background-color: transparent; /* body đã có màu nền từ shared.css */
}

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

.page-login__dark-bg {
  background-color: #1a1a1a; /* Nền tối cho các section */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #FFFFFF; /* Nền sáng cho các section */
  color: #333333;
}

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Nút và Liên kết */
.page-login__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Màu cam cho nút Đăng Nhập */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 12px 25px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị che bởi header */
  overflow: hidden;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Lớp phủ tối để text nổi bật */
  z-index: 2;
}

.page-login__container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  flex: 1 1 350px;
  max-width: 450px;
  box-sizing: border-box;
  color: #333333; /* Text tối trên nền sáng */
}

.page-login__card-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__checkbox {
  margin-right: 5px;
}

.page-login__checkbox-label {
  color: #555555;
}

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

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

.page-login__login-button {
  width: 100%;
  font-size: 1.1em;
  padding: 15px 20px;
}

.page-login__register-text {
  margin-top: 25px;
  color: #555555;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__cta-buttons {
  margin-top: 20px;
}

.page-login__download-app-btn {
  width: 100%;
  font-size: 1.1em;
  padding: 15px 20px;
  margin-top: 15px;
}

/* Why Choose Section */
.page-login__why-choose {
  padding: 80px 0;
  text-align: center;
}

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

.page-login__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

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

/* Guide Section */
.page-login__guide {
  padding: 80px 0;
}

.page-login__guide-steps-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-login__guide-steps {
  flex: 2 1 55%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.page-login__step-number {
  font-size: 2em;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
}

.page-login__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__guide-image-container {
  flex: 1 1 35%;
  text-align: center;
}

.page-login__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px;
  object-fit: cover;
}

/* Troubleshooting Section */
.page-login__troubleshooting {
  padding: 80px 0;
  text-align: center;
}

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

.page-login__trouble-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
}

.page-login__trouble-title {
  font-size: 1.5em;
  color: #EA7C07;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__trouble-text {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-login__faq {
  padding: 80px 0;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-login__faq-question:hover {
  color: #26A9E0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 15px 25px 25px;
}

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

/* CTA Section Bottom */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-buttons-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__hero-content {
    text-align: center;
  }
  .page-login__container {
    flex-direction: column;
    align-items: center;
  }
  .page-login__hero-content,
  .page-login__login-card {
    max-width: 100%;
    flex: none;
  }
  .page-login__hero-content {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 90vh;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__why-choose, .page-login__guide, .page-login__troubleshooting, .page-login__faq, .page-login__cta-section {
    padding: 60px 0;
  }
  .page-login__guide-steps-wrapper {
    flex-direction: column;
  }
  .page-login__guide-steps,
  .page-login__guide-image-container {
    flex: none;
    width: 100%;
  }
  .page-login__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100% !important;
    max-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__cta-buttons, .page-login__button-group, .page-login__btn-container, .page-login__cta-buttons-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* 移动端图片适配 */
  .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,
  .page-login__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__guide-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-login__feature-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__faq-question {
    font-size: 1em;
  }
  .page-login__step-number {
    font-size: 1.5em;
  }
  .page-login__step-title {
    font-size: 1.2em;
  }
}