/* style/login.css */

/* Variables (if needed, though shared.css likely handles many) */
:root {
  --primary-color: #017439; /* Brand green */
  --secondary-color: #FFFFFF; /* Auxiliary white */
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login-bg: #C30808; /* Custom login button background */
  --button-login-text: #FFFF00; /* Custom login button text */
  --border-color: #e0e0e0;
}

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Body background is white, so default text is dark */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Base padding */
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  overflow: hidden; /* Prevent background image overflow */
  box-sizing: border-box;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-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: 2;
}

.page-login__login-container {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for the form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.page-login__main-title {
  color: var(--primary-color);
  font-size: 2.2em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  color: var(--text-dark);
  margin-bottom: 30px;
  font-size: 1.1em;
}

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

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #888;
}

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

.page-login__checkbox-label {
  color: var(--text-dark);
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: var(--button-login-bg); /* Custom login button background */
  color: var(--button-login-text); /* Custom login button text */
  border: none;
  border-radius: 5_px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  text-decoration: none; /* Make it look like a button, not a link */
  text-align: center;
}

.page-login__submit-button:hover {
  background-color: #A60707; /* Darker shade of #C30808 */
}

.page-login__register-text {
  color: var(--text-dark);
  font-size: 1em;
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Light background */
  color: var(--text-dark);
}

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

.page-login__benefit-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 200px; /* Limit height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as block for max-height */
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
  text-align: center;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: var(--text-light); /* Override default dark text for this section */
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-login__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-login__btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #e0e0e0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or rotate to minus sign) */
}

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content, and !important for JS toggle */
  padding: 15px 25px 20px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.8;
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-login__guide-section .page-login__section-title,
.page-login__guide-section .page-login__section-description {
  color: var(--text-light);
}

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

.page-login__guide-step {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  color: var(--text-light);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-login__step-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1em;
}

.page-login__final-note {
  color: var(--text-light);
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

/* Security Info Section */
.page-login__security-info {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-login__security-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-login__security-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as block for max-height */
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-login__security-item p {
  font-size: 1em;
  color: var(--text-dark);
}

.page-login__final-security-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    min-height: 500px;
  }

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

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

  .page-login__description {
    font-size: 1em;
  }

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

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

  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__security-features {
    grid-template-columns: 1fr;
  }

  .page-login__benefits-section,
  .page-login__cta-section,
  .page-login__faq-section,
  .page-login__guide-section,
  .page-login__security-info {
    padding: 60px 0;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-container,
  .page-login__benefit-card,
  .page-login__guide-step,
  .page-login__security-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-login__submit-button,
  .page-login__cta-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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }
}

@media (max-width: 480px) {
  .page-login__login-container {
    padding: 25px;
  }

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

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

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

/* Contrast fix classes (if needed, as per instruction) */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}