:root {
  /* Custom Color Palette */
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient-start: #2AD16F;
  --button-gradient-end: #13994A;
  --card-bg-color: #11271B;
  --bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body background color: #08160F (Deep Green) from custom palette, which is dark.
Therefore, all main text content should be light, e.g., #F2FFF6 (Text Main). */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page, light text for dark background */
  background-color: var(--bg-color, #08160F); /* Ensure consistency with body background */
}

/* General typography for better contrast */
.page-login h1,
.page-login h2,
.page-login h3,
.page-login h4,
.page-login h5,
.page-login h6 {
  color: var(--text-main-color, #F2FFF6);
  font-weight: bold;
}

.page-login p {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login a {
  color: var(--primary-color, #11A84E);
  text-decoration: none;
}
.page-login a:hover {
  text-decoration: underline;
}

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

.page-login__section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  color: var(--text-main-color, #F2FFF6);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-login__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 font size */
  margin-bottom: 20px;
  color: var(--text-main-color, #F2FFF6);
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, var(--button-gradient-start, #2AD16F) 0%, var(--button-gradient-end, #13994A) 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--primary-color, #11A84E);
}

.page-login__btn-secondary:hover {
  background: var(--primary-color, #11A84E);
  color: #ffffff;
}

.page-login__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Why Login Section */
.page-login__why-login-section {
  padding: 80px 0;
  background-color: var(--bg-color, #08160F);
}

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

.page-login__feature-card {
  background-color: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
}

.page-login__feature-description {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Login Guide Section */
.page-login__login-guide-section {
  padding: 80px 0;
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-login__guide-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.page-login__step-card {
  background-color: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.page-login__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color, #11A84E);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-login__step-description {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login__guide-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-login__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: var(--bg-color, #08160F);
}

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

.page-login__trouble-item {
  background-color: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__trouble-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-login__trouble-description {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Security Tips Section */
.page-login__security-tips-section {
  padding: 80px 0;
  background-color: var(--deep-green-color, #0A4B2C);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  max-width: 800px;
  width: 100%;
}

.page-login__security-item {
  background-color: var(--card-bg-color, #11271B);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--text-main-color, #F2FFF6);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__security-item::before {
  content: '✓';
  color: var(--glow-color, #57E38D);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-login__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--bg-color, #08160F);
}

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

.page-login__faq-item {
  background-color: var(--card-bg-color, #11271B);
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1); /* Lighter hover for dark background */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #11A84E);
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-login__faq-item summary {
  list-style: none;
}

/* Final CTA Section */
.page-login__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-login__final-cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Responsive styles for images, videos, buttons */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  /* All images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers for images, videos, buttons */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content, /* Specific content wrappers */
  .page-login__guide-image-wrapper,
  .page-login__security-list,
  .page-login__faq-list,
  .page-login__final-cta-section .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video specific styles - if any */
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-login__video-section {
    padding-top: 10px !important; 
  }

  /* All buttons */
  .page-login__cta-button,
  .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; /* Ensure full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Add padding to buttons themselves for better touch */
    padding-right: 15px !important;
  }

  /* Button containers */
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important; /* Space between stacked buttons */
  }

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__trouble-points {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }

  .page-login__feature-card,
  .page-login__step-card,
  .page-login__trouble-item {
    margin-bottom: 20px;
  }
}