/* style/login.css */

/* General styles for the login page content */
.page-login {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__section-title {
  color: #F2FFF6; /* Main text color for titles */
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F, #13994A); /* Gradient for title underline */
  border-radius: 2px;
}

.page-login__text-block {
  margin-bottom: 20px;
  color: #F2FFF6; /* Ensure text is light on dark background */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Ensure background matches */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit height to prevent image from being too tall */
}

.page-login__hero-content {
  position: relative; /* Not absolute, to flow below image */
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  background-color: #08160F; /* Ensure background matches */
  color: #F2FFF6;
}

.page-login__main-title {
  font-size: 3em;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

.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;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #F2FFF6; /* Light text on dark button */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow effect */
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Brand color text */
  border: 2px solid #2AD16F; /* Border in brand color */
}

.page-login__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Dark text on brand color background */
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

/* Introduction Section */
.page-login__introduction-section {
  background-color: #08160F; /* Dark background */
  color: #F2FFF6;
  padding: 60px 0;
}

/* Guide Section */
.page-login__guide-section {
  background-color: #11271B; /* Card background color as section background */
  color: #F2FFF6;
  padding: 60px 0;
}

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

.page-login__step-card,
.page-login__troubleshoot-card,
.page-login__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__card-title {
  color: #F2FFF6;
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-login__card-description {
  color: #A7D9B8; /* Secondary text color */
}

.page-login__step-image {
  width: 100%;
  max-width: 400px; /* Limit image width within card */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Min image size */
  min-width: 200px; /* Min image size */
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #08160F; /* Dark background */
  color: #F2FFF6;
  padding: 60px 0;
}

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

.page-login__list-item {
  background-color: #11271B; /* Card BG for list items */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: #F2FFF6;
}

.page-login__list-item::before {
  content: '✓';
  color: #2AD16F; /* Brand color checkmark */
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
}

.page-login__list-item strong {
  color: #F2FFF6;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  background-color: #11271B; /* Card background color as section background */
  color: #F2FFF6;
  padding: 60px 0;
}

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

/* Security Section */
.page-login__security-section {
  background-color: #08160F; /* Dark background */
  color: #F2FFF6;
  padding: 60px 0;
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Min image size */
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
  color: #F2FFF6;
}

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

.page-login__security-tips-list .page-login__list-item {
  background-color: transparent;
  border: none;
  padding: 10px 0;
  margin-bottom: 5px;
}

.page-login__security-tips-list .page-login__list-item::before {
  content: '🔒'; /* Lock emoji for security tips */
  color: #F2C14E; /* Gold color for emoji */
  margin-right: 10px;
  font-size: 1em;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #11271B; /* Card background color as section background */
  color: #F2FFF6;
  padding: 60px 0;
}

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

.page-login__faq-item {
  background-color: #08160F; /* Darker background for FAQ items */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  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: bold;
  color: #F2FFF6;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* Remove default marker for details summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

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

/* Conclusion Section */
.page-login__conclusion-section {
  background-color: #08160F; /* Dark background */
  color: #F2FFF6;
  padding: 60px 0;
  text-align: center;
}

/* Links */
.page-login a {
  color: #2AD16F; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login a:hover {
  color: #57E38D; /* Lighter brand color on hover */
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-login__container {
    padding: 20px 15px; /* Adjust padding for mobile */
  }

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

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

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__steps-grid,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-image {
    max-width: 100%;
  }

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__introduction-section,
  .page-login__guide-section,
  .page-login__benefits-section,
  .page-login__troubleshoot-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__conclusion-section,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Specific padding adjustment for hero section to prevent double padding */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small padding, body handles header offset */
  }

  /* Ensure image elements themselves do not cause overflow */
  .page-login__hero-image,
  .page-login__step-image,
  .page-login__security-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
  }

  /* Text size adjustments for better mobile readability */
  .page-login__text-block,
  .page-login__card-description,
  .page-login__list-item {
    font-size: 0.95em;
  }

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

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