/* style/login.css */
/* Body background color is var(--background-color) from shared.css */
/* Assuming a light body background for optimal contrast with #333333 text */

.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #f8f8f8; /* Light background for hero */
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-login__hero-content {
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  color: #26A9E0;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-login__tagline {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

.page-login__form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-login__form-title {
  color: #26A9E0;
  font-size: 1.8em;
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.page-login__cta-button {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: #EA7C07; /* Login button color */
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  background: #d46f06;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: #26A9E0;
  color: #ffffff;
  border: none;
}

.page-login__btn-secondary:hover {
  background: #1e87b7;
  transform: translateY(-2px);
}

.page-login__link {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
  text-align: center;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  text-decoration: underline;
  color: #1a7aa2;
}

.page-login__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-login__section-title--white {
  color: #ffffff;
}

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

.page-login__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.page-login__benefit-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

.page-login__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__tip-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.page-login__faq-section {
  background-color: #f8f8f8;
}

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

.page-login__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

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

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-login__faq-item[open] > .page-login__faq-question {
  border-bottom: 1px solid #d0d0d0;
  background-color: #f0f0f0;
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #26A9E0, #1a7aa2);
  color: #ffffff;
}

.page-login__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 700px;
  }
  .page-login__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section {
    padding: 60px 15px;
  }
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-login__form-wrapper {
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 1.6em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
  }
  .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
  
  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers for images, videos, buttons */
  .page-login__hero-image-wrapper,
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__hero-content {
    padding: 0;
  }

  /* Specific overrides for padding on sections that already have it */
  .page-login__benefits-section,
  .page-login__security-tips,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-section {
    padding-top: 10px !important;
  }
  .page-login__form-wrapper {
    padding: 20px;
  }
  .page-login__form-title {
    font-size: 1.4em;
  }
  .page-login__benefit-title {
    font-size: 1.3em;
  }
  .page-login__tip-title {
    font-size: 1.2em;
  }
}