/* style/login.css */

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

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

.page-login__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-login__dark-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #2a2a2a;
  color: #ffffff;
}

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

.page-login__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

.page-login__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.page-login__form-container {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

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

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

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

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

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

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

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__btn-submit {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-login__link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #00a04b;
  text-decoration: underline;
}

.page-login__link--forgot-password {
  font-size: 0.9em;
  text-align: right;
  width: 100%;
  color: #cccccc;
}

.page-login__link--forgot-password:hover {
  color: #ffffff;
}

.page-login__register-prompt {
  margin-top: 25px;
  color: #cccccc;
  font-size: 0.95em;
}

.page-login__link--register {
  color: #FFFF00;
}

.page-login__link--register:hover {
  color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-login__card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-login__card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__card-image {
  width: 100%; /* Ensure image fills card width */
  height: auto; /* Maintain aspect ratio */
  max-height: 200px; /* Limit height for uniform look */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: bold;
}

.page-login__card-text {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
}

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

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-login__security-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__security-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-login__security-text {
  color: #e0e0e0;
}

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

.page-login__cta-buttons--center {
  justify-content: center;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* New User Guide Section */
.page-login__new-user-guide-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-login__step-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 15px;
  border: 3px solid #FFFF00;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-login__step-text {
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-login__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-login__btn-secondary--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 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.2);
}

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

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

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: #FFFF00;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #cccccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* CTA Section */
.page-login__cta-section {
  background-color: #0d0d0d;
  padding: 80px 0;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2.2em;
  }

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

  .page-login__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-login__security-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-login__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-login__form-container {
    padding: 30px 20px;
  }

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

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

  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__btn-submit,
  .page-login__link--forgot-password {
    width: 100%;
    text-align: center;
  }

  .page-login__grid, .page-login__security-list, .page-login__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__card,
  .page-login__security-item,
  .page-login__step-card {
    padding: 20px;
  }

  .page-login__card-image {
    max-height: 150px;
  }

  .page-login__card-title {
    font-size: 1.3em;
  }

  .page-login__security-heading,
  .page-login__step-title {
    font-size: 1.2em;
  }

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

  .page-login__btn-primary--large,
  .page-login__btn-secondary--large {
    width: 100%;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-container,
  .page-login__grid,
  .page-login__security-list,
  .page-login__steps-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .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;
  }

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

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

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