/* style/login.css */

/* Base Styles */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #ffffff;
  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;
}

/* Color Contrast Classes */
.page-login__dark-bg {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff; /* Light text for dark background */
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7aab) no-repeat center center / cover;
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  max-width: 600px;
  z-index: 1;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

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

.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 #ffffff;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  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-top: 5px;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #26A9E0;
}

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

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

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

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

.page-login__btn-login:hover {
  background-color: #d16b06;
}

.page-login__btn-login a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

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

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

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

.page-login__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(0.5);
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.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 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure full width for image */
  height: auto;
  max-height: 200px; /* Limit height for aesthetic */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-login__card-text {
  color: #333333; /* Dark text for light card background */
  font-size: 1em;
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 0;
}

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

.page-login__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-login__ordered-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
}

.page-login__list-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.page-login__list-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #EA7C07;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__list-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__list-text {
  color: #f0f0f0;
}

.page-login__guide-image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

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

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

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

.page-login__feature-text {
  color: #333333;
}

.page-login__security-image-container {
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-login__video-section {
  padding: 60px 0;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-login__faq-list {
  margin-top: 30px;
}

.page-login__faq-item {
  background-color: #26A9E0; /* Brand color for FAQ items */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  width: 20px;
  text-align: center;
  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;
  color: #f0f0f0;
  background-color: #1a7aab;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__faq-answer a {
  color: #ffffff;
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    padding: 40px 15px;
  }
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__container {
    padding: 15px;
  }

  /* Images responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-container,
  .page-login__guide-image-container,
  .page-login__security-image-container,
  .page-login__video-wrapper,
  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__guide-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__hero-image-container {
    position: relative;
    height: auto;
  }
  .page-login__hero-image {
    position: relative;
  }

  /* Video responsiveness */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Button responsiveness */
  .page-login__btn-login,
  .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__login-form-wrapper {
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .page-login__guide-content {
    flex-direction: column;
  }
  .page-login__guide-steps, .page-login__guide-image-container {
    min-width: unset;
    width: 100%;
  }
  .page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-section {
    padding: 30px 10px;
  }
  .page-login__login-form-wrapper {
    padding: 20px 10px;
  }
  .page-login__form-input {
    padding: 10px;
  }
  .page-login__btn-login {
    padding: 12px 20px;
  }
}