/* style/login.css */
/* 
  BEM Naming Convention: .page-login__block-element--modifier
  Colors: Primary #017439, Secondary #FFFFFF
  Login/Register Button: Background #C30808, Text #FFFF00
  Body Background: #FFFFFF (default light background) -> Text color #333333
*/

.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 */
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #008f4c); /* Gradient background with primary color */
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above background elements if any */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Limit image width in hero for better composition */
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

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

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure minimum width for buttons */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.page-login__btn-login {
  background: #C30808; /* Specific color for login button */
  color: #FFFF00; /* Specific color for login button text */
  border: 2px solid #C30808;
}

.page-login__btn-login:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-register {
  background: #C30808; /* Specific color for register button */
  color: #FFFF00; /* Specific color for register button text */
  border: 2px solid #C30808;
}

.page-login__btn-register:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styling --- */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-intro,
.page-login__dark-bg .page-login__text-white {
  color: #ffffff;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.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;
}

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

.page-login__checkbox-label {
  color: #555555;
}

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

.page-login__forgot-password-link:hover {
  color: #004d2b;
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: #C30808; /* Specific color for login button */
  color: #FFFF00; /* Specific color for login button text */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__register-link:hover {
  color: #004d2b;
  text-decoration: underline;
}

.page-login__additional-info {
  margin-top: 20px;
  font-size: 0.9em;
  color: #777;
  text-align: center;
}

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

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlighted text color for titles in dark background */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Guide Section --- */
.page-login__guide-section {
  padding: 80px 0;
}

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

.page-login__guide-step-item {
  text-align: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.page-login__guide-step-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__guide-step-description {
  font-size: 1em;
  color: #555555;
}

.page-login__troubleshooting {
  margin-top: 60px;
  background: #f0f8f0; /* Light green background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #d4edda;
}

.page-login__troubleshooting-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
  text-align: center;
}

.page-login__troubleshooting-list {
  list-style-type: disc;
  padding-left: 25px;
  color: #333333;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-login__troubleshooting-list li strong {
  color: #004d2b;
}

.page-login__troubleshooting-footer {
  margin-top: 20px;
  font-size: 0.95em;
  text-align: center;
  color: #555555;
}

/* --- Security Section --- */
.page-login__security-section {
  padding: 80px 0;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__security-item img {
   /* Smaller images for security icons */
  height: auto;
  margin-bottom: 20px;
  filter: none; /* No filter allowed */
  object-fit: contain;
}

.page-login__security-title {
  font-size: 1.4em;
  color: #FFFF00; /* Highlighted text color for titles in dark background */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Download App Section --- */
.page-login__download-app-section {
  padding: 80px 0;
}

.page-login__app-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__app-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-login__app-features {
  flex: 2;
  min-width: 300px;
}

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

.page-login__app-feature-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-login__app-feature-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-login__app-feature-list li::before {
  content: '✔'; /* Checkmark icon */
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__btn-download {
  background: #C30808; /* Specific color for download button */
  color: #FFFF00; /* Specific color for download button text */
  border: 2px solid #C30808;
}

.page-login__btn-download:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__app-note {
  margin-top: 20px;
  font-size: 0.9em;
  color: #777;
  text-align: center;
}

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

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0; /* Text color for dark background */
}