.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F4F7FB; /* Custom background color */
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-login__description-text {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* HERO Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB;
  overflow: hidden;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width for flex item */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-login__intro-text {
  font-size: 19px;
  color: #1F2D3D;
  max-width: 700px;
  margin: 0 auto 40px;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

.page-login__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-login__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Login Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

.page-login__form-wrapper {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  padding: 14px 18px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  font-size: 16px;
  color: #1F2D3D;
  background-color: #fcfdff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #2F6BFF; /* Primary color */
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

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

.page-login__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2F6BFF; /* Primary color */
}

.page-login__checkbox-label {
  color: #1F2D3D;
  cursor: pointer;
}

.page-login__forgot-password {
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-weight: 500;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  color: #1F2D3D;
}

.page-login__register-link {
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-weight: 600;
}

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

/* Security and Benefits Section */
.page-login__security-benefits {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-login__feature-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust max-width for content images */
  height: auto;
  margin-bottom: 25px;
  object-fit: contain;
}

.page-login__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-login__feature-description {
  font-size: 16px;
  color: #1F2D3D;
  line-height: 1.7;
}

/* Troubleshooting & Support Section */
.page-login__troubleshooting-support {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

.page-login__support-info {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 40px auto 0;
  border: 1px solid #D6E2FF; /* Border */
}

.page-login__support-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  text-align: left;
}

.page-login__support-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-login__support-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-login__contact-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-login__contact-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #1F2D3D; /* Text Main */
}

details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f8fc;
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 25px;
  background: #F9FCFF; /* Lighter background for answer */
  border-radius: 0 0 12px 12px;
  color: #1F2D3D;
  font-size: 16px;
}

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

/* Register CTA Section */
.page-login__register-cta {
  padding: 80px 0;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Primary to Auxiliary gradient */
  color: #ffffff;
  text-align: center;
}

.page-login__register-cta .page-login__section-title,
.page-login__register-cta .page-login__description-text {
  color: #ffffff;
}

.page-login__register-cta .page-login__cta-button {
  margin-top: 30px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__register-cta .page-login__cta-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(26px, 5vw, 40px);
  }
  .page-login__intro-text {
    font-size: 17px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__form-wrapper {
    padding: 40px;
  }
  .page-login__feature-title {
    font-size: 22px;
  }
  .page-login__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__security-benefits,
  .page-login__troubleshooting-support,
  .page-login__faq-section,
  .page-login__register-cta {
    padding: 40px 0;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* Consistent small top padding */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img,
  .page-login__feature-icon,
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__container,
  .page-login__form-wrapper,
  .page-login__feature-card,
  .page-login__support-info,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-login__description-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__main-title {
    font-size: 28px;
  }

  .page-login__intro-text {
    font-size: 16px;
  }

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

  .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__login-form {
    gap: 20px;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
  }

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

  .page-login__features-grid {
    grid-template-columns: 1fr;
  }

  .page-login__feature-card {
    padding: 25px;
  }

  .page-login__support-info {
    padding: 30px 20px;
  }

  .page-login__support-subtitle {
    font-size: 20px;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 18px 20px;
  }

  .page-login__faq-qtext {
    font-size: 16px;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

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

@media (max-width: 480px) {
  .page-login__section-title {
    font-size: 24px;
  }
  .page-login__main-title {
    font-size: 24px;
  }
  .page-login__intro-text {
    font-size: 15px;
  }
  .page-login__form-wrapper {
    padding: 25px 15px;
  }
  .page-login__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-login__form-label,
  .page-login__form-input,
  .page-login__checkbox-label,
  .page-login__forgot-password,
  .page-login__no-account-text,
  .page-login__register-link {
    font-size: 15px;
  }
  .page-login__submit-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-login__feature-title {
    font-size: 20px;
  }
  .page-login__feature-description {
    font-size: 15px;
  }
  .page-login__support-subtitle {
    font-size: 18px;
  }
  .page-login__support-list li {
    font-size: 15px;
  }
  .page-login__contact-button {
    font-size: 15px;
    padding: 12px 25px;
  }
  .page-login__faq-qtext {
    font-size: 15px;
  }
  .page-login__faq-answer p {
    font-size: 15px;
  }
}