.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color, assuming dark body bg */
  background-color: var(--background, #08160F); /* Default background */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: var(--text-main, #F2FFF6);
  background-color: var(--background, #08160F);
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly dim the background image */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-login__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-login__login-form-wrapper {
  background-color: var(--card-b-g, #11271B);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--border, #2E7A4E);
}

.page-login__form-title {
  font-size: 1.8em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 25px;
  text-align: center;
}

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

.page-login__input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
}

.page-login__input-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent input background */
  color: var(--text-main, #F2FFF6);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input-field::placeholder {
  color: rgba(167, 217, 184, 0.6); /* Lighter placeholder text */
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border, #2E7A4E);
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.page-login__checkbox:checked {
  background-color: var(--main-color, #11A84E);
  border-color: var(--main-color, #11A84E);
}

.page-login__checkbox:checked::before {
  content: '✓';
  color: var(--text-main, #F2FFF6);
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

.page-login__forgot-password {
  color: var(--aux-color, #22C768);
  text-decoration: none;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

.page-login__submit-link {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__register-link {
  color: var(--aux-color, #22C768);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__benefits-section,
.page-login__troubleshooting-section,
.page-login__security-info,
.page-login__faq-section,
.page-login__final-cta {
  padding: 60px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-login__dark-section {
  background-color: var(--card-b-g, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-main, #F2FFF6);
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary, #A7D9B8);
}

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

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

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-login__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-login__list-item {
  background-color: var(--card-b-g, #11271B);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border, #2E7A4E);
}

.page-login__list-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-login__list-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

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

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

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

.page-login__feature-item {
  background-color: var(--background, #08160F);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-login__feature-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-login__faq-item {
  background-color: var(--card-b-g, #11271B);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
  list-style: none;
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--aux-color, #22C768);
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

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

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

  .page-login__benefit-grid,
  .page-login__security-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

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

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

  .page-login__login-form-wrapper {
    max-width: 100%;
    padding: 25px;
  }

  .page-login__form-title {
    font-size: 1.5em;
  }

  .page-login__submit-button {
    font-size: 1em;
    padding: 12px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login__submit-link {
    padding: 0 !important; /* Remove padding from link if button has it */
  }

  .page-login__forgot-password {
    font-size: 0.85em;
  }

  .page-login__checkbox-label {
    font-size: 0.85em;
  }

  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__security-info,
  .page-login__faq-section,
  .page-login__registration-cta,
  .page-login__final-cta {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

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

  .page-login__list-title {
    font-size: 1.2em;
  }

  .page-login__list-text {
    font-size: 0.9em;
  }

  .page-login__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-login__faq-toggle {
    font-size: 1.3em;
  }

  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Mobile image/video/button responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image {
    max-width: 100% !important;
    height: 100% !important; /* Keep height 100% for cover effect */
    width: 100% !important;
    object-fit: cover !important;
  }

  .page-login__section, 
  .page-login__card, 
  .page-login__container, 
  .page-login__login-form-wrapper, 
  .page-login__benefit-card, 
  .page-login__list-item, 
  .page-login__feature-item, 
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}