/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set body background for clarity */
}

/* Fixed header offset */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* Container for consistent width */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-login__hero-section {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden; /* Ensure no overflow issues */
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__login-form {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 100%;
  text-align: left;
  color: #333333;
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #017439;
  text-align: center;
}

.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 #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__btn-login {
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a00606;
}

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

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__form-image {
  max-width: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.page-login__form-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Sections General */
.page-login__benefits-section,
.page-login__security-section,
.page-login__video-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 60px 20px;
  text-align: center;
  overflow: hidden; /* Ensure no overflow issues */
}

.page-login__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #017439;
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Dark background sections */
.page-login__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-login__dark-bg .page-login__section-title {
  color: #FFFFFF;
}

.page-login__dark-bg .page-login__section-description {
  color: #f0f0f0;
}

/* Light background sections */
.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Benefits Section */
.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: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

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

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Video Section */
.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-login__video-link-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it behaves as a block element */
}

/* CTA Buttons below video */
.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for mobile */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #00562e;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}