/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  background-color: var(--bg-color, #08160F); /* Default to the custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for form */
  text-align: center;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green as a base */
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); /* Dark overlay for text readability */
}

.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: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-top: 40px; /* Space from top */
}

.page-login__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-login__login-form-container {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-login__form-group {
  margin-bottom: 20px;
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Main text color */
  font-weight: 600;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 5px;
  background-color: #08160F; /* Dark background for input */
  color: #F2FFF6; /* Light text for input */
  font-size: 1rem;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Secondary text color for placeholder */
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #11A84E; /* Primary color for checkbox */
}

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

.page-login__forgot-password {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #F2C14E; /* Gold color on hover */
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Light text for button */
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Inverted gradient on hover */
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #11A84E; /* Primary color border */
  border-radius: 5px;
  background-color: transparent;
  color: #11A84E; /* Primary color for text */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6;
}

.page-login__login-button {
  margin-bottom: 20px;
}

.page-login__register-prompt {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #1E3A2A; /* Divider color */
  text-align: center;
}

.page-login__register-prompt p {
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 15px;
}

/* General Section Styles */
.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 1.05rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

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

.page-login__benefit-item {
  background-color: #08160F; /* Background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(87, 227, 141, 0.6)); /* Glow color for icons */
}

.page-login__benefit-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

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

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

.page-login__step-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto 20px;
  background-color: #11A84E; /* Primary color */
  color: #F2FFF6;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

.page-login__step-title {
  font-size: 1.3rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

.page-login__troubleshooting {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 30px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__troubleshooting-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  text-align: center;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-login__troubleshooting-list li {
  margin-bottom: 15px;
  color: #A7D9B8; /* Secondary text color */
  font-size: 1rem;
  position: relative;
  padding-left: 25px;
}

.page-login__troubleshooting-list li strong {
  color: #F2FFF6; /* Main text color for strong text */
}

.page-login__troubleshooting-list li::before {
  content: '👉'; /* Unicode arrow */
  position: absolute;
  left: 0;
  color: #57E38D; /* Glow color */
}

/* Security Section */
.page-login__security-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

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

.page-login__security-item {
  background-color: #08160F; /* Background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__security-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(87, 227, 141, 0.6)); /* Glow color for icons */
}

.page-login__security-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__security-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

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

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

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

.page-login__faq-item[open] > .page-login__faq-question {
  background-color: #0A4B2C; /* Deep Green on open */
}

.page-login__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover */
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow color */
}

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

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

/* Call to Action Section */
.page-login__cta-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
  text-align: center;
}

.page-login__cta-content {
  padding: 80px 20px;
}

.page-login__cta-button {
  max-width: 300px;
  margin: 40px auto 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: 20px;
    padding: 15px;
  }
  .page-login__login-form-container {
    padding: 25px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__benefits-grid,
  .page-login__steps-container,
  .page-login__security-grid,
  .page-login__faq-list,
  .page-login__login-form-container,
  .page-login__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific padding for sections */
  .page-login__hero-section {
    padding: 10px 15px 40px !important; /* Adjust hero padding */
  }

  .page-login__content-area {
    padding: 40px 15px !important;
  }

  /* Buttons responsive */
  .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 !important;
    padding-right: 15px !important;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__forgot-password {
    align-self: flex-end;
  }

  .page-login__benefits-grid,
  .page-login__steps-container,
  .page-login__security-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-login__troubleshooting-list li {
    padding-left: 0; /* Remove padding-left for mobile list items */
    text-align: left;
  }
  .page-login__troubleshooting-list li::before {
    position: static; /* Reset position for mobile */
    margin-right: 8px;
    display: inline-block;
  }

  /* FAQ items for mobile */
  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
  }

  .page-login__hero-content {
    margin-top: 10px;
    padding: 10px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

  .page-login__form-input {
    width: calc(100% - 20px); /* Adjust input width */
  }

  .page-login__cta-content {
    padding: 60px 15px;
  }

  .page-login__section-description {
    font-size: 0.95rem;
  }
}