/* style/login.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f8f9fa;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-on-dark); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-dark);
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-on-dark);
  max-width: 900px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-login__subtitle {
  font-size: clamp(1em, 1.5vw, 1.25em);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-login__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit,
.page-login__btn-contact {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-login__btn-primary:hover {
  background-color: #e06c00;
  border-color: #e06c00;
}

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

.page-login__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-login__form-section {
  background-color: var(--background-light);
  color: var(--text-on-light);
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-on-light);
}

.page-login__form {
  background-color: var(--secondary-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-on-light);
}

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

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

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

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

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

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

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

.page-login__checkbox-label {
  color: var(--text-on-light);
}

.page-login__btn-submit {
  width: 100%;
  background-color: var(--login-button-color);
  color: var(--secondary-color);
  border: none;
  font-size: 1.2em;
  padding: 15px;
  border-radius: 8px;
}

.page-login__btn-submit:hover {
  background-color: #e06c00;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: var(--text-on-light);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__benefits-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width responsively */
  max-width: 200px; /* Example max-width for benefit icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

.page-login__benefit-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-login__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--secondary-color);
}

.page-login__troubleshooting-section {
  background-color: var(--background-light);
  color: var(--text-on-light);
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-login__step-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-login__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__step-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-on-light);
}

.page-login__btn-contact {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-login__btn-contact:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

.page-login__faq-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--secondary-color);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--secondary-color);
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--secondary-color);
}

.page-login__cta-bottom {
  background-color: var(--background-light);
  color: var(--text-on-light);
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-login__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-login__subtitle {
    font-size: clamp(1em, 4vw, 1.1em);
  }

  .page-login__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit,
  .page-login__btn-contact {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form {
    padding: 25px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__benefit-icon {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .page-login__form {
    padding: 20px;
  }
}