/* style/login.css */
/* Body background is var(--background-color) from shared.css. Assuming dark background based on custom colors. */

.page-login {
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --card-bg-color: #11271B;
  --background-color-page: #08160F; /* Page specific background */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;

  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color-page);
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main-color);
}

.page-login__main-title {
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

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

.page-login__login-form-wrapper {
  background: var(--card-bg-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  margin: 30px auto 0;
  border: 1px solid var(--border-color);
  text-align: left;
}

.page-login__form-title {
  color: var(--text-main-color);
  font-size: 1.8em;
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary-color);
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: var(--glow-color);
  outline: none;
  box-shadow: 0 0 8px rgba(var(--glow-color), 0.5);
}

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

.page-login__forgot-password {
  color: var(--text-secondary-color);
  text-decoration: none;
  font-size: 0.9em;
  text-align: center;
}

.page-login__forgot-password:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-login__register-prompt {
  color: var(--text-secondary-color);
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
}

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

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

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

.page-login__container {
  width: 100%;
  box-sizing: border-box;
}

.page-login__section-title {
  color: var(--text-main-color);
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-login__text-block {
  color: var(--text-secondary-color);
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
}

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

.page-login__feature-item,
.page-login__step-item,
.page-login__troubleshooting-item {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
}

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

.page-login__feature-title,
.page-login__step-title,
.page-login__troubleshooting-title {
  color: var(--gold-color);
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-text,
.page-login__step-text,
.page-login__troubleshooting-text {
  color: var(--text-secondary-color);
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

.page-login__subsection-title {
  color: var(--text-main-color);
  font-size: 2em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-login__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-login__bullet-list li {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 25px;
  margin-bottom: 15px;
  color: var(--text-secondary-color);
  font-size: 1.05em;
  line-height: 1.6;
  text-align: left;
  position: relative;
  padding-left: 45px;
}

.page-login__bullet-list li::before {
  content: '✓';
  color: var(--glow-color);
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.page-login__cta-section,
.page-login__final-cta {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color-page);
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-login__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-login__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-color-page);
  box-shadow: 0 0 15px var(--glow-color);
}

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

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

.page-login__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

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

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

.page-login__faq-question:hover {
  background-color: rgba(var(--glow-color), 0.1);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: var(--glow-color);
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary-color);
  font-size: 1em;
  line-height: 1.6;
}

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

/* Color contrast classes */
.page-login__dark-section {
  background-color: var(--background-color-page);
  color: var(--text-main-color);
}

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

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__text-block,
.page-login__light-bg .page-login__feature-title,
.page-login__light-bg .page-login__feature-text,
.page-login__light-bg .page-login__step-title,
.page-login__light-bg .page-login__step-text,
.page-login__light-bg .page-login__troubleshooting-title,
.page-login__light-bg .page-login__troubleshooting-text,
.page-login__light-bg .page-login__faq-question,
.page-login__light-bg .page-login__faq-answer {
  color: #333333;
}

.page-login__light-bg .page-login__card {
  background-color: #f8f8f8;
  border-color: #e0e0e0;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 500px;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__content-area,
  .page-login__faq-section {
    padding: 40px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__text-block {
    font-size: 0.95em;
  }
  .page-login__features-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__feature-item,
  .page-login__step-item,
  .page-login__troubleshooting-item {
    padding: 25px;
  }
  .page-login__feature-title,
  .page-login__step-title,
  .page-login__troubleshooting-title {
    font-size: 1.4em;
  }
  .page-login__subsection-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-login__bullet-list li {
    padding: 12px 20px 12px 40px;
    font-size: 0.9em;
  }
  .page-login__cta-section,
  .page-login__final-cta {
    padding: 50px 15px;
  }
  .page-login__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile image, video, and container adaptations */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}