.page-login {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  color: var(--text-main); /* Default text color for the page, assuming dark body background */
  background-color: var(--bg-color); /* Ensure content section has a background if body is transparent or different */
  font-family: 'Arial', sans-serif; /* Placeholder, should be defined in shared.css */
  line-height: 1.6;
}

/* Base styles for all images to prevent small icons and ensure responsiveness */
.page-login img {
  display: block; /* Prevents extra space below images */
  max-width: 100%;
  height: auto;
  object-fit: cover; /* Ensures images cover their area without distortion */
  border-radius: 8px; /* Soften edges */
  transition: transform 0.3s ease;
}

.page-login img:hover {
  transform: scale(1.02);
}

/* Ensure no filter property is used on images */
.page-login img[style*="filter"] {
  filter: none !important; /* Override any potential inline filter styles */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--bg-color);
  color: var(--text-main);
  text-align: center;
}

.page-login__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto; /* Ensures aspect ratio is maintained */
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
  border-radius: 0; /* Hero image usually full width, no border-radius */
}

.page-login__hero-content {
  position: absolute; /* Position content over image */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  width: 90%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-login__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-login__login-form-wrapper {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--deep-green);
  color: var(--text-main);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  outline: none;
  border-color: var(--glow-color);
  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 var(--border-color);
  border-radius: 4px;
  background-color: var(--deep-green);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.page-login__checkbox:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-login__checkbox:checked::before {
  content: '✔';
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

.page-login__forgot-password-link {
  color: var(--gold-color);
  text-decoration: none;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1em;
}

.page-login__register-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__section-title {
  font-size: 2.2em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
  position: relative;
  padding-bottom: 10px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.page-login__video-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
  box-sizing: border-box;
}

.page-login__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for the video player */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-login__benefits-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--card-bg);
  box-sizing: border-box;
  text-align: center;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.page-login__benefit-card {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure full width of card */
  max-width: 200px; /* Max size for the icon image */
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 8px var(--glow-color)); /* Add a subtle glow */
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-login__guide-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--bg-color);
  box-sizing: border-box;
}

.page-login__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.page-login__guide-text {
  flex: 2;
  min-width: 300px;
  color: var(--text-main);
  font-size: 1.05em;
}

.page-login__guide-text p {
  margin-bottom: 20px;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-login__guide-list li {
  background-color: var(--deep-green);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.page-login__guide-list li strong {
  color: var(--gold-color);
}

.page-login__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__guide-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__security-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--card-bg);
  box-sizing: border-box;
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__security-list {
  flex: 2;
  min-width: 300px;
  list-style: none;
  padding: 0;
  color: var(--text-main);
}

.page-login__security-list li {
  background-color: var(--deep-green);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 5px solid var(--gold-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.page-login__security-list li strong {
  color: var(--text-main);
}

.page-login__cta-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--bg-color);
  text-align: center;
  box-sizing: border-box;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 25px;
  background-color: var(--deep-green);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--gold-color);
  transform: translateY(-2px);
}

.page-login__faq-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--card-bg);
  box-sizing: border-box;
}

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

.page-login__faq-item {
  background-color: var(--deep-green);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* Remove default marker */
}

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

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

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

.page-login__faq-item[open] summary .page-login__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-login__faq-answer {
  padding: 20px 25px;
  background-color: var(--deep-green);
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.7;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
}

@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-content {
    padding: 20px;
  }
  .page-login__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__guide-content,
  .page-login__security-content {
    flex-direction: column;
    align-items: center;
  }
  .page-login__guide-text,
  .page-login__security-list {
    min-width: unset;
    width: 100%;
  }
  .page-login__guide-image-wrapper,
  .page-login__security-image {
    min-width: unset;
    width: 100%;
    max-width: 600px; /* Limit image width on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login__hero-content {
    position: static; /* Change from absolute to static on mobile */
    transform: none; /* Remove transform */
    padding: 20px 15px;
    width: 100%;
    border-radius: 0; /* No border-radius at bottom */
    background: var(--card-bg); /* Solid background on mobile */
  }
  .page-login__hero-section {
    padding-bottom: 30px; /* Space below content on mobile */
    min-height: auto; /* Allow height to adjust */
    align-items: center; /* Center align items */
  }
  .page-login__hero-image-wrapper {
    max-height: 250px; /* Smaller hero image on mobile */
  }
  .page-login__hero-image {
    filter: brightness(0.8); /* Slightly less dark */
  }
  .page-login__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 100%;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    padding: 0 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Images responsive styles */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-image-wrapper, /* Added for hero image wrapper */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-wrapper,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__cta-section,
  .page-login__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Video responsive styles */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
  }
  .page-login__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
    overflow: hidden !important;
  }

  /* FAQ responsive styles */
  .page-login__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
}