/* style/login.css */

/* Base styles and container */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Color contrast classes */
.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__feature-title,
.page-login__dark-bg .page-login__feature-text {
  color: #ffffff;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 100px 0;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 1;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
}

.page-login__btn-primary:hover {
  background-color: #a00606;
}

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #017439;
}

.page-login__btn-submit {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  width: 100%;
  margin-top: 20px;
}

.page-login__btn-submit:hover {
  background-color: #a00606;
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-login__form-section .page-login__container {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-login__login-form {
  margin-top: 30px;
}

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

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

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

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

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

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #555555;
}

/* Why Choose Us Section */
.page-login__why-choose-us {
  padding: 80px 0;
}

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

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-10px);
}

.page-login__feature-icon {
  width: 200px; /* Min size requirement */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-login__security-text {
  flex: 1;
}

.page-login__security-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-login__security-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #555555;
}

.page-login__security-list-item::before {
  content: '✔';
  color: #017439;
  margin-right: 10px;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-login__security-paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-login__faq-answer {
  padding: 20px 25px;
  background-color: #f9f9f9;
  color: #333333;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1em;
  line-height: 1.7;
}

.page-login__faq-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.1;
}

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

.page-login__cta-section .page-login__btn-primary {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__security-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__hero-section {
    min-height: 450px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-login__form-section {
    padding: 60px 0;
  }
  .page-login__form-section .page-login__container {
    padding: 30px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
  }
  .page-login__why-choose-us,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-icon {
    width: 200px;
    height: auto;
  }
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    order: -1; /* Image above text on mobile */
  }
  .page-login__security-list-item {
    font-size: 1em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  /* Mobile image specific rules for content area */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__form-background-image,
  .page-login__faq-background-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Containers for images/buttons to prevent overflow */
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__why-choose-us,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__container,
  .page-login__hero-cta-buttons,
  .page-login__login-form,
  .page-login__features-grid,
  .page-login__security-content,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__feature-title {
    font-size: 1.3em;
  }
  .page-login__security-subtitle {
    font-size: 1.5em;
  }
  .page-login__faq-question {
    font-size: 0.95em;
  }
}