/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  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__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Secondary text color */
  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;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 80px;
  overflow: hidden;
  text-align: center;
}

.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;
  opacity: 0.2; /* Slightly dimmed to make text readable */
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(8, 22, 15, 0.7); /* Deep Green background with opacity */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-login__main-title {
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
  line-height: 1.2;
  letter-spacing: -0.03em;
  /* Avoid fixed font-size for H1, rely on responsiveness */
  font-size: clamp(2.5em, 5vw, 3.8em);
}

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

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

.page-login__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.page-login__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-login__btn--secondary {
  background: #11271B; /* Card BG color */
  color: #F2FFF6; /* Main text color */
  border: 2px solid #2E7A4E; /* Custom border color */
}

.page-login__btn--secondary:hover {
  transform: translateY(-3px);
  background-color: #0A4B2C; /* Deep Green */
  color: #57E38D; /* Glow color */
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
}

.page-login__form {
  background-color: #11271B; /* Card BG color */\  padding: 40px;
  border-radius: 15px;
  max-width: 500px;
  margin: 40px auto 20px auto;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  font-size: 1.1em;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #1E3A2A; /* Divider color */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Main text color */
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Secondary text color */
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: #57E38D; /* Glow color */
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.95em;
}

.page-login__checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #A7D9B8; /* Secondary text color */
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #22C768; /* Auxiliary color */
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #57E38D; /* Glow color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #F2C14E; /* Gold color */
  text-decoration: underline;
}

.page-login__btn--submit {
  width: 100%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  padding: 15px 20px;
  font-size: 1.2em;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn--submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-login__form-tips {
    background-color: #0A4B2C; /* Deep Green */
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #2E7A4E;
}

.page-login__form-tips-title {
    color: #F2C14E; /* Gold color */
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.page-login__form-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__form-tips li {
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-login__form-tips li::before {
    content: '✓';
    color: #57E38D; /* Glow color */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__benefit-card {
  background-color: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid #2E7A4E; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

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

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

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

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
}

.page-login__dark-bg {
  background-color: #08160F;
  color: #F2FFF6; /* Ensure light text on dark background */
}

.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-login__feature-item {
  background-color: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #57E38D; /* Glow color */
}

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

.page-login__security-cta {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG color */
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
  transition: box-shadow 0.3s ease;
}

.page-login__faq-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #0A4B2C; /* Deep Green on open */
  color: #F2C14E; /* Gold color for text on open */
}

.page-login__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #57E38D; /* Glow color */
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
  color: #F2C14E; /* Gold color for toggle on open */
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Secondary text color */
  font-size: 1em;
  line-height: 1.8;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__description,
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__hero-content {
    padding: 30px 15px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn {
    width: 100%;
    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__form-section, .page-login__benefits-section, .page-login__security-section, .page-login__faq-section, .page-login__cta-section {
    padding: 60px 0;
  }
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-login__benefits-grid, .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px 18px 20px;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-section {
    padding-bottom: 60px;
  }
  .page-login__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-login__form-tips ul {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__hero-content {
    padding: 25px 10px;
  }
  .page-login__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__form {
    padding: 30px 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__form-tips li {
    padding-left: 20px;
  }
}