/* style/login.css */

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

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

.page-login__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-login__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #2AD11F; /* A lighter shade of primary for contrast */
  border: 2px solid #2E7A4E; /* Border */
}

.page-login__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

.page-login__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.page-login__btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

/* 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: 10px 0 60px 0; /* 10px top padding as specified */
  overflow: hidden;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(8, 22, 15, 0.7); /* Darker background from palette with opacity */
  border-radius: 12px;
  margin-top: 80px; /* Offset for content to not overlap with hero image too much */
}

.page-login__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-login__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.page-login__about-section {
  padding: 60px 0;
}

.page-login__card-bg {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  margin: 40px auto;
  padding: 40px 20px;
  max-width: 1200px;
  box-sizing: border-box;
}

/* Why Choose Section */
.page-login__why-choose-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

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

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

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

.page-login__feature-description {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
}

/* Login Guide Section */
.page-login__login-guide-section {
  padding: 60px 0;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 30px;
}

.page-login__guide-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__guide-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 20px;
  width: 35px;
  height: 35px;
  background-color: #2AD16F;
  color: #08160F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.page-login__guide-step-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-login__troubleshoot-item {
  background-color: #11271B; /* Card B G */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__troubleshoot-heading {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

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

.page-login__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__security-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  border-left: 5px solid #2AD16F;
}

.page-login__security-item strong {
  color: #F2FFF6; /* Text Main */
}

/* Features After Login Section */
.page-login__features-after-login {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-login__card {
  background-color: #11271B; /* Card B G */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-login__card-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__card-description {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__card-btn {
  margin-top: auto;
  width: 100%;
}

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

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

.page-login__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card B G */
  border-bottom: 1px solid transparent; /* default */
  transition: all 0.3s ease;
}

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

.page-login__faq-question:hover {
  background-color: #1E3A2A; /* Divider for hover effect */
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2AD16F;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

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

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

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

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0A4B2C 0%, #11A84E 100%); /* Deep Green to Main Color */
  margin-top: 40px;
  border-radius: 12px;
  margin-left: 20px;
  margin-right: 20px;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__text-block {
  color: #F2FFF6; /* Text Main */
}

/* Images and Videos */
.page-login img,
.page-login video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-login__main-title {
    font-size: 36px;
  }

  .page-login__hero-description {
    font-size: 16px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 15px;
  }

  .page-login__hero-content {
    padding: 30px 15px;
    margin-top: 60px;
  }

  .page-login__feature-grid,
  .page-login__feature-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__guide-item {
    padding-left: 60px;
  }

  .page-login__guide-item::before {
    left: 15px;
    top: 18px;
  }

  .page-login__card-bg {
    margin: 20px auto;
    padding: 30px 15px;
  }

  .page-login__cta-section {
    padding: 50px 15px;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Force image/video responsiveness */
  .page-login img,
  .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;
  }

  .page-login__feature-icon,
  .page-login__content-image,
  .page-login__card-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure content images are not too small in content areas */
  .page-login__content-area img,
  .page-login__feature-item img,
  .page-login__card img {
    width: 100%; /* Ensures it fills container */
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum display size */
    min-height: 200px; /* Minimum display size */
  }

  /* All containers that hold images/buttons/videos */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .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;
  }
}

/* Desktop specific for video container width */
.page-login__video-container {
  width: 100%; /* Ensure width is 100% on desktop too */
  max-width: 1200px; /* Max width constraint */
}

/* WCAG AA Contrast Safety */
.page-login__dark-bg {
  color: #ffffff;
  background: #11A84E;
}

.page-login__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-login__medium-bg {
  color: #000000;
  background: #22C768;
}

.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}