/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: #08160F; /* Custom background for the page content area */
  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;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green background for hero */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-login__hero-content-wrapper {
  width: 100%;
  position: relative; /* Ensure content is above image if any overlap */
  z-index: 1;
}

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

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

.page-login__login-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__card-title {
  font-size: 1.8rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 8px;
  font-weight: 500;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  background-color: #0A1E15; /* Slightly darker input background */
  color: #F2FFF6; /* Main text color */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #557A66; /* Placeholder color */
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  font-size: 0.95rem;
  color: #57E38D; /* Glow color for links */
  margin-bottom: 25px;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for primary button */
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

.page-login__register-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-top: 30px;
}

.page-login__register-link {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Section General Styles */
.page-login__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.05rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* Promo Video Section */
.page-login__promo-video-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-login__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer; /* Indicate it's clickable */
  background-color: #000; /* Fallback for video area */
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Ensure it behaves like a block element */
}

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

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

.page-login__benefit-item,
.page-login__security-item,
.page-login__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-login__benefit-icon,
.page-login__security-icon {
  width: 100%;
  max-width: 200px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title,
.page-login__security-title,
.page-login__step-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text,
.page-login__security-text,
.page-login__step-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.5;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
  border-top: 1px solid #1E3A2A; /* Divider */
}

/* How-to Login Section */
.page-login__how-to-login-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for this section */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-login__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F2C14E; /* Gold color */
  background-color: #1E3A2A; /* Divider color for background */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid #2E7A4E; /* Border color */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  background-color: #1E3A2A; /* Divider color for background */
  border-bottom: 1px solid #2E7A4E; /* Border color */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #0A4B2C; /* Deep Green when open */
  border-bottom-color: transparent;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(180deg);
}

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

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2C14E; /* Gold color */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for this section */
  border-top: 1px solid #1E3A2A; /* Divider */
  text-align: center;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary button */
  border: 2px solid #57E38D; /* Glow color for border */
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #57E38D;
  color: #11271B; /* Dark text on hover */
  border-color: #57E38D;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-image-wrapper {
    max-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-bottom: 40px;
  }

  .page-login__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

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

  .page-login__form-input,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .page-login__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-login__promo-video-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__how-to-login-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }

  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .page-login__benefit-item,
  .page-login__security-item,
  .page-login__step-item {
    padding: 25px;
  }

  .page-login__benefit-title,
  .page-login__security-title,
  .page-login__step-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-login__benefit-text,
  .page-login__security-text,
  .page-login__step-text {
    font-size: 0.9rem;
  }

  .page-login__faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }

  .page-login__faq-answer {
    font-size: 0.95rem;
    padding: 18px 20px;
  }

  .page-login__faq-toggle {
    font-size: 1.3rem;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Mobile specific overrides for images, videos, and buttons */
  .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__video-wrapper,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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; /* Add padding to prevent button text touching edges */
    padding-right: 15px;
  }
  .page-login__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none !important;
}