/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main on Deep Navy body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
}

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

/* HERO Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Fixed top padding, not var(--header-offset) */
  padding-top: 10px; 
  overflow: hidden; /* Ensure image doesn't overflow if not perfectly sized */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3rem); /* Using clamp for responsive H1, not fixed large size */
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-login__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  min-width: 180px; /* Minimum width for buttons */
}

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

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

.page-login__btn-secondary {
  background: #AFC4E8; /* Text Secondary color as background */
  color: #113B7A; /* Main brand color for text */
  border: 2px solid #113B7A; /* Main brand color for border */
}

.page-login__btn-secondary:hover {
  background: #F3F8FF; /* Lighter hover background */
  color: #113B7A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-login__form-section {
  padding: 80px 20px;
  background-color: #08162B; /* Deep Navy - Body background color */
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #10233F; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #F3F8FF; /* Text Main */
}

.page-login__form-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #244D84; /* Border color */
  border-radius: 8px;
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #AFC4E8; /* Text Secondary */
}

.page-login__form-input:focus {
  border-color: #4FA8FF; /* Glow color */
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 168, 255, 0.3); /* Glow color with opacity */
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow items to wrap */
  gap: 15px;
}

.page-login__forgot-password {
  color: #4FA8FF; /* Glow color */
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #F2C14E; /* Gold color */
}

.page-login__submit-button {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button color */
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button is responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

.page-login__register-prompt a {
  color: #4FA8FF; /* Glow color */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-prompt a:hover {
  color: #F2C14E; /* Gold color */
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #113B7A; /* Main brand color as background */
}

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

.page-login__benefit-card {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #08162B; /* Deep Navy for image background */
  padding: 10px;
}

.page-login__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3F8FF; /* Text Main */
}

.page-login__card-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Security Section */
.page-login__security-section {
  padding: 80px 20px;
  background-color: #08162B; /* Deep Navy */
}

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

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

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

.page-login__security-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  margin: 0 auto; /* Center image */
}

.page-login__sub-title {
  font-size: 22px;
  font-weight: bold;
  color: #F3F8FF; /* Text Main */
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-login__security-text p {
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-login__read-more-link {
  color: #4FA8FF; /* Glow color */
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-login__read-more-link:hover {
  color: #F2C14E; /* Gold color */
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 20px;
  background-color: #113B7A; /* Main brand color */
}

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

.page-login__trouble-card {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__trouble-card .page-login__card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #F3F8FF; /* Text Main */
}

.page-login__trouble-card .page-login__card-text {
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-login__trouble-link {
  color: #4FA8FF; /* Glow color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__trouble-link:hover {
  color: #F2C14E; /* Gold color */
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #08162B; /* Deep Navy */
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #113B7A; /* Main brand color */
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #244D84; /* Border color */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 4px 15px 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 25px;
  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: #08162B; /* Deep Navy on hover */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #4FA8FF; /* Glow color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 20px;
  background: #08162B; /* Deep Navy for answer background */
  border-radius: 0 0 12px 12px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
}
details.page-login__faq-item .page-login__faq-answer p {
    margin: 0;
}


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

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-login__container {
    padding: 20px 15px;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* HERO Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Important for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-image {
    margin-bottom: 20px;
    border-radius: 4px;
  }

  .page-login__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }

  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  /* CTA Buttons */
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Form Section */
  .page-login__form-section {
    padding: 40px 15px;
  }

  .page-login__login-form {
    padding: 30px 20px;
    border-radius: 8px;
  }

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

  .page-login__form-label {
    font-size: 15px;
    margin-bottom: 8px;
  }

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

  .page-login__form-actions {
    flex-direction: column; /* Stack actions vertically */
    align-items: stretch;
    gap: 15px;
    margin-top: 20px;
  }

  .page-login__forgot-password {
    text-align: center;
    order: 2; /* Put forgot password link below button */
  }

  .page-login__submit-button {
    order: 1; /* Put submit button above forgot password link */
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-prompt {
    font-size: 15px;
    margin-top: 20px;
  }

  /* Benefits Section */
  .page-login__benefits-section {
    padding: 40px 15px;
  }

  .page-login__benefit-card {
    padding: 25px;
    border-radius: 8px;
  }

  .page-login__benefit-card img {
    
    
    margin-bottom: 15px;
    border-radius: 6px;
  }

  .page-login__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-login__card-text {
    font-size: 15px;
  }

  /* Security Section */
  .page-login__security-section {
    padding: 40px 15px;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-image img {
    border-radius: 8px;
  }

  .page-login__sub-title {
    font-size: 20px;
    margin-top: 20px;
  }

  .page-login__security-text p {
    font-size: 15px;
  }

  /* Troubleshooting Section */
  .page-login__troubleshooting-section {
    padding: 40px 15px;
  }

  .page-login__trouble-card {
    padding: 25px;
    border-radius: 8px;
  }

  .page-login__trouble-card .page-login__card-title {
    font-size: 18px;
  }

  .page-login__trouble-card .page-login__card-text {
    font-size: 14px;
  }

  /* CTA Section */
  .page-login__cta-section {
    padding: 40px 15px;
  }

  /* FAQ Section */
  .page-login__faq-section {
    padding: 40px 15px;
  }

  details.page-login__faq-item {
    border-radius: 8px;
  }
details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-qtext {
    font-size: 16px;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }
}

/* Ensure all images and containers are responsive and don't overflow */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-login__section,
.page-login__card,
.page-login__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  
  /* Buttons responsive styles for mobile */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__submit-button {
    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;
  }
  
  /* Button containers responsive styles for mobile */
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container,
  .page-login__form-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
    gap: 10px; /* Consistent gap for wrapped items */
  }
  
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically in mobile CTA */
  }
}