:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-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;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Body background from custom palette */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 50px;
  overflow: hidden; /* Prevent content overflow */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Max height for hero image */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, will be contain on mobile */
  filter: brightness(0.7); /* Slightly darken image for text readability */
  min-width: 200px;
  min-height: 200px;
}

.page-login__hero-content {
  position: relative; /* Not absolute, part of document flow */
  z-index: 2;
  margin-top: 30px; /* Space after image */
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login__login-form-container {
  background: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  margin: 30px auto 0;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 5px;
  background-color: var(--deep-green-color, #0A4B2C); /* Deep Green */
  color: var(--text-main-color, #F2FFF6);
  font-size: 1rem;
  box-sizing: border-box;
}
.page-login__form-input::placeholder {
  color: var(--text-secondary-color, #A7D9B8);
  opacity: 0.7;
}
.page-login__form-input:focus {
  outline: none;
  border-color: var(--glow-color, #57E38D);
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--main-color, #11A84E); /* Checkbox color */
}

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

.page-login__forgot-password-link {
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--glow-color, #57E38D);
}

.page-login__btn-submit {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%)); /* Button gradient */
  color: var(--text-main-color, #F2FFF6);
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-login__register-text {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login__register-link {
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--glow-color, #57E38D);
}

/* Sections */
.page-login__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #F2FFF6);
}

.page-login__text-block {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
  padding: 60px 0;
}
.page-login__light-bg {
  background-color: #f9f9f9; /* Lighter background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}
.page-login__dark-text {
  color: #333333; /* For elements within light-bg sections */
}

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

.page-login__benefit-card {
  background: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color, #F2FFF6);
}

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

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too wide */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-login__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color, #F2C14E);
}

.page-login__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Security Section */
.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__security-content .page-login__text-block {
  text-align: left;
  margin-bottom: 0;
  flex: 1;
  color: #333333; /* Dark text for light background */
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-login__step-card {
  background: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
}

.page-login__step-card .page-login__card-title {
  color: var(--glow-color, #57E38D);
}

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

.page-login__troubleshoot-text {
  margin-top: 40px;
  font-style: italic;
  color: var(--text-secondary-color, #A7D9B8);
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text for light background */
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-login__faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555; /* Darker grey for answer text */
  text-align: left;
}

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

.page-login__cta-section .page-login__section-title {
  color: var(--text-main-color, #F2FFF6);
}

.page-login__cta-section .page-login__text-block {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: var(--text-main-color, #F2FFF6);
  border: none;
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-login__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background-color: rgba(242, 193, 78, 0.1);
}

/* No CSS filters for images */
.page-login img {
  filter: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 15px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-login__description {
    font-size: 1rem;
  }
  .page-login__login-form-container {
    padding: 25px;
  }
  .page-login__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-login__benefits-grid,
  .page-login__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-content .page-login__text-block {
    text-align: center;
  }
  .page-login__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-login__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-login__hero-section {
    padding-bottom: 30px;
    padding-top: 10px; /* Specific small top padding for mobile */
  }
  .page-login__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    filter: brightness(0.8); /* Slightly less dark for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-content {
    margin-top: 20px;
    padding: 15px;
    background: rgba(17, 39, 27, 0.9);
  }
  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-login__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-login__login-form-container {
    padding: 20px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__btn-submit {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password-link {
    margin-top: 5px;
  }

  /* Section Titles & Text Blocks */
  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-login__text-block {
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left; /* Align text left on mobile for readability */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

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

  /* Benefits Grid & Guide Steps */
  .page-login__benefits-grid,
  .page-login__guide-steps {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__step-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__benefit-icon {
    max-width: 150px; /* Smaller icons for mobile cards */
  }

  /* Security Section */
  .page-login__security-content {
    gap: 20px;
    flex-direction: column;
  }
  .page-login__security-content .page-login__text-block {
    text-align: center;
  }
  .page-login__security-image-wrapper {
    margin-top: 20px;
  }

  /* FAQ */
  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }
  details.page-login__faq-item .page-login__faq-answer { padding: 0 15px 15px; }

  /* CTA Section */
  .page-login__cta-section {
    padding: 50px 0;
  }
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1rem;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}