/* style/login.css */

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

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

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* Text color for dark background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Fallback for image */
}

.page-login__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff; /* Ensure text is white on this overlay */
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for login/register font */
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 30px auto 0;
  text-align: left;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
}

.page-login__form-input::placeholder {
  color: #aaa;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #C30808;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login font color */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* Make it look like a button but it's a link */
  display: inline-block;
  text-align: center;
}

.page-login__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  margin-top: 30px;
  text-align: center;
  color: #333333;
}

.page-login__register-prompt p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-login__btn-register {
  background-color: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.page-login__btn-register:hover {
  background-color: #005f2c;
  transform: translateY(-2px);
}

/* --- General Section Styles --- */
.page-login__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.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-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  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__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px; /* Minimum size requirement */
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

/* --- Security Tips Section --- */
.page-login__security-tips {
  padding: 80px 0;
  background-color: #017439; /* Dark background for this section */
  color: #ffffff; /* White text for dark background */
}

.page-login__security-tips .page-login__section-title,
.page-login__security-tips .page-login__section-description {
  color: #ffffff;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: background-color 0.3s ease;
}

.page-login__security-item:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-login__security-heading {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for headings on dark background */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-login__security-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* --- Promotions Preview Section --- */
.page-login__promotions-preview {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-login__promo-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__promo-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px; /* Minimum size requirement */
}

.page-login__promo-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__promo-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

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

/* --- App Download CTA Section --- */
.page-login__app-download-cta {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-login__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-login__app-text {
  flex: 1;
}

.page-login__app-text .page-login__section-title,
.page-login__app-text .page-login__section-description {
  color: #ffffff;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__app-text .page-login__section-description {
  margin-bottom: 30px;
}

.page-login__btn-download-app-promo {
  background-color: #C30808; /* Use login/register button color */
  color: #FFFF00; /* Use login/register font color */
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-download-app-promo:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__app-image-wrapper {
  flex: 0 0 auto; /* Prevent image from growing/shrinking too much */
  text-align: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px; /* Minimum size requirement */
}


/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}