/* style/login.css */

/* Base styles for the login page content */
.page-login {
  color: #ffffff; /* Light text for dark body background #333 */
  background-color: #1a1a1a; /* Auxiliary color for the main content area */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
  text-align: center;
  padding: 40px 20px;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle background effect */
}

.page-login__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-login__main-heading {
  font-size: 2.8em;
  color: #FFD700; /* Gold primary color for heading */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Call to Action Buttons */
.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping */
}

.page-login__cta-button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A1A1A; /* Dark text on gold */
  border: 2px solid #FFD700;
}

.page-login__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__cta-button--secondary {
  background-color: #1a1a1a; /* Dark background */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-login__cta-button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-login__cta-button--full-width {
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Content Area */
.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-login__section-wrapper {
  background-color: rgba(0, 0, 0, 0.4); /* Slightly lighter dark background for sections */
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-login__section-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 25px;
  text-align: center;
}

.page-login__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Login Form Section */
.page-login__form-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

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

.page-login__form-container {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  max-width: 450px;
  width: 100%;
  margin-top: 20px;
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700; /* Style checkbox with brand color */
}

.page-login__checkbox-label {
  color: #e0e0e0;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-login__register-prompt {
  margin-top: 20px;
  color: #e0e0e0;
}

/* Login Process Section */
.page-login__process-list {
  list-style: none; /* Remove default list styling */
  padding: 0;
  margin: 0;
  counter-reset: process-step; /* Initialize counter */
}

.page-login__process-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.page-login__process-item::before {
  counter-increment: process-step; /* Increment counter */
  content: counter(process-step);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFD700;
  color: #1A1A1A;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-login__process-step-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-login__process-description {
  color: #e0e0e0;
}

/* Security Section */
.page-login__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-login__security-item {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__security-image {
  width: 100%; /* Ensure images take full width of their container */
  height: auto;
  max-width: 400px; /* Example max-width, adjust as needed */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min-size for content images */
  min-height: 200px;
}

.page-login__security-heading {
  color: #FFD700;
  font-size: 1.3em;
  margin-bottom: 15px;
}

.page-login__security-description {
  color: #e0e0e0;
  font-size: 0.95em;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 30px;
}

.page-login__faq-item {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-size: 1em;
}

/* CTA Section */
.page-login__cta-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
  border-radius: 10px;
}

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

.page-login__cta-container {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.page-login__cta-heading {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-heading {
    font-size: 2.4em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__cta-heading {
    font-size: 2em;
  }
  .page-login__content-area {
    padding: 40px 15px;
  }
  .page-login__section-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }
  .page-login__hero-section,
  .page-login__cta-section {
    min-height: 350px;
    padding: 30px 15px;
  }
  .page-login__main-heading {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-login__content-area {
    padding: 30px 10px;
  }
  .page-login__section-wrapper {
    padding: 20px;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__process-item {
    padding-left: 50px;
  }
  .page-login__process-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page-login__process-step-title {
    font-size: 1.2em;
  }
  .page-login__security-grid {
    grid-template-columns: 1fr;
  }
  .page-login__security-image {
    max-width: 100%; /* Ensure images don't overflow */
    min-width: 200px;
    min-height: 200px;
    height: auto;
  }
  .page-login__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-login__cta-heading {
    font-size: 1.8em;
  }
  .page-login__cta-description {
    font-size: 1em;
  }
  .page-login__form-container {
    padding: 30px;
  }
  /* Ensure all content area images are responsive and don't overflow */
  .page-login img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-login__main-heading {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__section-title {
    font-size: 1.4em;
  }
  .page-login__cta-heading {
    font-size: 1.6em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password-link {
    margin-top: 5px;
  }
}