/* Shared body padding for fixed header (if not already in shared.css) */
body {
  padding-top: var(--header-offset);
}

:root {
  --header-offset: 122px; /* Default value, adjust based on actual header height */
  --deep-navy-color: #08162B;
}

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main from custom colors */
  background-color: var(--deep-navy-color); /* Body background from shared.css */
}

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

.page-login__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold color for titles */
  line-height: 1.2;
}

.page-login__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E;
  line-height: 1.1;
}

.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-login__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-login__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #AFC4E8; /* Text Secondary */
}

.page-login__login-form-wrapper {
  background: #10233F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #244D84; /* Border */
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #244D84; /* Border */
  border-radius: 5px;
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #AFC4E8;
  opacity: 0.7;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #1D5FD1;
  box-shadow: 0 0 0 2px rgba(29, 95, 209, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #1D5FD1;
}

.page-login__checkbox-label {
  color: #AFC4E8;
  cursor: pointer;
}

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

.page-login__forgot-password-link:hover {
  color: #4FA8FF;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #ffffff; /* White text for primary button */
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-login__register-cta {
  margin-top: 30px;
  text-align: center;
  color: #AFC4E8;
}

.page-login__register-cta p {
  margin-bottom: 15px;
}

.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: 1px solid #1D5FD1;
  border-radius: 5px;
  background-color: transparent;
  color: #1D5FD1;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #1D5FD1;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background: #08162B; /* Deep Navy */
}

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

.page-login__benefit-card {
  background: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #244D84;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

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

.page-login__benefit-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 10px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

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

.page-login__trouble-card {
  background: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #244D84;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-login__trouble-card p {
  color: #AFC4E8;
  margin-bottom: 15px;
}

.page-login__btn-text-link {
  color: #1D5FD1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__btn-text-link:hover {
  color: #4FA8FF;
}

/* Security Tips Section */
.page-login__security-tips-section {
  padding: 80px 0;
  background-color: #113B7A; /* Primary color, dark background */
}

.page-login__security-tips-section .page-login__section-title {
  color: #F2C14E; /* Gold for title on dark background */
}

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

.page-login__tip-card {
  background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #244D84;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__tip-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-login__tip-card p {
  color: #F3F8FF; /* Text Main for light text on dark background */
  margin-bottom: 10px;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #08162B;
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF; /* Text Main */
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: rgba(29, 95, 209, 0.2); /* Lighter hover effect */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8; /* Text Secondary */
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%); /* Gradient background */
}

.page-login__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #F3F8FF;
}

.page-login__register-cta-button {
  max-width: 300px;
  margin: 0 auto;
}

/* Contact Section */
.page-login__contact-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08162B;
}

.page-login__contact-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #AFC4E8;
}

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

.page-login__contact-buttons .page-login__btn-primary,
.page-login__contact-buttons .page-login__btn-secondary {
  width: auto;
  min-width: 180px;
  max-width: 250px;
}

/* Copyright Section */
.page-login__copyright-section {
  padding: 30px 0;
  background-color: #050e1a;
  text-align: center;
  color: #AFC4E8;
  font-size: 14px;
}

/* Global image and button responsiveness for mobile */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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;
}

.page-login__cta-buttons,
.page-login__button-group,
.page-login__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile adaptations */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 10px;
  }

  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-login__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-login__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__login-form-wrapper {
    padding: 30px 20px;
  }

  .page-login__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__security-tips-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__contact-section {
    padding: 50px 0;
  }

  .page-login__benefits-grid,
  .page-login__troubleshooting-grid,
  .page-login__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__trouble-card,
  .page-login__tip-card {
    padding: 25px;
  }

  .page-login__benefit-title,
  .page-login__card-title,
  .page-login__tip-card h3 {
    font-size: 20px;
  }

  .page-login__benefit-description,
  .page-login__trouble-card p,
  .page-login__tip-card p {
    font-size: 15px;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 16px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  .page-login__cta-description,
  .page-login__contact-section p {
    font-size: 16px;
  }

  .page-login__contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__contact-buttons .page-login__btn-primary,
  .page-login__contact-buttons .page-login__btn-secondary {
    width: 100%;
    max-width: 100%;
  }

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

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-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;
  }

  .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__contact-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}