/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #0a0a0a);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-content {
  max-width: 800px;
  z-index: 1;
}

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

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-login__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__btn-login,
.page-login__btn-register,
.page-login__btn-submit,
.page-login__btn-register-now,
.page-login__btn-view-promotions {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

.page-login__btn-login,
.page-login__btn-submit,
.page-login__btn-register-now {
  background-color: #C30808; /* Custom Login/Register color */
  color: #000000; /* Adjusted for contrast on #C30808 (6.8:1) */
}

.page-login__btn-register,
.page-login__btn-view-promotions {
  background-color: #017439; /* Brand primary color */
  color: #000000; /* Adjusted for contrast on #017439 (4.5:1) */
}

.page-login__btn-login:hover,
.page-login__btn-submit:hover,
.page-login__btn-register-now:hover {
  background-color: #e00a0a;
  transform: translateY(-2px);
}

.page-login__btn-register:hover,
.page-login__btn-view-promotions:hover {
  background-color: #00994c;
  transform: translateY(-2px);
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.8;
}

.page-login__form-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-login__login-form {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #017439;
}

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #ffffff;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__form-image-wrapper {
  max-width: 600px;
  width: 100%;
}

.page-login__form-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
}

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

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

.page-login__benefits-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-login__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__benefit-text {
  font-size: 1em;
  opacity: 0.8;
  flex-grow: 1;
}

.page-login__security-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-login__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
}

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

.page-login__security-text {
  font-size: 0.95em;
  opacity: 0.8;
  flex-grow: 1;
}

.page-login__register-promo-section {
  padding: 60px 0;
  background: linear-gradient(45deg, #017439, #0a0a0a);
  color: #ffffff;
  text-align: center;
}

.page-login__register-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__btn-register-now {
  background-color: #C30808; /* Custom Login/Register color */
  color: #000000; /* Adjusted for contrast */
}

.page-login__btn-view-promotions {
  background-color: #017439; /* Brand primary color */
  color: #000000; /* Adjusted for contrast */
}

.page-login__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: #C30808;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-login,
  .page-login__btn-register,
  .page-login__btn-submit,
  .page-login__btn-register-now,
  .page-login__btn-view-promotions {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Ensure full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__hero-image-wrapper {
    display: none; /* Hide hero image on mobile if it obstructs content */
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__register-promo-section,
  .page-login__faq-section {
    padding: 40px 0;
  }

  .page-login__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-login__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__login-form {
    padding: 30px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-login__benefit-card,
  .page-login__security-item {
    padding: 25px;
  }

  .page-login__benefits-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-title {
    font-size: 1.1em;
  }

  .page-login__faq-toggle {
    font-size: 1.5em;
  }

  .page-login__faq-answer {
    padding: 0 20px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Image responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-image-wrapper,
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__section-title {
    font-size: 1.6em;
  }

  .page-login__login-form {
    padding: 20px;
  }
}