/* style/login.css */
:root {
  --page-login-primary-color: #26A9E0;
  --page-login-secondary-color: #FFFFFF;
  --page-login-login-button-color: #EA7C07;
  --page-login-background-color: #FFFFFF;
  --page-login-black-color: #000000;
  --page-login-dark-text: #333333;
  --page-login-light-text: #ffffff;
  --page-login-card-bg: rgba(255, 255, 255, 0.1);
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-login-light-text); /* Body background is dark, so text is light */
  background-color: transparent; /* inherited from body #0a0a0a */
}

.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  background: linear-gradient(135deg, var(--page-login-primary-color) 0%, #1a7bb0 100%);
  color: var(--page-login-light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.page-login__hero-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 40px;
}

.page-login__hero-text-container {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-login__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-login__btn-primary {
  background-color: var(--page-login-login-button-color); /* #EA7C07 */
  color: var(--page-login-light-text);
  border: 2px solid var(--page-login-login-button-color);
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--page-login-light-text);
  border: 2px solid var(--page-login-light-text);
}

.page-login__btn-secondary:hover {
  background-color: var(--page-login-light-text);
  color: var(--page-login-primary-color);
}

.page-login__hero-image-container {
  flex: 1;
  max-width: 600px;
  text-align: right;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-login__section {
  padding: 60px 20px;
  color: var(--page-login-dark-text); /* Default text for light sections */
  background-color: var(--page-login-background-color); /* Default light background */
}

.page-login__dark-bg {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: var(--page-login-light-text);
}

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

.page-login__section-heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-login-primary-color);
}

.page-login__dark-bg .page-login__section-heading {
  color: var(--page-login-light-text);
}

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-login-dark-text);
}

.page-login__dark-bg .page-login__section-intro {
  color: var(--page-login-light-text);
}

.page-login__guide-section .page-login__section-intro,
.page-login__troubleshoot-section .page-login__section-intro,
.page-login__mobile-app-section .page-login__section-intro {
  color: var(--page-login-dark-text);
}

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

.page-login__guide-item {
  background-color: var(--page-login-background-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-login-dark-text);
}

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

.page-login__item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-login-primary-color);
}

.page-login__item-description {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-login__text-link {
  color: var(--page-login-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__text-link:hover {
  color: #1a7bb0;
  text-decoration: underline;
}

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

.page-login__benefit-card {
  background-color: var(--page-login-card-bg); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--page-login-light-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-login__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--page-login-light-text);
}

.page-login__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__card-link {
  color: var(--page-login-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-login__card-link:hover {
  color: #a0dff5;
  text-decoration: underline;
}

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

.page-login__troubleshoot-item {
  background-color: var(--page-login-background-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: var(--page-login-dark-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-login__why-choose-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--page-login-light-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-login__mobile-app-section .page-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin-top: 40px;
  background-color: var(--page-login-background-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--page-login-dark-text);
}

.page-login__app-info {
  flex: 1;
}

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

.page-login__app-benefits-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-login__app-benefits-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--page-login-primary-color);
}

.page-login__app-image-container {
  flex: 1;
  text-align: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  width: 100%;
}

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

.page-login__faq-item {
  background-color: var(--page-login-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-login-light-text);
  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 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__faq-title {
  margin: 0;
  color: var(--page-login-light-text);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-login-primary-color);
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: var(--page-login-light-text);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-answer p {
  margin-bottom: 15px;
  color: var(--page-login-light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-login__hero-text-container {
    max-width: 100%;
    text-align: center;
  }
  .page-login__hero-image-container {
    max-width: 100%;
    margin-top: 40px;
    text-align: center;
  }
  .page-login__cta-buttons {
    justify-content: center;
  }
  .page-login__main-heading {
    font-size: 2.8em;
  }
  .page-login__section-heading {
    font-size: 2em;
  }
  .page-login__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__app-info {
    order: 2;
  }
  .page-login__app-image-container {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered */
  }
  .page-login__main-heading {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__section,
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force images to be responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force video to be responsive */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__section-heading {
    font-size: 1.8em;
  }
  .page-login__item-title {
    font-size: 1.3em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px;
  }
}