/* style/login.css */

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  background: #017439; /* Brand primary color for dark background */
  color: #ffffff; /* Light text on dark background */
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-login__hero-content {
  max-width: 700px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

/* Login Card */
.page-login__login-card {
  background: #ffffff; /* White background for the form card */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  text-align: left;
  color: #333333; /* Dark text on white background */
}

.page-login__login-title {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
  color: #017439;
}

.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;
  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__checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  color: #333333;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
  background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
  background-color: #017439;
}

.page-login__checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

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

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

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

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

/* Benefits Section */
.page-login__benefits-section {
  background: #ffffff; /* Light background */
  padding: 60px 0;
  color: #333333; /* Dark text on light background */
}

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

.page-login__benefit-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 200px; /* Display size */
  height: 200px; /* Display size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Example: slightly rounded corners */
}

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

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

.page-login__additional-info {
  text-align: center;
  margin-top: 50px;
  font-style: italic;
  color: #666666;
}

/* Security Info Section */
.page-login__security-info {
  background: #017439; /* Dark background */
  color: #ffffff; /* Light text on dark background */
  padding: 60px 0;
}

.page-login__security-info .page-login__section-title,
.page-login__security-info .page-login__section-description {
  color: #ffffff;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
}

.page-login__security-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

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

.page-login__security-link:hover {
  color: #ffffff;
}

.page-login__security-summary {
  text-align: center;
  margin-top: 50px;
  font-style: italic;
  color: #f0f0f0;
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-login__btn-register {
  display: inline-block;
  padding: 14px 30px;
  background-color: #C30808; /* Custom register button color */
  color: #FFFF00; /* Custom register button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

/* Troubleshooting/FAQ Section */
.page-login__troubleshooting-section {
  background: #ffffff; /* Light background */
  padding: 60px 0;
  color: #333333; /* Dark text on light background */
}

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

.page-login__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  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.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439;
  user-select: none;
  list-style: none; /* For details tag */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-login__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  color: #555555;
  font-size: 1em;
}

.page-login__faq-link {
  color: #017439;
  text-decoration: underline;
}

.page-login__faq-link:hover {
  text-decoration: none;
}

.page-login__contact-support {
  text-align: center;
  margin-top: 50px;
}

.page-login__contact-text {
  font-size: 1.1em;
  color: #555555;
}

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

.page-login__contact-link:hover {
  text-decoration: none;
}

/* Call to Action Section */
.page-login__cta-section {
  background: #017439; /* Dark background */
  color: #ffffff; /* Light text on dark background */
  padding: 60px 0;
  text-align: center;
}

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

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom primary button color */
  color: #FFFF00; /* Custom primary button font color */
  border: 2px solid transparent;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

  .page-login__benefit-icon {
    width: 150px; /* Adjust icon size for mobile */
    height: 150px; /* Adjust icon size for mobile */
  }

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .page-login__btn-login,
  .page-login__btn-register,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

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

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

  /* Content containers for mobile overflow */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-card,
  .page-login__benefits-section,
  .page-login__security-info,
  .page-login__troubleshooting-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-x: hidden !important;
  }
  
  .page-login__hero-section .page-login__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__login-card {
    margin-left: 15px;
    margin-right: 15px;
  }
}

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

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

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