/* style/login.css */

/* Base styles for page-login scope */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

.page-login__section {
  padding: 60px 0;
}

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

.page-login__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-login__dark-bg .page-login__section-title {
  color: #ffffff;
}

.page-login__subtitle,
.page-login__section-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__dark-bg .page-login__subtitle,
.page-login__dark-bg .page-login__section-description {
  color: #f0f0f0;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-top: -100px; /* Overlap with image for visual effect */
}

/* Form Styles */
.page-login__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.page-login__form-group {
  text-align: left;
}

.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: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

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

.page-login__link-forgot:hover,
.page-login__link-register:hover {
  color: #1a7bb7;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Login specific color */
  color: #ffffff;
  border-color: #EA7C07;
}

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

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

.page-login__btn-secondary:hover {
  background-color: #e0f2f9;
  color: #1a7bb7;
  border-color: #1a7bb7;
}

/* Why Login Section */
.page-login__why-login .page-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-login__feature-item {
  text-align: left;
}

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

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

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

.page-login__feature-list li::before {
  content: '✔';
  color: #EA7C07;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-login__feature-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Min size for all images */
  min-height: 200px;
}

/* Guide Login Section */
.page-login__guide-login .page-login__section-title,
.page-login__guide-login .page-login__section-description {
  color: #ffffff;
}

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

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

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

.page-login__step-item p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-login__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Security Section */
.page-login__security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-login__security-text {
  text-align: left;
}

.page-login__security-subtitle {
  font-size: 1.6em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__security-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-login__security-list li {
  margin-bottom: 8px;
}

.page-login__security-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

/* Troubleshooting Section */
.page-login__troubleshooting .page-login__section-title,
.page-login__troubleshooting .page-login__section-description {
  color: #ffffff;
}

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

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

.page-login__troubleshooting-subtitle {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__troubleshooting-item p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

/* Register & App Download Section */
.page-login__register-app .page-login__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-login__register-content,
.page-login__app-download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-login__register-text,
.page-login__app-download-text {
  text-align: left;
}

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

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

.page-login__register-list li::before {
  content: '★';
  color: #EA7C07;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-login__register-image-wrapper,
.page-login__app-download-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__register-image,
.page-login__app-download-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-login__app-subtitle {
  font-size: 1.6em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #e0f2f9; /* Lighter brand blue */
  color: #26A9E0;
  border-bottom: 1px solid #26A9E0;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

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

.page-login__faq-item[open] .page-login__faq-toggle {
  color: #EA7C07;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: -50px;
  }
  .page-login__features-grid,
  .page-login__security-content,
  .page-login__register-content,
  .page-login__app-download-content {
    grid-template-columns: 1fr;
  }
  .page-login__feature-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__register-image-wrapper,
  .page-login__app-download-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-login__hero-image-wrapper {
    max-height: 400px;
  }
  .page-login__section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__subtitle,
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__hero-image-wrapper {
    max-height: 300px;
  }
  .page-login__hero-content {
    margin-top: -30px;
    padding: 15px;
  }
  .page-login__form {
    gap: 15px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 10px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__section {
    padding: 30px 0;
  }
  .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-login__hero-section {
    padding-top: 10px !important;
  }
  .page-login__feature-title,
  .page-login__security-subtitle,
  .page-login__troubleshooting-subtitle,
  .page-login__app-subtitle {
    font-size: 1.4em;
  }
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-support {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
}