/* 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: transparent; /* Body background is handled by shared.css */
}

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

.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;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
  padding: 60px 0;
  padding-top: var(--header-offset, 120px);
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-login__hero-title {
  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;
  line-height: 1.5;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  flex: 0 0 400px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-login__card-title {
  font-size: 2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1em;
  color: #ffffff;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
  border-color: #EA7C07;
  outline: none;
  box-shadow: 0 0 0 3px rgba(234, 124, 7, 0.3);
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #ffffff;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkbox-checkmark {
  background-color: rgba(255, 255, 255, 0.4);
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #EA7C07;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.page-login__forgot-password-link {
  color: #ffffff;
  text-decoration: none;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
  color: #EA7C07;
}

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

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

.page-login__register-text {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
  color: #ffffff;
}

.page-login__register-link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

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

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

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

/* Why Choose Section */
.page-login__why-choose-section {
  background-color: #1a1a1a; /* Dark background for this section */
  padding: 80px 0;
  color: #ffffff;
}

.page-login__why-choose-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__why-choose-section .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__feature-item {
  background: #282828;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-login__feature-icon {
  width: 100%; /* Ensure image fills card */
  max-width: 200px; /* Adjust as needed, but minimum 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__feature-text {
  font-size: 1em;
  color: #cccccc;
}

/* Guide Section */
.page-login__guide-section {
  background-color: #26A9E0;
  padding: 80px 0;
  color: #ffffff;
}

.page-login__guide-section .page-login__section-title {
  color: #ffffff;
}

.page-login__guide-section .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #EA7C07;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__troubleshooting {
  margin-top: 60px;
  text-align: center;
}

.page-login__troubleshooting-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
}

.page-login__troubleshooting-link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

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

/* Security Section */
.page-login__security-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-login__security-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__security-section .page-login__section-description {
  color: #f0f0f0;
}

.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: #282828;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-login__security-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__security-text {
  font-size: 1em;
  color: #cccccc;
}

/* Promotions Section */
.page-login__promotions-section {
  background-color: #222;
  padding: 80px 0;
  color: #ffffff;
}

.page-login__promotions-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__promotions-section .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__promo-item {
  background: #282828;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
}

.page-login__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-login__promo-item h3 {
  padding: 20px 15px 10px;
  font-size: 1.5em;
  color: #26A9E0;
}

.page-login__promo-item p {
  padding: 0 15px 20px;
  font-size: 0.95em;
  color: #cccccc;
}

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

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Mobile Section */
.page-login__mobile-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-login__mobile-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__mobile-section .page-login__section-description {
  color: #f0f0f0;
}

.page-login__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__mobile-text-content {
  flex: 1;
  min-width: 300px;
}

.page-login__mobile-subtitle {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-login__mobile-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 30px;
}

.page-login__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

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

/* FAQ Section */
.page-login__faq-section {
  background-color: #222;
  padding: 80px 0;
  color: #ffffff;
}

.page-login__faq-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__faq-section .page-login__section-description {
  color: #f0f0f0;
}

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

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

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  font-size: 1em;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px;
}

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

/* Contact Section */
.page-login__contact-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-login__contact-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__contact-section .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__contact-item {
  background: #282828;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

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

.page-login__contact-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__hero-content {
    order: 2;
  }
  .page-login__hero-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-login__hero-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__login-card {
    flex: 0 0 100%;
  }
  .page-login__features-grid, .page-login__guide-steps, .page-login__security-grid, .page-login__promo-grid, .page-login__contact-methods {
    grid-template-columns: 1fr;
  }
  .page-login__mobile-content {
    flex-direction: column;
  }
  .page-login__mobile-text-content {
    text-align: center;
  }
  .page-login__mobile-subtitle {
    font-size: 1.8em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password-link {
    align-self: flex-start;
  }

  /* Mobile responsive for images, videos, and buttons */
  .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__hero-section,
  .page-login__why-choose-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__promotions-section,
  .page-login__mobile-section,
  .page-login__faq-section,
  .page-login__contact-section,
  .page-login__login-card,
  .page-login__feature-item,
  .page-login__step-item,
  .page-login__security-item,
  .page-login__promo-item,
  .page-login__mobile-content,
  .page-login__contact-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-login__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-primary {
    font-size: 1em;
    padding: 12px 15px;
  }
}

/* Color Contrast Fixes */
.page-login__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-login__light-bg {
  color: #333333; /* Light background with dark text */
}

/* Ensure content area text is readable on body's dark background */
.page-login p, .page-login li {
  color: #f0f0f0; /* Light text for readability on dark body background */
}

.page-login__login-card, .page-login__feature-item, .page-login__security-item, .page-login__promo-item, .page-login__contact-item {
  background: #282828; /* Slightly lighter dark background for cards/items */
  color: #ffffff;
}

.page-login__login-card .page-login__form-label, .page-login__login-card .page-login__checkbox-container {
  color: #ffffff;
}

.page-login__login-card .page-login__forgot-password-link, .page-login__login-card .page-login__register-link {
  color: #EA7C07;
}

.page-login__hero-section .page-login__hero-title, .page-login__hero-section .page-login__hero-description {
  color: #ffffff;
}

/* Specific overrides for sections with different backgrounds */
.page-login__why-choose-section .page-login__feature-text,
.page-login__security-section .page-login__security-text,
.page-login__promotions-section .page-login__promo-item p,
.page-login__mobile-section .page-login__mobile-description,
.page-login__faq-section .page-login__faq-answer,
.page-login__contact-section .page-login__contact-text {
  color: #cccccc;
}