:root {
  --primary-color: #11A84E;
  --secondary-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;
  --light-bg-color: #f5f5f5; /* Default light background for contrast sections */
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
}

/* General page styling, assuming a dark body background from shared.css */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color); /* Explicitly set the background color */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some horizontal padding for smaller screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
  background: var(--background-color);
  color: var(--text-main-color);
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow for background elements if any */
}

.page-login__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
}

.page-login__main-title {
  font-size: clamp(2em, 5vw, 3em); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color);
  max-width: 800px;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  color: var(--text-secondary-color);
}

/* Login Form */
.page-login__login-form-wrapper {
  background-color: var(--card-bg-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--deep-green-color); /* A slightly lighter dark for input */
  color: var(--text-main-color);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary-color);
}

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

.page-login__forgot-password-link,
.page-login__register-link {
  color: var(--primary-color); /* Link color */
  text-decoration: none;
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  color: var(--text-secondary-color);
}

.page-login__remember-me input {
  margin-right: 8px;
}

/* Buttons */
.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: var(--button-gradient); /* Custom button color */
  color: var(--light-text-color);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
  text-decoration: none; /* For anchor buttons */
  box-sizing: border-box;
}

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

.page-login__register-text {
  margin-top: 20px;
  color: var(--text-secondary-color);
}

/* Section Titles */
.page-login__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main-color); /* Default for dark sections */
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary-color); /* Default for dark sections */
}

/* Benefits Section - Light Background */
.page-login__benefits-section {
  background-color: var(--light-bg-color);
  color: var(--dark-text-color); /* Dark text on light background */
  padding: 60px 20px;
  text-align: center;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
  color: var(--dark-text-color);
}

.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-color: var(--light-text-color); /* White background for light section cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--dark-text-color); /* Dark text on light card background */
}

.page-login__benefit-icon {
  margin-bottom: 20px;
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
}

.page-login__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--dark-text-color);
}

.page-login__card-text {
  font-size: 0.95em;
  color: #555555; /* Slightly lighter dark text */
}

/* Troubleshoot Section - Dark Background (FAQ) */
.page-login__troubleshoot-section {
  background: var(--background-color);
  color: var(--text-main-color);
  padding: 60px 20px;
  text-align: center;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For proper details tag behavior */
}

.page-login__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color);
  background-color: var(--deep-green-color); /* Slightly different dark for summary */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for webkit browsers */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-login__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

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

/* Register CTA Section - Light Background */
.page-login__register-cta-section {
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
  padding: 60px 20px;
  text-align: center;
}

.page-login__register-cta-section .page-login__section-title,
.page-login__register-cta-section .page-login__section-description {
  color: var(--dark-text-color);
}

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

/* About Mot88 Section - Dark Background */
.page-login__about-mot88-section {
  background: var(--background-color);
  color: var(--text-main-color);
  padding: 60px 20px;
  text-align: center;
}

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

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

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

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

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

  .page-login__benefits-section,
  .page-login__troubleshoot-section,
  .page-login__register-cta-section,
  .page-login__about-mot88-section {
    padding: 40px 15px;
  }

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

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

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile responsive images, videos, buttons (mandatory) */
  .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,
  .page-login__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__faq-list,
  .page-login__register-cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__video-section { /* If video existed */
    padding-top: 10px !important;
  }

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

  .page-login__cta-buttons, /* If multiple buttons in a group */
  .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;
    display: flex; /* Ensure flex is applied for wrap to work */
    flex-direction: column; /* Often better for mobile button stacks */
  }

  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
}