:root {
  --primary-color: #26A9E0; /* Main brand color */
  --secondary-color: #FFFFFF; /* White */
  --text-color-dark: #333333; /* Dark text for light backgrounds */
  --text-color-light: #FFFFFF; /* Light text for dark backgrounds */
  --button-login-color: #EA7C07; /* Specific color for login button */
  --background-color-light: #F8F9FA; /* Light background for sections */
  --border-color: #E0E0E0;
}

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming body background is white/light */
}

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

/* 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;
  /* body padding-top handles header offset, this is just for internal spacing */
  padding-top: 10px; 
  background: linear-gradient(135deg, var(--primary-color) 0%, #34C7F7 100%); /* Example gradient for hero section background */
  color: var(--text-color-light);
  overflow: hidden; /* Ensure no overflow from image */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above background elements */
}

.page-login__hero-image {
  width: 100%;
  max-width: 800px; /* Adjust as needed */
  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 10px 30px rgba(0, 0, 0, 0.2);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1); /* Slight overlay for text readability */
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-login__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-login__login-form-wrapper {
  background: var(--secondary-color); /* White background for the form */
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
  width: 100%;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark); /* Dark text for form content */
}

.page-login__form-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-color-dark);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color-dark);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 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: 14px;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

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

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.page-login__cta-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--button-login-color); /* Specific login button color */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__cta-button:hover {
  background: #E06C00; /* Slightly darker orange on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 15px;
  color: var(--text-color-dark);
}

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

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

/* General Section Styles */
.page-login__section {
  padding: 80px 0;
  background: var(--background-color-light);
  text-align: center;
}

.page-login__section:nth-of-type(even) {
  background: var(--secondary-color);
}

.page-login__section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-login__section-description {
  font-size: 17px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

/* Security & Trust Section */
.page-login__security-trust {
  background: var(--background-color-light);
}

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

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

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

.page-login__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Important for responsive image */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Responsive image */
}

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

.page-login__feature-text {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

/* Benefits Section */
.page-login__benefits {
  background: var(--secondary-color);
}

.page-login__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-login__benefits-item {
  background: var(--background-color-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefits-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefits-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Important for responsive image */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Responsive image */
}

.page-login__benefits-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-login__benefits-text {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

/* FAQ Section */
.page-login__faq-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34C7F7 100%);
  color: var(--text-color-light);
}

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

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color-light);
}

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: rgba(255, 255, 255, 0.2);
}

.page-login__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color-light);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--text-color-light);
  font-size: 15px;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-image {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  /* Global mobile padding */
  .page-login__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 40px;
  }

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

  .page-login__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-content {
    padding: 20px;
    border-radius: 8px;
  }

  .page-login__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

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

  .page-login__login-form-wrapper {
    padding: 25px 20px;
    margin-top: 30px;
  }

  .page-login__form-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .page-login__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-login__remember-me {
    margin-bottom: 10px;
  }

  /* Buttons mobile responsiveness */
  .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__register-prompt {
    font-size: 14px;
    margin-top: 20px;
  }
  
  /* General Sections */
  .page-login__section {
    padding: 50px 0;
  }

  .page-login__section-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Feature Grid */
  .page-login__features-grid,
  .page-login__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item,
  .page-login__benefits-item {
    padding: 25px;
  }

  .page-login__feature-item img,
  .page-login__benefits-item img {
    
    
    margin-bottom: 15px;
  }

  .page-login__feature-title,
  .page-login__benefits-title {
    font-size: 18px;
  }

  .page-login__feature-text,
  .page-login__benefits-text {
    font-size: 14px;
  }

  /* FAQ Section */
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }

  /* Ensure all images and containers are responsive on 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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__login-form-wrapper {
    padding: 20px 15px;
  }
  .page-login__main-title {
    font-size: clamp(20px, 8vw, 32px);
  }
  .page-login__form-title {
    font-size: 20px;
  }
}