/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Text color for dark background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* Ensure container takes full width on smaller screens */
  box-sizing: border-box;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-top: 20px; /* Space from header */
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFC107; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__form-title {
  font-size: 2em;
  color: #007BFF; /* Primary color for form title */
  margin-bottom: 25px;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #007BFF;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #007BFF; /* Primary color for checkbox */
}

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

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

.page-login__forgot-password-link:hover {
  color: #ffffff;
}

.page-login__submit-btn {
  background-color: #007BFF;
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-login__submit-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.page-login__register-text {
  margin-top: 20px;
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__register-link {
  color: #FFC107;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #ffffff;
}

/* General Section Styles */
.page-login__why-login-section,
.page-login__guide-section,
.page-login__security-tips-section,
.page-login__faq-section {
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.8em;
  color: #007BFF;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFC107;
  border-radius: 2px;
}

/* Grid for features and security tips */
.page-login__grid,
.page-login__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-login__feature-card,
.page-login__security-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards have equal height */
}

.page-login__feature-card:hover,
.page-login__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__feature-icon,
.page-login__security-icon {
  width: 100%; /* Ensure full width within card */
  max-width: 250px; /* Limit icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

.page-login__card-title,
.page-login__item-title {
  font-size: 1.8em;
  color: #FFC107;
  margin-bottom: 15px;
}

.page-login__card-description,
.page-login__item-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
  flex-grow: 1; /* Allow description to take available space */
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-login__btn-primary {
  background-color: #007BFF;
  color: #ffffff;
  border: 2px solid #007BFF;
}

.page-login__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFC107;
  border: 2px solid #FFC107;
}

.page-login__btn-secondary:hover {
  background-color: #FFC107;
  color: #000000;
  transform: translateY(-2px);
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-login__step-item {
  background: rgba(0, 123, 255, 0.1); /* Primary color light background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: #f0f0f0;
}

.page-login__step-number {
  background-color: #007BFF;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.4);
}

.page-login__step-title {
  font-size: 1.6em;
  color: #FFC107;
  margin-bottom: 15px;
}

.page-login__step-description {
  font-size: 1em;
  color: #e0e0e0;
  text-align: left;
  flex-grow: 1;
}

.page-login__additional-info {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 30px auto 0;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 123, 255, 0.2); /* Primary color light background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  color: #FFC107;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or '-' */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.3);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

.page-login__faq-answer p {
  color: #e0e0e0;
  font-size: 1em;
  margin: 0;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

  .page-login__hero-content {
    padding: 30px;
    max-width: 100%;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

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

  .page-login__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .page-login__grid,
  .page-login__security-grid,
  .page-login__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-login__feature-icon,
  .page-login__security-icon {
    max-width: 200px; /* Adjust for mobile */
  }

  /* Images responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Containers for images, videos, buttons */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__cta-buttons,
  .page-login__grid,
  .page-login__security-grid,
  .page-login__guide-steps,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-section {
    min-height: 550px;
  }
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__feature-card,
  .page-login__security-item,
  .page-login__step-item {
    padding: 20px;
  }
  .page-login__card-title,
  .page-login__item-title {
    font-size: 1.4em;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-title {
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
}