/* style/login.css */
.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with shared body background */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  overflow: hidden;
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  margin: 0 auto;
}

.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;
  color: #ffffff;
  font-weight: bold;
}

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

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

.page-login__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #ffffff; /* Ensuring WCAG AA contrast */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-login__form-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.page-login__link-forgot,
.page-login__link-register {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link-forgot:hover,
.page-login__link-register:hover {
  color: #00a04a;
  text-decoration: underline;
}

.page-login__section {
  padding: 80px 0;
  position: relative;
}

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

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

.page-login__dark-text {
  color: #333333;
}

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

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

.page-login__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: inherit;
}

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

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

.page-login__feature-item:hover,
.page-login__troubleshoot-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.page-login__feature-title,
.page-login__troubleshoot-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__feature-description,
.page-login__troubleshoot-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-login__guide-step {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__guide-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color for text */
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.page-login__security-list {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__list-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-login__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__faq-list {
  margin-top: 40px;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.6;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 30px;
}

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

.page-login__cta-section {
  padding: 100px 0;
  text-align: center;
}

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

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

.page-login__cta-button {
  min-width: 200px;
  box-sizing: border-box;
}

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

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

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

  .page-login__security-image-wrapper,
  .page-login__security-list {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 80vh;
  }

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

  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__login-form-wrapper {
    padding: 25px;
  }

  .page-login__section {
    padding: 60px 0;
  }

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

  .page-login__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__features-grid,
  .page-login__guide-steps-grid,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-title,
  .page-login__guide-title,
  .page-login__troubleshoot-title {
    font-size: 1.5em;
  }

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

  .page-login__faq-title {
    font-size: 1.1em;
  }

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

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

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

  .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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-content,
  .page-login__login-form-wrapper,
  .page-login__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}