/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches shared.css body background */
}

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

.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

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

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

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

.page-login__light-bg .page-login__section-title {
  color: #017439;
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__light-bg .page-login__section-description {
  color: #666666;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__light-bg .page-login__card-title {
  color: #017439;
}

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

.page-login__light-bg .page-login__card-text {
  color: #333333;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  text-align: center;
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
}

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

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  max-width: 450px;
  margin: 40px auto 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #FFFF00; /* Custom color for login/register font */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1em;
}

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

.page-login__btn-submit,
.page-login__btn-register {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 25px;
  color: #FFFF00; /* Custom color for login/register font */
  background-color: #C30808; /* Custom color for login/register button */
}

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

.page-login__forgot-password {
  display: block;
  margin-top: 15px;
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #ffffff;
}

.page-login__register-cta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__register-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.page-login__benefit-icon {
  width: 200px; /* Enforce min size 200px */
  height: 133px; /* Maintain aspect ratio (600x400 -> 3:2) */
  object-fit: contain;
  margin-bottom: 15px;
}

/* Guide Section */
.page-login__guide-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-login__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
  width: 50px;
  height: 50px;
  background-color: #FFFF00;
  color: #C30808;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-login__step-text {
  color: #f0f0f0;
}

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

.page-login__trouble-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

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

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

/* Why Choose Us Section */
.page-login__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__why-choose-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-login__faq-item {
  background: #ffffff;
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-login__faq-qtext {
  color: #017439;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  font-weight: normal;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
}

.page-login__faq-answer a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-login__cta-section {
  padding: 100px 0;
  background-color: #017439;
}

.page-login__cta-content {
  max-width: 800px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  flex: 1;
  max-width: 250px;
  padding: 18px 30px;
  font-size: 1.3em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.page-login__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
}

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

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

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

  .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 {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-login__intro-text {
    font-size: 1.1em;
  }

  .page-login__section {
    padding: 60px 0;
  }

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

  .page-login__section-description {
    margin-bottom: 30px;
  }

  .page-login__login-form-wrapper {
    padding: 30px;
    margin: 20px auto 0;
  }

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

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

  .page-login__guide-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-login__step-item {
    max-width: 100%;
    width: calc(100% - 30px); /* Account for padding */
    padding: 20px;
  }
}