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

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

.page-login__section-title {
  font-size: 2.8em;
  color: #F2C14E; /* Custom Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__link {
  color: #2AD16F; /* Brighter green for links */
  text-decoration: none;
  font-weight: bold;
}

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

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding if body handles header offset */
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px;
}

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

.page-login__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-login__description {
  font-size: 1.2em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 40px;
}

/* -------------------------------------------------------------------------- */
/*                                 Login Form                                 */
/* -------------------------------------------------------------------------- */
.page-login__login-form-wrapper {
  background-color: #11271B; /* Custom Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 0 auto;
}

.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;
  color: #A7D9B8; /* Custom Text Secondary */
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 5px;
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2FFF6; /* Custom Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(167, 217, 184, 0.7);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D; /* Custom Glow */
  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.9em;
}

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

.page-login__checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #2E7A4E; /* Custom Border */
  border-radius: 3px;
  background-color: #0A4B2C; /* Custom Deep Green */
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #2AD16F; /* Button top gradient color */
  border-color: #2AD16F;
}

.page-login__checkbox:checked::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #F2FFF6; /* Custom Text Main */
  font-size: 12px;
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Custom Text Secondary */
  cursor: pointer;
}

.page-login__forgot-password-link {
  color: #A7D9B8; /* Custom Text Secondary */
  text-decoration: none;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__submit-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__register-text {
  text-align: center;
  margin-top: 20px;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-login__register-link {
  color: #2AD16F; /* Brighter green for links */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                               Benefits Section                             */
/* -------------------------------------------------------------------------- */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
}

.page-login__card-bg-section {
  background-color: #11271B; /* Custom Card BG */
  padding: 80px 0;
}

.page-login__light-bg-section {
  background-color: #0A4B2C; /* Deep Green for a lighter contrast */
  color: #F2FFF6; /* Custom Text Main */
  padding: 80px 0;
}

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

.page-login__benefit-item {
  background-color: #08160F; /* Custom Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image height */
}

.page-login__benefit-title {
  font-size: 1.8em;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
  font-weight: 700;
}

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

.page-login__section-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* -------------------------------------------------------------------------- */
/*                            Troubleshooting Section                         */
/* -------------------------------------------------------------------------- */
.page-login__troubleshooting-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  user-select: none;
  list-style: none;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Custom Glow */
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

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

/* -------------------------------------------------------------------------- */
/*                               Mobile App Section                           */
/* -------------------------------------------------------------------------- */
.page-login__mobile-app-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2FFF6; /* Custom Text Main */
}

.page-login__dark-section {
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2FFF6; /* Custom Text Main */
  padding: 80px 0;
}

.page-login__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__mobile-app-text {
  flex: 1;
}

.page-login__mobile-app-text .page-login__section-title,
.page-login__mobile-app-text .page-login__section-description {
  text-align: left;
}

.page-login__mobile-app-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__mobile-app-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  min-height: 200px; /* Minimum image height */
}

.page-login__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 30px;
  transition: background 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* -------------------------------------------------------------------------- */
/*                             Security Section                               */
/* -------------------------------------------------------------------------- */
.page-login__security-commitment-section {
  padding: 80px 0;
}

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

.page-login__security-item {
  background-color: #08160F; /* Custom Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__security-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image height */
}

.page-login__security-title {
  font-size: 1.8em;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* -------------------------------------------------------------------------- */
/*                               CTA Register Section                         */
/* -------------------------------------------------------------------------- */
.page-login__cta-register-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-button--secondary {
  background: #11A84E; /* Main color */
  color: #F2FFF6; /* Custom Text Main */
  border: 2px solid #57E38D; /* Custom Glow */
}

.page-login__cta-button--secondary:hover {
  background: #0A4B2C; /* Deep Green */
  border-color: #2AD16F; /* Button top gradient color */
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Styles                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 0 30px;
  }

  .page-login__mobile-app-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-login__mobile-app-text .page-login__section-title,
  .page-login__mobile-app-text .page-login__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-login__description {
    font-size: 1em;
  }

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

  .page-login__submit-button,
  .page-login__cta-button,
  .page-login__cta-button--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 !important;
    padding-right: 15px !important;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__benefits-section,
  .page-login__card-bg-section,
  .page-login__light-bg-section,
  .page-login__dark-section,
  .page-login__troubleshooting-section,
  .page-login__security-commitment-section,
  .page-login__cta-register-section {
    padding: 60px 0;
  }

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

  .page-login__benefit-item,
  .page-login__security-item {
    padding: 25px;
  }

  .page-login__benefit-item img,
  .page-login__security-item img,
  .page-login__mobile-app-image img,
  .page-login__hero-image img,
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure images are not too small */
  }

  .page-login__container,
  .page-login__login-form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-login__faq-question {
    padding: 18px 20px;
    font-size: 1.1em;
  }

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

  .page-login__mobile-app-text .page-login__section-title,
  .page-login__mobile-app-text .page-login__section-description {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-login__section-title {
    font-size: 1.8em;
  }

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

  .page-login__login-form-wrapper {
    padding: 25px 15px;
  }

  .page-login__form-input {
    padding: 12px;
  }

  .page-login__submit-button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-login__cta-button,
  .page-login__cta-button--secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-login__faq-question {
    font-size: 1em;
  }
}