/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  margin: 30px auto 0;
}

.page-login__form-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 25px;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping for buttons */
  word-wrap: break-word; /* Allow text wrapping for buttons */
}

.page-login__btn-primary {
  background-color: #C30808; /* Login/Register button color */
  color: #FFFFFF; /* Ensures WCAG AA contrast */
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #017439; /* Primary color for secondary button text */
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.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: #00a000;
}

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

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

.page-login__form-tip {
  margin-top: 20px;
  font-size: 0.95em;
  color: #cccccc;
}

/* Content Sections */
.page-login__content-section {
  padding: 60px 0;
  background-color: #121212; /* Match body background for content sections */
  color: #ffffff;
}

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

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

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

.page-login__feature-item {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-login__feature-text {
  font-size: 1em;
  color: #cccccc;
}

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

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__guide-item {
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid #017439;
}

.page-login__guide-step {
  display: block;
  font-size: 1.4em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for step numbers, ensures visibility on green background */
  margin-bottom: 10px;
}

.page-login__guide-item p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__cta-container {
  text-align: center;
  margin-top: 50px;
}

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

.page-login__app-info {
  flex: 1;
  min-width: 300px;
}

.page-login__app-qr {
  flex: 0 0 auto;
  text-align: center;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-login__qr-image {
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-login__qr-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__app-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__app-features li {
  background: rgba(1, 116, 57, 0.2); /* Semi-transparent green background */
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-login__app-features li::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__download-button {
  margin-top: 30px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

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

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

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

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

.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: #FFFF00;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  font-size: 1em;
}

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

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

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

.page-login__cta-bottom .page-login__section-title,
.page-login__cta-bottom .page-login__section-description {
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__feature-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    min-height: 600px;
  }
  .page-login__hero-content {
    padding: 20px;
    max-width: 90%;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__form-wrapper {
    padding: 20px;
    max-width: 100%;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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__content-section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-login__app-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__app-info,
  .page-login__app-qr {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__qr-image {
    width: 250px;
    height: 250px;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-content {
    padding: 15px;
  }
  .page-login__form-wrapper {
    padding: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__qr-image {
    width: 200px;
    height: 200px;
  }
}