/* style/login.css */

/* Base styles for page-login */
.page-login {
  background-color: #08160F; /* Background color as per custom palette */
  color: #F2FFF6; /* Main text color as per custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per instruction */
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #08160F;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.page-login__container {
  max-width: 600px;
  width: 100%;
  background-color: #11271B; /* Card Background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #A7D9B8;
  font-size: 0.95rem;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

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

.page-login__remember-me input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #2AD16F; /* Checkbox color */
}

.page-login__remember-me label {
  color: #A7D9B8;
}

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

.page-login__forgot-password-link:hover {
  color: #F2C14E;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: #A7D9B8;
  font-size: 0.95rem;
}

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

.page-login__register-link:hover {
  color: #F2C14E;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green background */
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__benefit-card {
  background-color: #11271B; /* Card Background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-login__benefit-description {
  color: #A7D9B8;
  font-size: 0.95rem;
}

/* Security Info Section */
.page-login__security-info-section {
  padding: 60px 20px;
  background-color: #08160F;
  box-sizing: border-box;
}

.page-login__security-content p {
  color: #A7D9B8;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
}

.page-login__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 20px;
  background-color: #0A4B2C;
  box-sizing: border-box;
}

.page-login__troubleshooting-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__troubleshooting-content li {
  background-color: #11271B;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #2AD16F;
  color: #A7D9B8;
  font-size: 1rem;
}

.page-login__troubleshooting-content li strong {
  color: #F2FFF6;
}

.page-login__troubleshooting-content p {
  color: #A7D9B8;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 20px;
  background-color: #08160F;
  box-sizing: border-box;
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-login__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2FFF6;
  font-weight: bold;
  font-size: 1.1rem;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #1E3A2A;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  color: #A7D9B8;
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__container {
    max-width: 90%;
  }
}

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

  .page-login__hero-section {
    padding: 40px 15px;
  }

  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-login__description {
    font-size: 1rem;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-info-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section {
    padding: 40px 15px;
  }

  .page-login__container {
    padding: 30px 20px;
  }

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

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-login__submit-button,
  .page-login__cta-button, /* Ensure all buttons are responsive */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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;
  }

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

  .page-login__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-login__video-section {
    padding-top: 10px !important; /* body đã có --header-offset, đây chỉ là phần trang trí */
  }

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

@media (max-width: 480px) {
  .page-login__container {
    padding: 25px 15px;
  }

  .page-login__section-title {
    font-size: 1.5rem;
  }

  .page-login__form-input,
  .page-login__submit-button {
    font-size: 1rem;
    padding: 10px;
  }
}