/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

/* Color contrast rules */
.page-login__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for content distinction */
  color: #ffffff;
}

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

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-subtitle,
.page-login__light-bg .page-login__feature-title,
.page-login__light-bg .page-login__feature-description,
.page-login__light-bg .page-login__faq-qtext,
.page-login__light-bg .page-login__faq-answer p {
  color: #333333; /* Ensure text within light sections is dark */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

.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.6);
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

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

.page-login__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-login__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b8;
  border-color: #1e87b8;
}

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

.page-login__form-wrapper {
  background-color: #262626; /* Slightly lighter dark for form */
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__form-title {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__form-subtitle {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 30px;
}

.page-login__login-form {
  text-align: left;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.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 #444;
  border-radius: 6px;
  background-color: #333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.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;
  color: #cccccc;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #555;
  border-radius: 4px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #26A9E0;
}

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

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

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

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

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

.page-login__btn-submit {
  width: 100%;
  background-color: #EA7C07;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  padding: 15px 20px;
  border-radius: 8px;
}

.page-login__btn-submit:hover {
  background-color: #c96806;
}

.page-login__register-text {
  margin-top: 30px;
  color: #cccccc;
}

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

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

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

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

.page-login__section-subtitle {
  font-size: 1.2em;
  color: #666666;
  margin-bottom: 50px;
}

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

.page-login__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-login__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Limit height for uniform appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__feature-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* App Download Section */
.page-login__app-download-section {
  padding: 80px 0;
}

.page-login__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

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

.page-login__app-text-content .page-login__section-title {
  color: #ffffff;
}

.page-login__app-text-content .page-login__section-subtitle {
  color: #cccccc;
}

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

.page-login__app-benefits li {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-login__app-benefit-icon {
  color: #26A9E0;
  font-size: 1.3em;
  font-weight: bold;
}

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

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  background-color: #eaf7fd;
  border-bottom: 1px solid #d0eefb;
  list-style: none; /* For details/summary */
}

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

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

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  background-color: #ffffff;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2.4em;
  }
  .page-login__app-download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__app-text-content, .page-login__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-login__app-benefits {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__container {
    padding: 0 15px !important;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-subtitle {
    font-size: 1em;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-card {
    padding: 25px;
  }
  .page-login__faq-question {
    padding: 18px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 18px 20px;
  }

  /* Image responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__app-download-content,
  .page-login__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-login__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-login__hero-content {
    padding: 0 15px !important;
  }
  .page-login__app-benefits {
    padding-left: 0;
  }
  .page-login__app-benefits li {
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__app-download-section .page-login__btn-primary,
  .page-login__app-download-section .page-login__btn-secondary {
    width: calc(100% - 30px) !important; /* Account for container padding */
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-login__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
}