/* style/login.css */

/* --- General Styles for .page-login Scope --- */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default text color for light background */
  background-color: var(--color-background, #F5F7FA); /* Page background color */
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--color-primary, #E53935);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-main, #333333);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, var(--color-accent, #FF5A4F) 0%, var(--color-primary, #E53935) 100%);
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: var(--card-bg, #FFFFFF);
  color: var(--color-primary, #E53935);
  border: 2px solid var(--color-primary, #E53935);
}

.page-login__btn-secondary:hover {
  background: var(--color-primary, #E53935);
  color: #ffffff;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space nicely */
}

/* --- Hero Section --- */
.page-login__hero-section {
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
  background-color: var(--color-background, #F5F7FA);
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: 3.2em;
  font-weight: 900;
  color: var(--color-primary, #E53935);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-login__description {
  font-size: 1.2em;
  color: var(--text-main, #333333);
  margin-bottom: 30px;
}

/* --- Guide Section (Login Steps) --- */
.page-login__guide-section {
  padding: 60px 0;
  background-color: var(--background, #F5F7FA); /* Light background for contrast */
}

.page-login__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-card {
  background: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main, #333333); /* Dark text on light card */
}

.page-login__step-card:hover {
  transform: translateY(-5px);
}

.page-login__step-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 4px;
}

.page-login__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--color-primary, #E53935);
  margin-bottom: 15px;
}

.page-login__step-text {
  font-size: 1em;
  color: var(--text-main, #333333);
}

/* --- Forgot Password Section --- */
.page-login__forgot-password-section {
  padding: 60px 0;
  background-color: var(--color-primary, #E53935); /* Dark background */
  color: #ffffff; /* White text on dark background */
  text-align: center;
}

.page-login__forgot-password-section .page-login__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-login__forgot-password-section .page-login__section-description {
  color: #f0f0f0; /* Light grey description on dark background */
}

.page-login__forgot-password-content {
  max-width: 800px;
  margin: 30px auto 0;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-login__forgot-password-content p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-login__forgot-password-section .page-login__btn-primary {
  margin-top: 30px;
  background: var(--card-bg, #FFFFFF);
  color: var(--color-primary, #E53935);
  border: none;
}
.page-login__forgot-password-section .page-login__btn-primary:hover {
  background: #f0f0f0;
}


/* --- Why Login Section (Benefits) --- */
.page-login__why-login-section {
  padding: 60px 0;
  background-color: var(--background, #F5F7FA); /* Light background */
}

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

.page-login__benefit-card {
  background: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main, #333333); /* Dark text on light card */
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-image {
  width: 100%;
  height: 250px; /* Consistent height for benefit images */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 4px;
}

.page-login__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--color-primary, #E53935);
  margin-bottom: 10px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: var(--text-main, #333333);
}

.page-login__cta-section {
  text-align: center;
  margin-top: 50px;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 60px 0;
  background-color: var(--background, #F5F7FA); /* Light background */
}

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

.page-login__faq-item {
  background: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  color: var(--text-main, #333333);
  overflow: hidden; /* For details tag */
  border: 1px solid var(--border, #E0E0E0);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--color-primary, #E53935);
  cursor: pointer;
  list-style: none; /* Remove default marker for summary */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}