/* style/login.css */

/* Body background is handled by shared.css var(--bg-color) which is dark (#08160F). */
/* Therefore, text on default page background should be light (#F2FFF6). */

.page-login {
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for better text contrast */
}

.page-login__hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto;
}

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

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 5px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #A7D9B8; /* Text Secondary */
}

.page-login__forgot-password-link {
  display: block;
  text-align: right;
  color: #57E38D; /* Glow */
  font-size: 0.9em;
  margin-top: -10px;
  margin-bottom: 10px;
  text-decoration: none;
}

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

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-prompt {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  padding: 12px 20px;
  border: 2px solid #57E38D; /* Glow */
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #57E38D;
  color: #0A4B2C; /* Deep Green */
}

.page-login__advantages-section {
  background-color: #08160F; /* Background */
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__advantage-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-login__advantage-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-login__advantage-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__advantage-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__security-info-section {
  background-color: #F2FFF6; /* Text Main - light background */
  padding: 80px 20px;
  text-align: center;
  color: #0A4B2C; /* Deep Green - dark text for light background */
}

.page-login__security-info-section .page-login__section-title,
.page-login__security-info-section .page-login__sub-title {
  color: #0A4B2C; /* Deep Green */
}

.page-login__security-info-section .page-login__section-description,
.page-login__security-info-section p {
  color: #1E3A2A; /* Divider - slightly lighter dark text */
}

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

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

.page-login__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__mobile-access-section {
  background-color: #08160F; /* Background */
  padding: 80px 20px;
  text-align: center;
}

.page-login__mobile-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-login__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-login__mobile-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-login__faq-section {
  background-color: #11271B; /* Card BG - dark background */
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question:hover {
  background-color: #13994A; /* Slightly lighter green on hover */
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-login__faq-item[open] .page-login__faq-answer {
  max-height: 500px; /* For details tag */
  padding-top: 10px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__cta-bottom-section {
  background-color: #08160F; /* Background */
  padding: 60px 20px;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    transform: translateY(-30px);
    margin-bottom: -30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-bottom: 40px;
  }
  
  .page-login__hero-content {
    transform: translateY(0);
    margin-bottom: 0;
    padding: 30px 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form-wrapper {
    padding: 20px;
  }

  .page-login__advantages-section,
  .page-login__security-info-section,
  .page-login__mobile-access-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section {
    padding: 50px 15px;
  }

  .page-login__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }

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

  .page-login__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-login__advantage-item {
    padding: 20px;
  }

  .page-login__security-content,
  .page-login__mobile-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-login__mobile-content {
    flex-direction: column; /* Ensure image is below text for mobile */
  }

  .page-login__sub-title {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-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__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__form-wrapper,
  .page-login__advantages-grid,
  .page-login__advantage-item,
  .page-login__security-content,
  .page-login__security-text,
  .page-login__security-image-wrapper,
  .page-login__mobile-content,
  .page-login__mobile-image-wrapper,
  .page-login__mobile-text,
  .page-login__faq-list,
  .page-login__faq-item,
  .page-login__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }
  
  .page-login__hero-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__mobile-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Specific adjustments for hero content to avoid large gaps */
  .page-login__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content {
    padding: 20px 10px;
  }
  .page-login__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-login__section-title {
    font-size: clamp(1.4em, 6vw, 1.8em);
  }
  .page-login__sub-title {
    font-size: 1.3em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-login__faq-answer {
    padding: 0 15px 15px;
  }
}