/* style/login.css */
/* 
  Body background color from shared.css is #0a0a0a (dark).
  Therefore, all main text in .page-login should be light (#ffffff).
*/

.page-login {
  color: #ffffff; /* Default text color for the page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body if not inherited */
}

/* Header offset for fixed header */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.page-login__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

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

.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__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for form */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 40px auto 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  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: 20px;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #26A9E0; /* Highlight checkbox with primary color */
}

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

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  color: #f0f0f0;
}

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

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

/* General Section Styling */
.page-login__content-section,
.page-login__process-section,
.page-login__benefits-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__dark-bg {
  background-color: #0a0a0a; /* Using body background for consistency */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-login__white-text {
  color: #ffffff;
}

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

.page-login__feature-item.page-login__card {
  background: #f8f8f8; /* Light background for cards in light section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for light card background */
}

.page-login__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__feature-description {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1; /* Make description take available space */
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block; /* For <a> tags acting as buttons */
  width: auto;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #1e87bb;
}

/* Process Section */
.page-login__process-steps {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  flex: 1;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.08); /* Darker background for steps */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.page-login__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-login__benefit-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
}

.page-login__benefit-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__benefit-description {
  font-size: 1em;
  line-height: 1.6;
}

/* Security Section */
.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
  color: #f0f0f0;
}

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

.page-login__security-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-login__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__mt-20 {
  margin-top: 20px;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background: #f8f8f8; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333; /* Dark text for light card background */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  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-title {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f8f8f8;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 20px 25px;
}

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

/* CTA Section */
.page-login__cta-content {
  padding: 40px 20px;
}

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__cta-button {
  padding: 15px 30px;
  font-size: 1.1em;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  min-width: 200px; /* Minimum width for buttons */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__security-content {
    flex-direction: column;
  }
  .page-login__security-image {
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }

  /* Responsive images, videos, 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__form-wrapper,
  .page-login__cta-buttons,
  .page-login__process-steps,
  .page-login__security-content,
  .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; /* Ensure mobile header offset */
    min-height: 500px;
  }

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

  .page-login__step-item {
    max-width: 100%;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-login__security-image {
    max-width: 100%;
    margin-top: 20px;
  }

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

  .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__form-wrapper {
    padding: 20px 15px;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}