/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared, explicitly set for clarity */
}

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

.page-login__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #2a2a2a; /* Card background */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-image: url('[GALLERY:bg:1920x1080:tai_qq88,login_background,abstract_pattern]');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-login__container--hero {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.page-login__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(38, 169, 224, 0.5);
}

.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 #26A9E0;
  border-radius: 5px;
  background-color: #0d0d0d;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

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

.page-login__checkbox-label {
  color: #e0e0e0;
}

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

.page-login__forgot-password:hover {
  color: #5ac7f5;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Login button color */
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #d16b05;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #e0e0e0;
}

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

.page-login__register-link:hover {
  color: #5ac7f5;
}

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

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-login__benefit-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(38, 169, 224, 0.2);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
}

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

.page-login__card-text {
  color: #e0e0e0;
  font-size: 0.95em;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
}

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

.page-login__feature-item {
  text-align: center;
  padding: 20px;
  background: rgba(38, 169, 224, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-login__feature-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
}

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

.page-login__feature-text {
  color: #e0e0e0;
  font-size: 0.95em;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__cta-buttons {
  text-align: center;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid rgba(38, 169, 224, 0.2);
  color: #ffffff;
}

.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: 18px 25px;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

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

.page-login__faq-answer {
  padding: 15px 25px 20px;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(38, 169, 224, 0.2);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  color: #e0e0e0;
  font-size: 0.95em;
}

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

.page-login__container--cta {
  max-width: 900px;
}

.page-login__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
  margin: 0 15px;
  min-width: 250px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__container--hero {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content {
    max-width: 100%;
  }

  .page-login__hero-image-wrapper {
    margin-top: 40px;
  }

  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__hero-description {
    font-size: 1.1em;
  }

  .page-login__btn--large {
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__form-wrapper {
    padding: 25px;
  }

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

  .page-login__forgot-password {
    margin-top: 5px;
  }

  .page-login__benefits-grid,
  .page-login__security-features-grid {
    grid-template-columns: 1fr;
  }

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

  .page-login__faq-qtext {
    font-size: 1em;
  }

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

  .page-login__btn--large {
    width: 100%;
    margin: 10px 0;
  }

  /* Mobile responsive for images, videos, buttons - START */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__feature-item,
  .page-login__faq-item,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
  }

  /* Buttons */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }
  /* Mobile responsive for images, videos, buttons - END */
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__form-input,
  .page-login__btn-primary {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  .page-login__btn--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}