/* style/login.css */
.page-login {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-login__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-login__card {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-login__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
}

/* Hero Section */
.page-login__hero-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-login__hero-content {
  max-width: 900px;
}

.page-login__hero-title {
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-login__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Video Section */
.page-login__video-section {
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.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: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}

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

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-login__video-caption {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 10px;
}

/* Features Section */
.page-login__features-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

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

.page-login__feature-card {
  text-align: center;
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* How to Login Section */
.page-login__how-to-login-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__login-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-login__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-login__step-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__step-text {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-login__cta-text {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

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

.page-login__trouble-card {
  text-align: center;
}

.page-login__trouble-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__trouble-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__cta-support {
  text-align: center;
  margin-top: 60px;
}

/* Security Info Section */
.page-login__security-info-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__security-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-login__security-text p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.05em;
  text-align: left;
}

.page-login__security-text p:last-of-type {
  margin-bottom: 0;
}

.page-login__inline-link {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-login__inline-link:hover {
  color: #2AD16F;
}

.page-login__security-image-inline {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

.page-login__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__faq-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid #2E7A4E; /* Border */
  user-select: none;
  list-style: none;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-login__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
  background-color: #11271B; /* Card BG */
  border-top: none;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Border */
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
}

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

/* All images basic responsive styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video basic responsive styles */
.page-login video,
.page-login__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video containers basic responsive styles */
.page-login__video-section,
.page-login__video-container,
.page-login__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons basic responsive styles */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* All button containers basic responsive styles */
.page-login__cta-buttons,
.page-login__button-group,
.page-login__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  /* Mobile images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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,
  .page-login__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-bottom: 40px;
  }

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

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

  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile videos */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-login__video-wrapper {
    padding-bottom: 56.25% !important;
  }

  /* Mobile buttons */
  .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__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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-login__login-steps {
    gap: 30px;
  }

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

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 15px;
  }

  .page-login__security-text p {
    text-align: justify;
  }

  .page-login__security-image-inline {
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  .page-login__login-steps {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }

  .page-login__how-to-login-section .page-login__login-steps > *:nth-child(even) {
    margin-top: 50px;
  }
}

@media (min-width: 1024px) {
  .page-login__login-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}