/* 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 hoặc các section đầu tiên. */

.page-login {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Custom Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #A7D9B8; /* Custom Text Secondary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F;
  overflow: hidden;
}

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

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-login__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Complementary to primary button */
  border: 2px solid #2AD16F;
}

.page-login__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-3px);
}

.page-login__form-section {
  background-color: #08160F; /* Custom Background */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-login__login-form {
  background-color: #11271B; /* Custom Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 40px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid #2E7A4E; /* Custom Border */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
}

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

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Custom Text Secondary */
  opacity: 0.7;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #2AD16F;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #2E7A4E;
  border-radius: 3px;
  background-color: #0A4B2C;
  cursor: pointer;
  position: relative;
  top: 1px;
}

.page-login__checkbox:checked {
  background-color: #2AD16F;
  border-color: #2AD16F;
}

.page-login__checkbox:checked::before {
  content: '✔';
  display: block;
  color: #F2FFF6;
  font-size: 14px;
  text-align: center;
  line-height: 18px;
}

.page-login__forgot-password {
  color: #2AD16F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D; /* Custom Glow */
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

.page-login__register-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.page-login__register-link:hover {
  color: #57E38D; /* Custom Glow */
}

.page-login__form-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
  text-align: center;
}

.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-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Custom Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
}

.page-login__card-text {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 1em;
}

.page-login__benefits-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__cta-download {
  background-color: #0A4B2C; /* Custom Deep Green */
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__security-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
  text-align: center;
}

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

.page-login__feature-item {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
}

.page-login__feature-text {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__faq-section {
  background-color: #0A4B2C; /* Custom Deep Green */
  padding: 80px 0;
  color: #F2FFF6; /* Custom Text Main */
}

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

.page-login__faq-item {
  background-color: #11271B; /* Custom Card BG */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  cursor: pointer;
  background-color: transparent;
  border-bottom: 1px solid #1E3A2A; /* Custom Divider */
  list-style: none; /* For details/summary */
}

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

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom-color: #2E7A4E;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Custom Glow */
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

.page-login__contact-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-section {
    padding: 40px 20px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-login__description,
  .page-login__text-block {
    font-size: 1em;
  }
  .page-login__benefits-grid,
  .page-login__security-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 20px 15px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-login__description,
  .page-login__text-block {
    font-size: 0.95em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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__form-section,
  .page-login__benefits-section,
  .page-login__cta-download,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__contact-section {
    padding: 40px 0;
  }
  .page-login__login-form {
    padding: 30px;
    margin: 30px auto 0;
  }
  .page-login__form-group {
    margin-bottom: 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-login__benefits-grid,
  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__faq-list {
    margin-top: 30px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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 video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .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-section {
    padding-top: 10px !important;
  }
}