/* style/login.css */

/* Base styles for the login page */
.page-login {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-login__dark-bg {
  background-color: #000000; /* Body background is dark */
  color: #ffffff;
  padding: 60px 0;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

/* 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 */
  min-height: 500px;
  overflow: hidden;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

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

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-login__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Login Form Section */
.page-login__form-section .page-login__section-title,
.page-login__form-section .page-login__section-description {
  color: #333333;
}

.page-login__login-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 40px auto 20px auto;
  box-sizing: border-box;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  color: #333333;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.page-login__remember-me {
  color: #333333;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.page-login__checkbox {
  margin-right: 8px;
}

.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: 2px solid #EA7C07;
  padding: 15px 20px;
  font-size: 1.1rem;
  cursor: pointer;
}

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

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

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

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

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-login__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__benefit-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__guide-step {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__step-description {
  font-size: 1rem;
}

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

.page-login__troubleshoot-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__troubleshoot-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__troubleshoot-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Security Section */
.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-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__security-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__security-description {
  font-size: 1rem;
}

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

.page-login__explore-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__explore-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__explore-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Mobile App Section */
.page-login__app-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__app-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__btn-app {
  background-color: #26A9E0;
  border-color: #26A9E0;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 1.2rem;
}

.page-login__btn-app:hover {
  background-color: #1e87b0;
  border-color: #1e87b0;
}

.page-login__app-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #333333;
}

.page-login__app-note a {
  color: #26A9E0;
  text-decoration: none;
}

.page-login__app-note a:hover {
  text-decoration: underline;
}

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

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

.page-login__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For details/summary native marker */
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-login__faq-answer p {
  margin: 0;
}

.page-login__faq-link {
  color: #26A9E0;
  text-decoration: none;
}

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

/* CTA Bottom Section */
.page-login__cta-bottom {
  text-align: center;
}

.page-login__cta-bottom .page-login__section-description {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__troubleshoot-grid,
  .page-login__security-grid,
  .page-login__explore-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login__dark-bg,
  .page-login__light-bg {
    padding: 40px 0;
  }
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-login__hero-description {
    font-size: 1rem;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__login-form {
    padding: 30px;
    margin: 20px auto;
  }
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__troubleshoot-grid,
  .page-login__security-grid,
  .page-login__explore-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__guide-step,
  .page-login__troubleshoot-item,
  .page-login__security-item,
  .page-login__explore-item {
    padding: 25px;
  }
  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    opacity: 0.5 !important;
    margin-bottom: 20px;
  }
  .page-login__hero-content {
    order: 2;
  }
  .page-login__hero-section {
    flex-direction: column-reverse;
  }
}