/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Matches body background */
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background-color: #FFFFFF;
  color: #333333;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #017439; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-login__login-form-wrapper {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.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: calc(100% - 20px);
  padding: 12px 10px;
  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: 20px;
  font-size: 0.9em;
}

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

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

.page-login__remember-me {
  color: #555;
}

.page-login__btn-login {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a30606;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
  color: #555;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color for dark background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: #ffffff; /* White background for card */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__card-text {
  font-size: 1em;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-login__security-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__security-content {
  flex: 1;
  min-width: 300px;
}

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

.page-login__security-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-login__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 15px;
  background-color: #017439; /* Icon color */
  -webkit-mask-size: cover;
  mask-size: cover;
}

.page-login__icon--encryption {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7C17.93 16.59 15.08 20.38 12 21.93V12h-7V5.69l7-3.11v9.41z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7C17.93 16.59 15.08 20.38 12 21.93V12h-7V5.69l7-3.11v9.41z"/></svg>');
}

.page-login__icon--firewall {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21 11H3v2h18v-2zm-9-8H3v2h9V3zm9 8h-9v2h9v-2zm-9 4H3v2h9v-2zm9 4h-9v2h9v-2z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21 11H3v2h18v-2zm-9-8H3v2h9V3zm9 8h-9v2h9v-2zm-9 4H3v2h9v-2zm9 4h-9v2h9v-2z"/></svg>');
}

.page-login__icon--privacy {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.page-login__icon--audit {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

.page-login__btn-primary {
  background: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: block;
}

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

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

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-login__faq-item[open] {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6ffe6; /* Lighter shade of primary for summary background */
  border-bottom: 1px solid #eee;
  user-select: none;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #ddd;
}

.page-login__faq-question::-webkit-details-marker, 
.page-login__faq-question::marker {
  display: none;
}

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

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

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color for dark background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
}

.page-login__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-login__btn--register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
}

.page-login__btn--register:hover {
  background-color: #a30606;
}

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

.page-login__btn--download:hover {
  background-color: #f0f0f0;
}

.page-login__cta-image {
  margin-top: 50px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    min-height: auto;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__hero-section .page-login__container,
  .page-login__security-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content,
  .page-login__security-content {
    order: 2;
  }

  .page-login__hero-image-wrapper,
  .page-login__security-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

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

  .page-login__intro-text,
  .page-login__section-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-login__login-form-wrapper {
    max-width: 100%;
    padding: 20px;
  }

  .page-login__btn-login,
  .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 {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-login__benefit-card {
    padding: 20px;
  }

  .page-login__security-list {
    padding: 0 15px;
  }

  .page-login__faq-list {
    padding: 0 15px;
  }

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

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

  /* Ensure all images are responsive and do not overflow */
  .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-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}