/* 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: var(--black-color); /* Inherit from shared */
}

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

/* Header offset for the first content section */
.page-login__hero-section.page-login__header-offset {
  padding-top: var(--header-offset, 120px);
}

.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Increased for more content */
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #ffffff;
  padding-bottom: 60px;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-login__hero-section > .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  border-radius: 15px;
  padding: 40px;
  max-width: 450px;
  margin: 40px auto 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #26A9E0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5); /* Darker input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #26A9E0; /* Brand color for checkbox */
}

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

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

.page-login__forgot-password:hover {
  color: #4db8ff;
}

.page-login__btn-primary {
  background: #EA7C07; /* Login button color */
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-login__btn-full-width {
  width: 100%;
}

.page-login__register-text {
  margin-top: 25px;
  font-size: 1.05em;
  color: #ffffff;
}

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

.page-login__register-link:hover {
  color: #4db8ff;
}

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

.page-login__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__benefits-section .page-login__section-title,
.page-login__troubleshooting-section .page-login__section-title,
.page-login__faq-section .page-login__section-title {
  color: #ffffff; /* Ensure titles are white on dark body background */
}

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

.page-login__benefit-card,
.page-login__security-item,
.page-login__step-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__light-bg {
  background: #ffffff; /* White background for specific cards */
  color: #333333; /* Dark text for light background */
}

.page-login__light-bg .page-login__benefit-title {
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-login__light-bg .page-login__benefit-text {
  color: #333333;
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-login__benefit-text,
.page-login__security-text,
.page-login__step-text {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__light-bg .page-login__benefit-text {
  color: #333333;
}

.page-login__security-section {
  background-color: #26A9E0; /* Brand primary color for this section */
  color: #ffffff;
}

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

.page-login__security-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for security items on primary color section */
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login__security-item .page-login__security-title {
  color: #ffffff;
}

.page-login__security-item .page-login__security-text {
  color: rgba(255, 255, 255, 0.9);
}

.page-login__register-cta-section {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
}

.page-login__register-cta-section .page-login__section-title,
.page-login__register-cta-section .page-login__section-description {
  color: #ffffff;
}

.page-login__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
  margin-top: 30px;
}

.page-login__faq-section {
  background-color: var(--black-color);
  color: #ffffff;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #26A9E0;
  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: rgba(255, 255, 255, 0.7);
}

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

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

.page-login__cta-final-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-login__cta-final-section .page-login__section-title,
.page-login__cta-final-section .page-login__section-description {
  color: #ffffff;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1a7bb7;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
}

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

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

  .page-login__hero-section {
    min-height: 600px;
    padding-bottom: 40px;
  }

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

  .page-login__description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-login__login-card {
    padding: 30px;
    margin-top: 20px;
  }

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

  .page-login__form-input {
    padding: 12px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1.1em;
    padding: 12px 25px;
    width: 100% !important; /* Mobile buttons full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-login__benefit-card,
  .page-login__security-item,
  .page-login__step-item {
    padding: 25px;
  }

  .page-login__benefit-icon {
    max-width: 200px;
  }

  .page-login__benefit-title,
  .page-login__security-title,
  .page-login__step-title {
    font-size: 1.4em;
  }

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

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

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

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}