/* style/login.css */

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

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

.page-login__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-login__main-title {
  font-size: 3.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title on dark background */
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-login__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-login__intro-text,
.page-login__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: inherit;
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-login {
  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;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container */
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__btn-secondary {
  background-color: #017439;
  color: #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: #005a2e;
}

.page-login__btn-login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  width: 100%;
  padding: 12px 20px;
}

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

/* Hero Section */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

/* Login Form Section */
.page-login__form-section {
  text-align: center;
}

.page-login__login-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto 60px auto;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

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

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

.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: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  text-align: center;
}

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

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

.page-login__register-prompt a {
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-login__list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 15px;
  color: #555;
}

.page-login__list-item {
  margin-bottom: 10px;
  font-size: 1em;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: inherit;
}

.page-login__card-description {
  font-size: 1em;
  line-height: 1.7;
  color: inherit;
}

/* Mobile Section */
.page-login__mobile-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__mobile-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

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

.page-login__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.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);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #e0e0e0;
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #e0e0e0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

.page-login__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* Details element native marker hiding */
.page-login__faq-item > summary {
  list-style: none;
}
.page-login__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Conclusion Section */
.page-login__conclusion-section {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__sub-title {
    font-size: 1.6em;
  }
  .page-login__intro-text,
  .page-login__paragraph {
    font-size: 1em;
  }
}

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

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

  .page-login__dark-section,
  .page-login__light-bg {
    padding: 60px 0;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-login__sub-title {
    font-size: 1.4em;
  }

  .page-login__intro-text,
  .page-login__paragraph {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-login,
  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

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

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

  .page-login__mobile-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__mobile-text,
  .page-login__mobile-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-login img,
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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