.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439; /* Brand color border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9); /* Light background for input */
  color: #333333; /* Dark text for input */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #666666;
}

.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;
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #017439; /* Brand color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #00b359; /* Lighter shade of brand color */
}

.page-login__btn-login {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom login color */
  color: #ffffff; /* Override #FFFF00 for WCAG AA contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* For mobile button text wrapping */
  word-wrap: break-word; /* For mobile button text wrapping */
}

.page-login__btn-login:hover {
  background-color: #a30606; /* Darker shade */
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #017439; /* Brand color for link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #00b359;
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-login__benefits-section,
.page-login__guide-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-login__security-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-login__why-choose-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

/* Benefits Grid */
.page-login__benefits-grid,
.page-login__security-grid,
.page-login__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__benefit-item,
.page-login__security-item,
.page-login__why-choose-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__benefit-image,
.page-login__security-image,
.page-login__why-choose-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__benefit-title,
.page-login__security-title,
.page-login__why-choose-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for sub-titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-section .page-login__security-title {
  color: #ffffff; /* White title on dark green background */
}

.page-login__benefit-text,
.page-login__security-text,
.page-login__why-choose-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide List */
.page-login__guide-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-login__guide-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px solid #017439; /* Brand color highlight */
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-login__guide-item strong {
  color: #ffffff;
}

.page-login__guide-item a {
  color: #017439;
  text-decoration: none;
}

.page-login__guide-item a:hover {
  text-decoration: underline;
}

.page-login__guide-actions {
  max-width: 800px;
  margin: 50px auto 0 auto;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
}

.page-login__guide-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__guide-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 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: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439; /* Brand color for toggle */
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px 20px 25px;
}

.page-login__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-login__cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.page-login__btn-register {
  padding: 15px 30px;
  background-color: #C30808; /* Custom register color */
  color: #ffffff; /* Override #FFFF00 for WCAG AA contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* For mobile button text wrapping */
  word-wrap: break-word; /* For mobile button text wrapping */
  display: inline-block;
  text-align: center;
}

.page-login__btn-register:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-login__hero-title {
    font-size: 2.5em;
  }

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

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

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

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

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

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

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__why-choose-section,
  .page-login__cta-section {
    padding: 60px 0;
  }

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

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

  .page-login__benefit-title,
  .page-login__security-title,
  .page-login__why-choose-title {
    font-size: 1.3em;
  }

  .page-login__guide-item {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-login__btn-login,
  .page-login__btn-register {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 10px;
  }

  /* Image/Video responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__why-choose-section,
  .page-login__cta-section,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  
  .page-login__hero-section .page-login__container {
    padding-left: 0;
    padding-right: 0;
  }
}

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

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

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

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

  .page-login__btn-login,
  .page-login__btn-register {
    font-size: 1em;
  }
}