/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  background-color: #0A2240; /* Fallback for dark-bg */
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 34, 64, 0.7), rgba(10, 34, 64, 0.9));
  z-index: 2;
}

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

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

.page-login__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E6B34B;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  font-size: 0.9em;
}

.page-login__forgot-password {
  color: #E6B34B;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  border: none;
}

.page-login__btn-primary {
  background-color: #E6B34B;
  color: #0A2240;
}

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

.page-login__register-text {
  margin-top: 20px;
  color: #f0f0f0;
}

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

.page-login__register-link:hover {
  color: #f5d082;
}

/* General Section Styling */
.page-login__section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

.page-login__section-description--light {
  color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--dark-bg-alt, #0A2240);
  color: #ffffff;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #E6B34B;
  margin-bottom: 15px;
  text-align: center;
}

.page-login__benefit-text {
  color: #f0f0f0;
  text-align: center;
  flex-grow: 1;
}

/* How-To-Login Section */
.page-login__how-to-login-section {
  background-color: #0A2240;
  color: #ffffff;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-login__step-icon {
  background-color: #E6B34B;
  color: #0A2240;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

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

.page-login__troubleshooting {
  margin-top: 60px;
  padding: 40px;
  background: rgba(230, 179, 75, 0.1);
  border-left: 5px solid #E6B34B;
  border-radius: 5px;
  text-align: left;
}

.page-login__troubleshooting-title {
  font-size: 1.8em;
  color: #E6B34B;
  margin-bottom: 15px;
}

.page-login__troubleshooting-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Security Section */
.page-login__security-section {
  background-color: var(--dark-bg-alt, #0A2240);
  color: #ffffff;
}

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

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

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

.page-login__security-title {
  font-size: 1.4em;
  color: #E6B34B;
  margin-bottom: 10px;
}

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

/* Video Section */
.page-login__video-section {
  background-color: #0A2240;
  padding-top: 80px; /* Adjust as needed, shared header offset is handled by main */
  padding-bottom: 80px;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 10px;
}

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

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--dark-bg-alt, #0A2240);
  color: #ffffff;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

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

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it expands */
  padding: 15px 25px 25px 25px;
}

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

.page-login__faq-answer a {
  color: #E6B34B;
  text-decoration: none;
}

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

/* CTA Section */
.page-login__cta-section {
  background-color: #0A2240;
  padding: 80px 0;
  color: #ffffff;
}

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

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

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

.page-login__btn-secondary:hover {
  background-color: #E6B34B;
  color: #0A2240;
}

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

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__hero-content {
    padding: 30px 20px;
    max-width: 90%;
  }
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-form {
    gap: 10px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-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__register-text {
    font-size: 0.9em;
  }

  .page-login__section {
    padding: 60px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  
  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-item,
  .page-login__step-item,
  .page-login__security-item {
    padding: 25px;
  }
  .page-login__benefit-image {
    height: 180px;
  }
  .page-login__troubleshooting {
    padding: 30px;
  }
  .page-login__troubleshooting-title {
    font-size: 1.5em;
  }

  /* Images and Videos Responsive */
  .page-login img {
    max-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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    height: 0 !important;
  }
  
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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 20px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.5em;
  }
  .page-login__hero-content {
    padding: 20px 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
}