/* style/login.css */

/* General body text color for dark background */
.page-login {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-image-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-login__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 1;
  padding: 0 20px;
  max-width: 800px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button,
.page-login__register-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-login__btn-primary,
.page-login__submit-button {
  background-color: #C30808; /* Login/Register Red */
  color: #FFFF00; /* Login/Register Font Yellow */
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-login__btn-secondary,
.page-login__register-link {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover,
.page-login__register-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent light/dark bg */
}

.page-login__text-block {
  font-size: 1.05em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__highlight {
  color: #017439; /* Brand green for highlights in light sections */
  font-weight: 600;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: #333333;
}

.page-login__register-prompt .page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  text-align: center;
}

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card */
  height: auto;
  max-width: 400px; /* Recommended size for content image */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__benefit-description {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__guide-steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-login__step-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 700;
}

.page-login__step-content {
  flex-grow: 1;
}

.page-login__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

.page-login__step-content p {
  color: #555555;
}

.page-login__note-text {
  margin-top: 40px;
  font-style: italic;
  color: #666666;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  text-align: center;
}

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__security-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Recommended size for content image */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__security-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__security-item ul {
  list-style: disc;
  margin-left: 20px;
  color: #f0f0f0;
}

.page-login__security-item li {
  margin-bottom: 8px;
}

.page-login__link {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-login__link:hover {
  color: #fff;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  position: relative;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 15px 20px 20px;
  border-top: 1px solid #eee;
  color: #555555;
  font-size: 1em;
  line-height: 1.6;
}

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

.page-login__cta-register-section .page-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Recommended size for content image */
  border-radius: 10px;
  object-fit: cover;
}

.page-login__cta-content {
  text-align: center;
}

.page-login__cta-content .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-content .page-login__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-login__container,
  .page-login__hero-content {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-login__hero-image-container {
    margin-bottom: 20px;
  }

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

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button,
  .page-login__register-link {
    width: 100% !important; /* Force full width */
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

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

  .page-login__text-block {
    font-size: 0.95em;
  }

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

  .page-login__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-login__step-number {
    margin-bottom: 15px;
  }

  .page-login__step-title {
    font-size: 1.3em;
  }

  /* Force responsive images, videos, and containers */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-login__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-login__cta-register-section .page-login__container {
    flex-direction: column;
  }

  .page-login__cta-image {
    margin-bottom: 20px;
  }
}

/* Specific styling for 'forgot password' link to prevent it from being a full-width button */
.page-login__forgot-password {
  display: inline-block;
  width: auto;
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
  text-align: right;
}