/* style/login.css */

.page-login {
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - Body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #F3F8FF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(8, 22, 43, 0.7); /* Deep Navy with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-login__form-section {
  padding: 60px 0;
}

.page-login__form-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__login-card {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  flex: 1;
  min-width: 400px;
  box-sizing: border-box;
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #AFC4E8; /* Text Secondary */
  font-weight: bold;
}

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

.page-login__form-input::placeholder {
  color: rgba(175, 196, 232, 0.7); /* Text Secondary with opacity */
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 25px;
  color: #4FA8FF; /* Glow */
  font-size: 0.95em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #2B73F6;
}

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

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

.page-login__register-cta {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #1B3357; /* Divider */
  padding-top: 25px;
}

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

.page-login__register-button {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #F2C14E; /* Gold */
  border-radius: 5px;
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__register-button:hover {
  background-color: #F2C14E;
  color: #08162B; /* Deep Navy */
}

.page-login__form-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefits-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-login__benefit-item {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-login__benefit-description {
  color: #AFC4E8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__faq-section {
  padding: 60px 0;
}

.page-login__faq-list {
  margin-top: 30px;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}
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(43, 115, 246, 0.1); /* Lighter version of primary button color */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #4FA8FF; /* Glow */
  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(16, 35, 63, 0.8); /* Slightly darker Card BG */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8; /* Text Secondary */
}

/* General image responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General button responsiveness */
.page-login__submit-button,
.page-login__register-button,
.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 Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-login__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-login__hero-section {
    padding-top: 10px !important;
    min-height: 300px;
  }

  .page-login__hero-content {
    padding: 20px 15px;
    max-width: 90%;
  }

  .page-login__main-title {
    font-size: 1.8em; /* Adjust H1 size for mobile */
  }

  .page-login__subtitle {
    font-size: 0.95em;
  }

  .page-login__form-section {
    padding: 40px 0;
  }

  .page-login__form-section .page-login__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__login-card {
    padding: 30px 20px;
    min-width: unset;
    width: 100%;
  }

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

  .page-login__form-image-wrapper {
    order: -1; /* Image appears above form on mobile */
    width: 100%;
  }

  .page-login__form-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-login__submit-button,
  .page-login__register-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-login__benefits-section {
    padding: 40px 0;
  }

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

  .page-login__benefits-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 20px;
  }

  .page-login__benefit-item {
    padding: 25px 15px;
  }

  .page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-login__benefit-title {
    font-size: 1.2em;
  }

  .page-login__benefit-description {
    font-size: 0.9em;
  }

  .page-login__faq-section {
    padding: 40px 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;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* All images must be responsive on mobile */
  .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;
  }

  /* All buttons must be responsive on mobile */
  .page-login__submit-button,
  .page-login__register-button,
  .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; /* Ensure vertical stacking for multiple buttons */
  }
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-login__container {
    padding: 0 30px;
  }

  .page-login__form-section .page-login__container {
    flex-direction: column;
    gap: 40px;
  }

  .page-login__login-card {
    width: 80%;
    max-width: 600px;
  }

  .page-login__form-image-wrapper {
    width: 80%;
    max-width: 600px;
  }

  .page-login__benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}