/* 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; /* Rely on body background from shared.css */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  color: #ffffff;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

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

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

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-login__hero-description {
  font-size: 1.1em;
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Brand color for section titles */
}

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

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

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

.page-login__form-section {
  padding: 60px 0;
}

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

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

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

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

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

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__btn-submit {
  background-color: #EA7C07; /* Custom color for Login button */
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  max-width: calc(50% - 7.5px);
  box-sizing: border-box;
}

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

.page-login__link-forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  flex-grow: 1;
  text-align: right;
  max-width: calc(50% - 7.5px);
  box-sizing: border-box;
}

.page-login__link-forgot-password:hover {
  color: #1a7bb0;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #333333;
}

.page-login__register-prompt p {
  margin-bottom: 15px;
  color: #333333;
}

.page-login__btn-register {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.page-login__btn-register:hover {
  background-color: #1a7bb0;
}

.page-login__form-info {
  font-size: 0.9em;
  text-align: center;
  margin-top: 30px;
  color: #555555;
}

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

.page-login__feature-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-login__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__security-footer-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__benefits-list li {
  background: #f8f8f8;
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__benefit-item {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-login__benefits-list li p {
  color: #555555;
}

.page-login__benefits-footer-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #333333;
}

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

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshooting-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__troubleshooting-item p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__cta-support {
  text-align: center;
  margin-top: 50px;
}

.page-login__cta-support p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__btn-support {
  background-color: #EA7C07; /* Custom color for Login-related CTA */
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

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

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

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

.page-login__faq-item details > summary {
  list-style: none;
}

.page-login__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

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

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #f8f8f8;
}

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

.page-login__cta-download {
  padding: 80px 0;
  text-align: center;
}

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

.page-login__btn-download {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 18px 35px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 30px;
}

.page-login__btn-download:hover {
  background-color: #1a7bb0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding: 10px 15px 40px;
  }

  .page-login__hero-image-wrapper {
    max-height: 400px;
  }

  .page-login__form-section, .page-login__security-section, .page-login__benefits-section, .page-login__troubleshooting-section, .page-login__faq-section, .page-login__cta-download {
    padding: 40px 0;
  }

  .page-login__login-form {
    padding: 30px 20px;
  }

  .page-login__form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-login__btn-submit,
  .page-login__link-forgot-password {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center;
    padding: 12px 15px;
  }

  .page-login__btn-register {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }

  .page-login__security-features, .page-login__troubleshooting-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item, .page-login__troubleshooting-item, .page-login__benefits-list li, .page-login__faq-item {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__feature-icon {
    width: 150px;
    height: 150px;
  }

  .page-login__btn-support,
  .page-login__btn-download {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 20px;
  }

  /* Image responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__security-section,
  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__cta-download,
  .page-login__login-form,
  .page-login__feature-item,
  .page-login__troubleshooting-item,
  .page-login__benefits-list li,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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