/* style/login.css */

/* Custom Colors */
:root {
  --page-login-bg: #08160F;
  --page-login-card-bg: #11271B;
  --page-login-text-main: #F2FFF6;
  --page-login-text-secondary: #A7D9B8;
  --page-login-border: #2E7A4E;
  --page-login-glow: #57E38D;
  --page-login-gold: #F2C14E;
  --page-login-divider: #1E3A2A;
  --page-login-deep-green: #0A4B2C;
  --page-login-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the login page */
.page-login {
  background-color: var(--page-login-bg);
  color: var(--page-login-text-main);
  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;
  color: var(--page-login-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-login__text-block {
  font-size: 1.1em;
  color: var(--page-login-text-secondary);
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__inline-link {
  color: var(--page-login-glow);
  text-decoration: underline;
}

/* Buttons */
.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-login__btn--primary {
  background: var(--page-login-btn-gradient);
  color: var(--page-login-text-main);
  border: none;
}

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

.page-login__btn--secondary {
  background: transparent;
  color: var(--page-login-glow);
  border: 2px solid var(--page-login-glow);
}

.page-login__btn--secondary:hover {
  background: var(--page-login-glow);
  color: var(--page-login-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-login__btn--full-width {
  width: 100%;
  max-width: 300px; /* Limit max width for form buttons */
  margin-left: auto;
  margin-right: auto;
  display: block; /* Ensure it takes full width of its parent in flex context */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-login__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--page-login-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: var(--page-login-text-main);
  margin-bottom: 30px;
}

.page-login__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Welcome Section */
.page-login__welcome-section {
  padding: 80px 0;
  background-color: var(--page-login-bg);
  text-align: center;
}

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

.page-login__feature-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-login-border);
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--page-login-gold);
  margin-bottom: 15px;
}

.page-login__feature-description {
  color: var(--page-login-text-secondary);
  font-size: 1em;
}

/* Login Form Section */
.page-login__login-form-section {
  padding: 80px 0;
  background-color: var(--page-login-deep-green); /* Use a darker green for contrast */
}

.page-login__login-form-container {
  width: 100%; /* desktop width for flex container */
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: var(--page-login-card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-login-border);
}

.page-login__login-form-content {
  flex: 1;
  min-width: 300px;
}

.page-login__login-illustration {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__illustration-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element */
}

.page-login__login-form {
  margin-top: 30px;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--page-login-text-main);
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-login-border);
  border-radius: 5px;
  background-color: #0A2218; /* Slightly lighter than card bg */
  color: var(--page-login-text-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--page-login-text-secondary);
  opacity: 0.7;
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  color: var(--page-login-text-secondary);
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: var(--page-login-text-secondary);
}

.page-login__forgot-password-link {
  color: var(--page-login-glow);
  text-decoration: none;
}

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

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 1em;
  color: var(--page-login-text-secondary);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: var(--page-login-bg);
  text-align: center;
}

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

.page-login__security-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-login-border);
}

.page-login__security-title {
  font-size: 1.5em;
  color: var(--page-login-gold);
  margin-bottom: 15px;
}

.page-login__security-description {
  color: var(--page-login-text-secondary);
  font-size: 1em;
}

.page-login__security-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--page-login-deep-green); /* Darker background for contrast */
  text-align: center;
}

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

.page-login__faq-item {
  background-color: var(--page-login-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-login-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for WebKit */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-login-text-main);
  cursor: pointer;
  background-color: var(--page-login-card-bg);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.3); /* Lighter hover for dark background */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-login-glow);
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  color: var(--page-login-text-secondary);
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid var(--page-login-divider);
  background-color: rgba(17, 39, 27, 0.8); /* Slightly transparent for visual depth */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: var(--page-login-bg);
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-login__login-form-container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__login-illustration {
    margin-top: 40px;
  }
  
  .page-login__hero-section {
    height: 500px;
  }
  
  .page-login__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-login__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-login__text-block {
    font-size: 1em;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images/videos/buttons responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__welcome-section,
  .page-login__login-form-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__login-form-container,
  .page-login__security-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

  /* Buttons responsive */
  .page-login__btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__hero-cta-buttons,
  .page-login__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-login__hero-section {
    height: auto; /* Allow height to adjust */
    padding-bottom: 40px;
  }

  .page-login__hero-content {
    padding: 20px;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-form-container {
    padding: 25px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-login__section-title {
    font-size: 1.8em;
  }
}