:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark-section: #2098d0; /* Slightly darker primary for contrast */
  --login-button-color: #EA7C07; /* Specific color for login */
  --border-color: #e0e0e0;
}

/* Base styles for the page-login scope */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background body */
  background: var(--background-color, var(--secondary-color)); /* Ensure it respects shared's var, else default to white */
}

.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: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* 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: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Example gradient for hero background */
  color: var(--text-light);
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-login__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: var(--text-light);
  /* font-size handled by default browser styles, or clamp if necessary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-content .page-login__description {
  color: var(--text-light);
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.page-login__cta-button {
  display: inline-block;
  padding: 16px 45px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 19px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-login__cta-button--login {
  background: var(--login-button-color); /* Specific login color */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-login__cta-button--login:hover {
  background: #d46b00; /* Darker login color */
  border-color: #d46b00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-login__cta-button--register {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-login__cta-button--register:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
  background: var(--bg-light); /* Light background for form */
  color: var(--text-dark);
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
}

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
  outline: none;
}

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

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #1a8cc4; /* Darker primary */
}

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

.page-login__checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.page-login__checkbox:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-login__checkbox:checked::before {
  content: '✓';
  display: block;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-login__checkbox-label {
  cursor: pointer;
  color: var(--text-dark);
}

.page-login__btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--login-button-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  background: #d46b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-login__form-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: var(--text-dark);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background: var(--bg-dark-section); /* Darker primary color for background */
  color: var(--text-light); /* Light text for dark background */
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
  color: var(--text-light);
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-card img {
  width: 100%;
  max-width: 400px; /* Example max-width, depends on design */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__card-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-login__card-link:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background: var(--secondary-color); /* Light background */
  color: var(--text-dark);
}

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

.page-login__feature-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-login__feature-item img {
  width: 100%;
  max-width: 250px; /* Adjust max-width for smaller service images */
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__feature-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background: var(--bg-light); /* Light background */
  color: var(--text-dark);
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-login__faq-toggle {
  font-size: 28px; /* Slightly larger for visibility */
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: var(--bg-light);
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}
.page-login__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background: var(--bg-dark-section); /* Darker primary color for background */
  color: var(--text-light);
  text-align: center;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: var(--text-light);
}

.page-login__cta-button--register-bottom {
  margin-top: 40px;
  background: var(--login-button-color); /* Use login button color for emphasis */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-login__cta-button--register-bottom:hover {
  background: #d46b00;
  border-color: #d46b00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__hero-content .page-login__main-title {
    font-size: 38px;
  }
  .page-login__hero-content .page-login__description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img {
    border-radius: 8px;
  }

  .page-login__hero-content .page-login__main-title {
    font-size: clamp(28px, 8vw, 42px); /* Use clamp for H1 */
    margin-bottom: 10px;
  }
  .page-login__hero-content .page-login__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button {
    padding: 14px 30px;
    font-size: 17px;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
.page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__login-form {
    padding: 30px 20px;
    border-radius: 8px;
  }

  .page-login__form-group {
    margin-bottom: 20px;
  }
  .page-login__form-input {
    padding: 12px;
    font-size: 15px;
  }
  .page-login__btn-submit {
    padding: 14px;
    font-size: 17px;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__benefits-grid,
  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__benefit-card,
  .page-login__feature-item {
    padding: 25px;
    border-radius: 8px;
  }
  .page-login__benefit-card img,
  .page-login__feature-item img {
    max-width: 100%;
    border-radius: 6px;
  }
  .page-login__card-title,
  .page-login__feature-title {
    font-size: 20px;
  }
  .page-login__card-text,
  .page-login__feature-text {
    font-size: 15px;
  }
  .page-login__card-link {
    padding: 8px 15px;
    font-size: 14px;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .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 15px 15px;
  }
  .page-login__faq-answer p {
    font-size: 15px;
  }

  /* Global image and container responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-login__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}