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

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
  max-height: 700px; /* Limit height for aesthetic */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with opacity */
  margin-top: -150px; /* Overlap slightly for design */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
}

.page-login__form-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.page-login__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form {
  max-width: 400px;
  margin: 0 auto 30px auto;
  text-align: left;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 5px;
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #11A84E;
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95rem;
}

.page-login__forgot-password {
  color: #57E38D; /* Custom Glow */
  text-decoration: none;
  font-size: 0.95rem;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* Ensure no underline on anchor */
}

.page-login__btn-primary a {
  color: #F2FFF6; /* Ensure text color for anchor inside button */
  text-decoration: none;
  display: block;
}

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

.page-login__register-prompt {
  margin-top: 30px;
}

.page-login__register-text {
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #57E38D; /* Custom Glow */
  border: 2px solid #57E38D; /* Custom Glow */
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Dark background color for contrast */
}

.page-login__form-image {
  margin-top: 40px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefits-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__benefit-item {
  text-align: left;
}

.page-login__benefit-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-login__benefits-image {
  margin-top: 60px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__security-section .page-login__section-title {
  color: #F2C14E; /* Custom Gold */
}

.page-login__security-section .page-login__section-description {
  color: #A7D9B8; /* Custom Text Secondary */
}

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

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

.page-login__feature-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__security-image {
  margin-top: 60px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__troubleshoot-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__troubleshoot-item {
  text-align: left;
}

.page-login__troubleshoot-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__troubleshoot-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 15px;
}

.page-login__link-text {
  color: #57E38D; /* Custom Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-login__link-text:hover {
  text-decoration: underline;
}

.page-login__faq-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__faq-item {
  text-align: left;
  margin-bottom: 20px;
  cursor: pointer;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  background-color: #0A4B2C; /* Deep Green for summary background */
  border-radius: 8px;
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -khtml-user-select: none;    /* Disable text selection on Konqueror HTML */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on Internet Explorer/Edge */
  user-select: none;           /* Disable text selection on modern browsers */
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question:hover {
  background-color: #13994A; /* Slightly lighter green on hover */
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Custom Gold */
}

.page-login__faq-answer {
  padding: 20px;
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
  background-color: #11271B; /* Custom Card BG */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top: 1px solid #2E7A4E; /* Custom Border */
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding-bottom: 30px;
  }

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

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

  .page-login__description {
    font-size: 0.95rem;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshoot-section,
  .page-login__faq-section {
    padding: 30px 0;
  }

  .page-login__card {
    padding: 25px;
  }

  .page-login__section-title {
    font-size: 1.8rem;
  }

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

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn-primary a {
    padding: 0;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-login__faq-answer {
    padding: 15px;
    font-size: 0.9rem;
  }
}