/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0d1117; /* Matches body background from shared.css */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #FFD700; /* Gold button */
  color: #003366; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

.page-login__form-section {
  padding: 80px 0;
  background-color: #0d1117;
  color: #f0f0f0;
  text-align: center;
}

.page-login__login-card {
  background-color: #1a202c; /* Darker background for card */
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #003366;
}

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

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

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

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

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

.page-login__remember-me input {
  margin-right: 8px;
}

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

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

.page-login__submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #003366; /* Dark blue button */
  color: #ffffff; /* White text */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__submit-btn:hover {
  background-color: #004488;
}

.page-login__register-text {
  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;
}

.page-login__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
  text-align: center;
  line-height: 1.2;
}

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

.page-login__dark-section {
  background-color: #003366; /* Main brand color for dark sections */
  color: #ffffff;
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: #1a202c; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
  padding: 80px 0;
}

.page-login__why-choose-us .page-login__section-title,
.page-login__security-commitment .page-login__section-title {
  color: #FFD700;
}

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

.page-login__feature-item,
.page-login__tip-item,
.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-login__feature-title,
.page-login__tip-title,
.page-login__security-heading {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__feature-text,
.page-login__tip-text,
.page-login__security-text {
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__login-tips-section {
  padding: 80px 0;
  background-color: #0d1117;
  color: #f0f0f0;
}

.page-login__security-commitment {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a202c;
  color: #f0f0f0;
}

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

.page-login__faq-item {
  background-color: #0d1117;
  border: 1px solid #003366;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.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;
  background-color: #0d1117;
}

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

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

.page-login__faq-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-login__contact-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #0d1117;
  color: #f0f0f0;
}

.page-login__contact-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-btn,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__features-grid,
  .page-login__tips-grid,
  .page-login__security-details {
    grid-template-columns: 1fr;
  }
  .page-login__form-section,
  .page-login__why-choose-us,
  .page-login__login-tips-section,
  .page-login__security-commitment,
  .page-login__faq-section,
  .page-login__contact-cta {
    padding: 40px 0;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__card-title {
    font-size: 1.6em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px;
  }

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