/* 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: #1a1a1a; /* Inherited from shared.css, explicitly set for context */
}

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

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
}

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

.page-login__hero-section > .page-login__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__subtitle {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #017439;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn--login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: none;
}

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

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

.page-login__btn--register:hover {
  background-color: #005a2b;
  transform: translateY(-2px);
}

.page-login__links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95em;
}

.page-login__link {
  color: #FFFF00;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Video Section */
.page-login__video-section {
  padding: 80px 0;
  background-color: #222222;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-login__video,
.page-login__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-login__video-link-overlay {
  z-index: 10;
  background: transparent;
}

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

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

.page-login__feature-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(1, 116, 57, 0.2);
}

.page-login__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-login__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  border-left: 5px solid #017439;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__step-text {
  color: #cccccc;
  font-size: 1.05em;
}

.page-login__important-note {
  background: rgba(1, 116, 57, 0.3);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid #017439;
}

.page-login__note-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-login__note-list {
  list-style: disc;
  margin-left: 25px;
  color: #cccccc;
  font-size: 1.05em;
}

.page-login__note-list li {
  margin-bottom: 10px;
}

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

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

.page-login__troubleshoot-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #C30808;
}

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

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

/* Explore Section */
.page-login__explore-section {
  padding: 80px 0;
  background-color: #222222;
}

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

.page-login__explore-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-login__explore-card:hover {
  transform: translateY(-5px);
  background: rgba(1, 116, 57, 0.2);
}

.page-login__explore-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-login__explore-card .page-login__explore-title {
  padding: 20px 20px 0;
  font-size: 1.4em;
  font-weight: bold;
  color: #FFFF00;
}

.page-login__explore-card .page-login__explore-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-login__explore-card .page-login__explore-title a:hover {
  text-decoration: underline;
}

.page-login__explore-text {
  padding: 0 20px 20px;
  color: #cccccc;
  font-size: 0.95em;
}

/* Security Tips Section */
.page-login__security-tips-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-right: 4px solid #017439;
}

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

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

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

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Adjust as needed */
}

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

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-login__btn--large {
  padding: 18px 35px;
  font-size: 1.3em;
  margin: 0 15px;
  width: auto;
  min-width: 250px;
  display: inline-block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-section {
    min-height: 600px;
  }
  .page-login__form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding: 60px 0;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__subtitle {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.9em;
  }
  .page-login__form-wrapper {
    padding: 25px;
    max-width: 90%;
  }
  .page-login__form-input {
    padding: 12px;
  }
  .page-login__btn {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__links {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__link {
    margin: 5px 0;
  }
  .page-login__feature-grid, .page-login__troubleshoot-grid, .page-login__explore-grid, .page-login__security-list {
    grid-template-columns: 1fr;
  }
  .page-login__feature-card, .page-login__troubleshoot-item, .page-login__explore-card, .page-login__security-item {
    padding: 20px;
  }
  .page-login__explore-image {
    height: 200px;
  }
  .page-login__explore-card .page-login__explore-title {
    font-size: 1.2em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__btn--large {
    font-size: 1.1em;
    padding: 15px 25px;
    min-width: unset;
    width: 100%;
    margin: 10px 0;
  }

  /* Mobile specific overrides for images and containers */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset on mobile */
  }
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__cta-section .page-login__btn--large {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__form-wrapper {
    padding: 20px;
  }
  .page-login__form-label {
    font-size: 1em;
  }
  .page-login__form-input {
    padding: 10px;
  }
  .page-login__btn {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}