/* style/login.css */

/* Base styles for page-login, ensuring contrast with implied dark body background */
.page-login {
  background-color: #08160F; /* Background from custom colors */
  color: #F2FFF6; /* Main text color from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0A4B2C; /* Deep Green from custom colors */
  color: #F2FFF6;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6;
  margin-bottom: 20px;
  max-width: 800px;
}

.page-login__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 900px;
  color: #A7D9B8; /* Secondary text color */
}

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

/* Button Styles */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6;
  border: none;
}

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

.page-login__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Border from custom colors */
}

.page-login__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Card Style */
.page-login__card {
  background-color: #11271B; /* Card BG from custom colors */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border from custom colors */
}

/* Login Form Section */
.page-login__login-form-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.page-login__form-title {
  font-size: 2em;
  color: #F2FFF6;
  margin-bottom: 30px;
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #A7D9B8; /* Secondary text color */
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border from custom colors */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green from custom colors */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-top: -10px;
}

.page-login__forgot-password {
  color: #57E38D; /* Glow from custom colors */
  text-decoration: none;
  font-size: 0.9em;
}

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

.page-login__submit-button {
  width: 100%;
  margin-top: 20px;
}

.page-login__no-account-text {
  margin-top: 20px;
  color: #A7D9B8;
}

.page-login__register-link {
  color: #57E38D; /* Glow from custom colors */
  text-decoration: none;
  font-weight: bold;
}

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

/* Why f8best Section */
.page-login__why-f8best-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green from custom colors */
}

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

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

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

.page-login__feature-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%; /* Ensure cards have equal height */
}

.page-login__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__feature-text {
  color: #A7D9B8;
  font-size: 0.95em;
  flex-grow: 1; /* Allow text to grow and push other elements down */
}

/* Registration Guide Section */
.page-login__registration-guide-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-login__step-item {
  text-align: left;
  background-color: #11271B; /* Card BG from custom colors */
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
}

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

.page-login__step-item p {
  color: #A7D9B8;
  font-size: 0.95em;
}

.page-login__cta-buttons--center {
  margin-top: 50px;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green from custom colors */
  text-align: center;
}

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

.page-login__faq-item {
  margin-bottom: 20px;
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border from custom colors */
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #11271B; /* Card BG from custom colors */
  color: #F2FFF6;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
}

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

.page-login__faq-item summary:hover {
  background-color: rgba(17, 39, 27, 0.8); /* Slightly darker card bg on hover */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow from custom colors */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 20px 25px;
  background-color: #08160F; /* Background from custom colors */
  color: #A7D9B8;
  font-size: 1em;
  line-height: 1.7;
  border-top: 1px solid #1E3A2A; /* Divider from custom colors */
}

.page-login__cta-buttons--margin-top {
  margin-top: 40px;
}

/* App Download Section */
.page-login__app-download-section {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-login__app-title {
  font-size: 2em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-login__app-description {
  color: #A7D9B8;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-login__app-image-wrapper {
  flex-shrink: 0;
  max-width: 400px;
}

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

/* Contact Support Section */
.page-login__contact-support-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green from custom colors */
}

.page-login__contact-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__app-download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__app-image-wrapper {
    margin-top: 30px;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__app-title {
    font-size: 1.8em;
  }
  .page-login__hero-description,
  .page-login__section-description,
  .page-login__app-description {
    font-size: 1em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__hero-cta-buttons,
  .page-login__contact-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button,
  .page-login__app-download-button,
  .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__hero-section,
  .page-login__login-form-section,
  .page-login__why-f8best-section,
  .page-login__registration-guide-section,
  .page-login__faq-section,
  .page-login__app-download-section,
  .page-login__contact-support-section {
    padding: 40px 0;
  }
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__app-download-content,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__feature-image {
    height: auto !important;
  }
  .page-login__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form-title {
    font-size: 1.3em;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}