:root {
  --button: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --card-bg-rgb: 16, 35, 63; /* For rgba usage */
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --glow-rgb: 79, 168, 255; /* For rgba usage */
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--deep-navy); /* Body background from shared.css */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, not --header-offset */
  background-color: var(--deep-navy);
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
  min-height: 300px; /* Ensure minimum size */
}

.page-login__hero-content {
  position: relative; /* Relative to hero-section */
  z-index: 2; /* Ensure content is above image */
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin-top: -150px; /* Pull content up over the bottom part of the image */
  background: linear-gradient(180deg, rgba(8, 22, 43, 0) 0%, var(--deep-navy) 50%); /* Gradient fade to deep navy */
  padding-top: 150px; /* Compensate for margin-top */
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3em); /* Using clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-login__form-container {
  background-color: var(--card-bg); /* #10233F */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 30px auto 0 auto;
  border: 1px solid var(--border); /* #244D84 */
}

.page-login__form-title {
  font-size: 1.8em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 30px;
  font-weight: 600;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.95em;
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border); /* #244D84 */
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--glow); /* #4FA8FF */
  outline: none;
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 25px;
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.9em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--glow); /* #4FA8FF */
  text-decoration: underline;
}

.page-login__btn-submit {
  width: 100%;
  padding: 14px 25px;
  background: var(--button); /* linear-gradient(180deg, #2B73F6 0%, #1144A6 100%) */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__register-link {
  color: var(--gold); /* #F2C14E */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--glow); /* #4FA8FF */
  text-decoration: underline;
}

/* General Section Styling */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--deep-navy); /* Dark background */
  color: var(--text-main);
  padding: 80px 0;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.page-login__benefit-item {
  background-color: var(--card-bg); /* #10233F */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border); /* #244D84 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 250px; /* Larger image size */
  height: auto;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 150px;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 1em;
  color: var(--text-secondary); /* #AFC4E8 */
  line-height: 1.6;
}

/* How to Login Section */
.page-login__how-to-login-section {
  background-color: var(--deep-navy); /* Dark background */
  color: var(--text-main);
  padding: 80px 0;
}

.page-login__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-login__step-item {
  background-color: var(--card-bg); /* #10233F */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border); /* #244D84 */
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--glow); /* #4FA8FF */
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
  font-size: 1.4em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-description {
  font-size: 1em;
  color: var(--text-secondary); /* #AFC4E8 */
  line-height: 1.6;
}

.page-login__steps-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 150px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--deep-navy); /* Dark background */
  color: var(--text-main);
  padding: 80px 0;
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border); /* #244D84 */
  overflow: hidden;
  background: var(--card-bg); /* #10233F */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
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;
}
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(var(--card-bg-rgb), 0.8); /* Slightly lighter on hover */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* #F3F8FF */
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow); /* #4FA8FF */
  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: rgba(var(--card-bg-rgb), 0.8); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.95em;
  line-height: 1.6;
}

/* Call to Action Section */
.page-login__cta-section {
  background-color: var(--deep-navy); /* Dark background */
  color: var(--text-main);
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for responsive handling */
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Important for responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: var(--button); /* linear-gradient(180deg, #2B73F6 0%, #1144A6 100%) */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--glow); /* #4FA8FF */
  border: 2px solid var(--glow); /* #4FA8FF */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__btn-secondary:hover {
  background-color: rgba(var(--glow-rgb), 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Global image styling for the page */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space properly */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__form-container {
    padding: 30px;
  }
  .page-login__benefits-grid,
  .page-login__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Common mobile container padding */
  .page-login__container,
  .page-login__hero-content,
  .page-login__form-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }
  .page-login__hero-image {
    min-height: 200px !important; /* Ensure minimum height on mobile */
  }
  .page-login__hero-content {
    margin-top: -80px;
    padding-top: 80px;
  }
  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-login__form-container {
    padding: 25px;
    margin-top: 20px;
  }
  .page-login__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-submit {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__forgot-password,
  .page-login__register-prompt {
    font-size: 0.85em;
  }

  /* General Section Title */
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Benefits Section */
  .page-login__benefits-section {
    padding: 50px 0;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-item {
    padding: 25px;
  }
  .page-login__benefit-icon {
    width: 200px !important;
    min-width: 200px !important;
    min-height: 120px !important;
    margin-bottom: 20px;
  }
  .page-login__benefit-title {
    font-size: 1.3em;
  }
  .page-login__benefit-description {
    font-size: 0.9em;
  }

  /* How to Login Section */
  .page-login__how-to-login-section {
    padding: 50px 0;
  }
  .page-login__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__step-item {
    padding: 25px;
  }
  .page-login__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-login__step-title {
    font-size: 1.2em;
  }
  .page-login__step-description {
    font-size: 0.9em;
  }
  .page-login__steps-image {
    margin-top: 30px;
    min-width: 200px !important;
    min-height: 120px !important;
  }

  /* FAQ Section */
  .page-login__faq-section {
    padding: 50px 0;
  }
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 1em;
  }
  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.85em;
  }

  /* CTA Section */
  .page-login__cta-section {
    padding: 50px 0;
  }
  .page-login__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Global image responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}