/* style/login.css */

/* Base Styles & Typography */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css body background */
}

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

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

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-login__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #017439;
  text-decoration: none;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-login__login-card {
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 40px auto 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #005a2e;
  text-decoration: underline;
}

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

.page-login__remember-me input[type="checkbox"] {
  margin-right: 8px;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: #333333;
}

.page-login__register-link {
  color: #C30808; /* Custom Register link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

/* Why Login Section */
.page-login__why-login-section {
  padding: 80px 0;
}

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

.page-login__feature-item {
  padding: 30px;
  text-align: center;
}

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

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

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

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

.page-login__guide-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__guide-item {
  padding: 30px;
  counter-increment: step-counter;
  position: relative;
  text-align: left;
}

.page-login__guide-item::before {
  content: "Bước " counter(step-counter);
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  color: #C30808;
  margin-bottom: 10px;
}

.page-login__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__guide-item p {
  color: #555555;
  font-size: 1em;
}

.page-login__additional-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-login__trouble-item {
  padding: 30px;
}

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

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

.page-login__contact-support {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__support-link {
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__support-link:hover {
  color: #a00606;
  text-decoration: underline;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
}

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

.page-login__security-item {
  padding: 30px;
}

.page-login__security-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-item p {
  color: #555555;
  font-size: 1em;
}

.page-login__security-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Video Section */
.page-login__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px; /* Max width for video container */
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-login__video-cta {
  margin-top: 30px;
}

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

.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-login__faq-question:hover {
  background-color: #005a2e;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  background-color: #ffffff;
  color: #555555;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 20px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
    padding-bottom: 40px;
  }

  .page-login__hero-content {
    padding: 0 15px;
    max-width: 100%;
  }

  .page-login__main-title {
    font-size: 2em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-card {
    margin-top: 30px;
    max-width: 100%;
    padding: 25px;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__section-description {
    font-size: 1em;
  }

  .page-login__features-grid,
  .page-login__guide-list,
  .page-login__troubleshooting-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item,
  .page-login__guide-item,
  .page-login__trouble-item,
  .page-login__security-item {
    padding: 20px;
  }

  .page-login__hero-image,
  .page-login__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__video-section {
    padding: 40px 0;
  }

  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__faq-list {
    max-width: 100%;
    margin: 30px auto;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 15px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-login,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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__form-input {
    padding: 10px;
  }

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

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__card-title {
    font-size: 1.5em;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__hero-description,
  .page-login__section-description {
    font-size: 0.95em;
  }
}