/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff;
  font-weight: bold;
}

.page-login__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__inline-link {
  color: #FFFF00; /* Yellow for links, ensure contrast */
  text-decoration: underline;
}

.page-login__inline-link:hover {
  color: #C30808;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim image for text readability */
}

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

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

/* Login Form */
.page-login__login-form-wrapper {
  background-color: #0a0a0a; /* Dark background for the form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 40px auto 0;
  text-align: left;
}

.page-login__form-title {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #1a1a1a; /* Slightly lighter dark for input */
  color: #ffffff;
  font-size: 1em;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom Login button color */
  color: #ffffff; /* Ensured white text for contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background-color: #a00606;
}

.page-login__forgot-password-link {
  display: block;
  text-align: center;
  color: #FFFF00; /* Yellow for forgotten password link */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #ffffff;
}

.page-login__register-link {
  color: #FFFF00; /* Yellow for register link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Why Login Section */
.page-login__why-login .page-login__section-title {
  color: #ffffff;
}

/* How to Login Section */
.page-login__how-to-login .page-login__section-title {
  color: #ffffff;
}

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

.page-login__step-item {
  background-color: #1a1a1a; /* Darker background for steps */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__step-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for step titles */
  margin-bottom: 15px;
}

.page-login__step-title--tip {
  color: #017439; /* Brand green for tip title */
  margin-top: 40px;
  font-size: 1.8em;
}

.page-login__list {
  list-style-type: disc;
  padding-left: 25px;
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
}

.page-login__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Troubleshooting Section */
.page-login__troubleshooting .page-login__section-title {
  color: #ffffff;
}

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

.page-login__troubleshoot-item {
  background-color: #1a1a1a; /* Darker background for troubleshoot items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
}

.page-login__troubleshoot-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for troubleshoot titles */
  margin-bottom: 15px;
}

/* Security Section */
.page-login__security {
  background-color: #017439; /* Brand green background */
  color: #ffffff;
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__security .page-login__list {
  list-style-type: check; /* Custom list style */
  padding-left: 0;
  margin-left: 0;
}

.page-login__security .page-login__list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  position: relative;
  padding-left: 30px;
}

.page-login__security .page-login__list-item::before {
  content: '✓'; /* Checkmark icon */
  color: #FFFF00; /* Yellow checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Register CTA Section */
.page-login__register-cta .page-login__section-title {
  color: #ffffff;
}

.page-login__register-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

.page-login__btn-register {
  padding: 15px 30px;
  background-color: #C30808; /* Custom Register button color */
  color: #ffffff; /* Ensured white text for contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background-color: #a00606;
}

.page-login__btn-login-secondary {
  padding: 15px 30px;
  background-color: #017439; /* Brand green for secondary login button */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login-secondary:hover {
  background-color: #005a2e;
}

.page-login__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
}

/* FAQ Section */
.page-login__faq-section .page-login__section-title {
  color: #ffffff;
}

.page-login__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  background-color: #017439; /* Brand green for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFFF00; /* Yellow toggle icon */
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #ffffff;
  background-color: #0a0a0a; /* Main dark background for answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-login__section {
    padding: 40px 0;
  }

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

  .page-login__main-title {
    font-size: 2.5em;
  }

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

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

  .page-login__login-form-wrapper {
    padding: 30px;
    margin: 20px auto 0;
  }

  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-login__form-input {
    width: calc(100% - 20px) !important;
    padding: 10px !important;
  }

  .page-login__btn-login, .page-login__btn-register, .page-login__btn-login-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-actions, .page-login__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-login__step-item, .page-login__troubleshoot-item {
    padding: 20px;
  }

  .page-login__step-title, .page-login__troubleshoot-title {
    font-size: 1.3em;
  }

  .page-login__security-content {
    flex-direction: column;
  }

  .page-login__security-image {
    max-width: 100%;
    width: 100%;
  }

  .page-login__promo-image {
    max-width: 100%;
    width: 100%;
  }

  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__steps-container,
  .page-login__troubleshoot-grid,
  .page-login__security-content,
  .page-login__register-content,
  .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;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-login__security .page-login__list-item::before {
    left: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-content {
    margin: 0 10px;
  }
}