/* style/login.css */
/* Body background color is controlled by shared.css var(--bg-color). Assuming it's light. */
/* Text color for general content areas will be dark (#333333). */
/* Text color for sections with brand primary color background will be light (#FFFFFF). */

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #ffffff); /* Fallback to white if --bg-color is not set */
}

.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, header offset handled by body */
  overflow: hidden;
  color: #333333;
  background-color: #ffffff;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for content */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-login__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}

.page-login__login-form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-login__input-group {
  text-align: left;
}

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

.page-login__input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  min-width: 200px; /* Ensure input fields are not too small */
}

.page-login__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.page-login__checkbox {
  width: 18px;
  height: 18px;
}

.page-login__checkbox-label {
  font-size: 0.95rem;
  color: #333333;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95rem;
  text-align: right;
  display: block;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-height: 48px; /* Ensure button minimum height for touch */
}

.page-login__btn-primary:hover {
  background-color: #c96806;
}

.page-login__register-text {
  margin-top: 20px;
  font-size: 1rem;
  color: #333333;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-login__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.page-login__why-choose-us {
  background-color: #f8f8f8;
}

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

.page-login__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px; /* Ensure card content area is not too small */
}

.page-login__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-login__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__dark-section {
  background-color: #26A9E0;
  color: #ffffff; /* White text for dark background */
  padding: 60px 20px;
}

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__text-block {
  color: #ffffff;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  min-height: 200px; /* Ensure security item content area is not too small */
}

.page-login__security-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-login__security-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

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

.page-login__benefit-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 200px; /* Ensure benefit item content area is not too small */
}

.page-login__benefit-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-login__benefit-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__how-to-register {
  background-color: #f8f8f8;
  text-align: center;
}

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

.page-login__step-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 200px; /* Ensure step item content area is not too small */
}

.page-login__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-login__step-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__cta-wrapper {
  margin-top: 30px;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 14px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-height: 48px; /* Ensure button minimum height for touch */
}

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

.page-login__faq-section {
  padding-bottom: 60px;
}

.page-login__faq-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
  background-color: #f5f5f5;
}

.page-login__faq-qtext {
  color: #26A9E0;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
}

.page-login__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: center;
}

.page-login__contact-item {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-login__main-title {
    font-size: 2rem;
  }

  .page-login__description {
    font-size: 1rem;
  }

  .page-login__input {
    min-width: unset; /* Allow inputs to shrink */
  }

  .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__cta-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__container,
  .page-login__dark-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__section-title {
    font-size: 1.8rem;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__card,
  .page-login__security-item,
  .page-login__benefit-item,
  .page-login__step-item {
    padding: 20px;
    min-height: unset; /* Allow cards to adjust height */
  }

  .page-login__card-image,
  .page-login__security-icon,
  .page-login__benefit-icon,
  .page-login__step-image {
    min-width: 200px; /* Still enforce minimum image size */
    min-height: 200px;
  }

  .page-login__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
}