/* style/login.css */

/* Base styles for page-login, ensuring proper text color for dark body background */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: transparent; /* body handles the main background */
  line-height: 1.6;
}

/* Main sections padding and max-width */
.page-login__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__hero-section,
.page-login__form-section,
.page-login__features-section,
.page-login__guide-section,
.page-login__security-tips-section,
.page-login__faq-section,
.page-login__cta-bottom-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-login__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-login__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary,
.page-login__submit-btn {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button custom color */
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-login__btn-primary:hover,
.page-login__submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-login__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* A lighter green from the gradient */
  border: 1px solid #2E7A4E; /* Border custom color */
}

.page-login__btn-secondary:hover {
  background: #2E7A4E; /* Border color on hover */
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-title--light {
  color: #F2FFF6; /* Text Main */
}

.page-login__section-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-login__section-description--light {
  color: #A7D9B8; /* Text Secondary */
}

/* Form Section */
.page-login__form-section {
  background-color: #08160F; /* Background custom color */
}

.page-login__login-form {
  background: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  margin: 0 auto;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #2E7A4E; /* Border custom color */
  border-radius: 8px;
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  border-color: #2AD16F; /* Lighter green */
  outline: none;
  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: 30px;
  font-size: 0.9em;
}

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #2AD16F; /* Lighter green */
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Text Secondary */
}

.page-login__forgot-password {
  color: #2AD16F; /* Lighter green */
  text-decoration: none;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__register-prompt a {
  color: #2AD16F; /* Lighter green */
  text-decoration: none;
  font-weight: 500;
}

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

/* Features Section */
.page-login__features-section {
  background: #0A4B2C; /* Deep Green custom color */
}

.page-login__dark-section {
  background: #0A4B2C; /* Deep Green custom color */
  color: #F2FFF6; /* Text Main */
}

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

.page-login__feature-card {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-image {
  width: 100%;
  max-width: 400px; /* Constrain image size */
  height: auto;
  min-height: 200px; /* Minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

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

/* Guide Section */
.page-login__guide-section {
  background-color: #08160F; /* Background custom color */
}

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

.page-login__step-item {
  background: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #2AD16F; /* Lighter green */
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__additional-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Security Tips Section */
.page-login__security-tips-section {
  background: #11271B; /* Card BG */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 700px;
  text-align: left;
}

.page-login__security-item {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-login__security-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #2AD16F; /* Lighter green */
}

.page-login__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  min-height: 200px; /* Minimum size */
  display: block;
  margin-top: 30px;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #08160F; /* Background custom color */
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background: #11271B; /* Card BG */
  user-select: none;
  list-style: none; /* For details summary */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Lighter green */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For details tag, browser handles max-height */
.page-login__faq-item[open] .page-login__faq-answer {
  max-height: 1000px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

/* For JS-controlled div, if details not used */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important;
  padding-top: 10px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  content: '−';
}

/* CTA Bottom Section */
.page-login__cta-bottom-section {
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__features-section,
  .page-login__guide-section,
  .page-login__security-tips-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section {
    padding: 40px 0;
  }

  .page-login__hero-content {
    padding: 0 15px;
  }

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

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

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-btn {
    padding: 12px 20px;
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-section .page-login__container,
  .page-login__features-section .page-login__container,
  .page-login__guide-section .page-login__container,
  .page-login__security-tips-section .page-login__container,
  .page-login__faq-section .page-login__container,
  .page-login__cta-bottom-section .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__login-form {
    padding: 30px 20px;
  }

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

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

  .page-login__feature-card,
  .page-login__step-item {
    padding: 20px;
  }

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

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

  /* Images responsive adaptation */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video section top padding for mobile */
  .page-login__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}