/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Assuming a light background from shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  color: #ffffff;
  overflow: hidden;
}

.page-login__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-login__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__form-group {
  margin-bottom: 20px;
  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;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
}

.page-login__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login specific color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-login__form-links {
  margin-top: 20px;
  font-size: 0.95em;
}

.page-login__link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  text-decoration: underline;
  color: #1a7bbd;
}

.page-login__link-separator {
  margin: 0 10px;
  color: #999;
}

/* Features Section */
.page-login__features-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-login__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

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

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__security-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-login__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1em;
  color: #333333;
}

.page-login__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-login__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 12px 30px;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  margin-top: 20px;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__cta-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
}

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

.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;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  font-size: 1.1em;
  background-color: #f0f0f0;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #e5e5e5;
  border-bottom-color: #ddd;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  color: #555555;
  font-size: 0.95em;
}

/* Details element specific styles */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* App Download Section */
.page-login__app-download-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__app-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
  color: #ffffff;
}

.page-login__app-text .page-login__text-block {
  color: #f0f0f0;
}

.page-login__download-button {
  margin-top: 20px;
}

/* Highlight text for keywords */
.highlight-text {
  color: #EA7C07;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-login__hero-content {
    max-width: 600px;
  }
  .page-login__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__security-content,
  .page-login__app-content {
    flex-direction: column;
  }
  .page-login__security-image, .page-login__app-image {
    order: -1; /* Image on top for mobile */
  }
  .page-login__app-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    padding: 40px 15px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-login__form-section,
  .page-login__features-section,
  .page-login__security-section,
  .page-login__cta-section,
  .page-login__faq-section,
  .page-login__app-download-section {
    padding: 30px 0;
  }
  .page-login__container,
  .page-login__form,
  .page-login__feature-card,
  .page-login__security-content,
  .page-login__app-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__feature-image,
  .page-login__security-image,
  .page-login__cta-image,
  .page-login__app-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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__form-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-login__link-separator {
    display: none;
  }
  .page-login__app-text {
    text-align: center;
  }
  .page-login__app-download-section .page-login__btn-primary {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__form {
    padding: 20px;
  }
  .page-login__hero-content {
    padding: 0 10px;
  }
  .page-login__feature-grid {
    gap: 20px;
  }
  .page-login__list-item {
    font-size: 0.9em;
  }
}