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

.page-login__section-padding {
  padding: 80px 0;
}

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

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

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

.page-login__hero-content-wrapper {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-login__login-card {
  background: rgba(26, 43, 76, 0.95); /* #1A2B4C with slight transparency */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  text-align: left;
}

.page-login__card-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 30px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #FFD700;
  border-radius: 8px;
  background-color: #0d1a2d;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700;
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FFD700;
  color: #1A2B4C;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  background-color: #0d1a2d; /* Slightly lighter dark blue */
}

.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: #1A2B4C;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills container */
  max-width: 250px; /* Limit max width for smaller images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

/* Security Section */
.page-login__dark-section {
  background-color: #1A2B4C;
  color: #ffffff;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

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

.page-login__security-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-login__security-list li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
}

.page-login__list-highlight {
  color: #FFD700;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A2B4C;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

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

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

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

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-login__cta-section {
  background-color: #0d1a2d;
}

.page-login__cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__cta-text-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__cta-button {
  max-width: 300px; /* Limit button width */
  margin-top: 30px;
  box-sizing: border-box;
}

.page-login__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Support Contact Section */
.page-login__support-contact-section {
  position: relative;
  text-align: center;
}

.page-login__support-channels {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__support-channel {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  flex: 1;
  max-width: 350px;
  min-width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-login__channel-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-login__channel-description {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-login__support-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }

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

  .page-login__hero-section {
    height: auto;
    min-height: 80vh;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__main-title {
    font-size: 2.5em;
  }

  .page-login__intro-text {
    font-size: 1em;
  }

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

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

  .page-login__section-padding {
    padding: 60px 0;
  }

  .page-login__login-card {
    padding: 30px;
  }

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

  .page-login__form-input,
  .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;
  }
  
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-login__hero-content-wrapper,
  .page-login__container,
  .page-login__benefits-grid,
  .page-login__security-content,
  .page-login__faq-list,
  .page-login__cta-content,
  .page-login__support-channels {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-login__security-content,
  .page-login__cta-content {
    flex-direction: column;
  }

  .page-login__cta-text-wrapper {
    text-align: center;
  }

  .page-login__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .page-login__security-image-wrapper,
  .page-login__cta-image-wrapper {
    order: -1; /* Image first on mobile */
  }

  .page-login img {
    max-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__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-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-login__faq-answer {
    padding: 10px 20px;
  }

  .page-login__support-image {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }

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

  .page-login__login-card {
    padding: 25px;
  }
}