/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-top: 10px; /* Small top padding for first section, assuming body has shared header offset */
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-login__section-description {
  font-size: 18px;
  color: #FFF3E6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin-top: -10px; /* Adjust for the small padding-top on .page-login */
}

.page-login__hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-login__hero-text-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  max-width: 900px;
  margin: auto;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 52px); /* Responsive font size */
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.page-login__hero-description {
  font-size: 20px;
  color: #FFF3E6; /* Text Main */
  max-width: 700px;
  margin: 0 auto;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

.page-login__form-wrapper {
  background-color: #17191F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #A84F0C; /* Border */
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 5px;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password {
  color: #FFA53A;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #FFF3E6;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

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

.page-login__benefit-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

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

.page-login__benefit-title {
  font-size: 22px;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-login__benefit-text {
  font-size: 16px;
  color: #FFF3E6;
}

/* Security Info Section */
.page-login__security-info {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

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

.page-login__security-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__security-heading {
  font-size: 22px;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-login__security-text {
  font-size: 16px;
  color: #FFF3E6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

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

.page-login__troubleshooting-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshooting-heading {
  font-size: 22px;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-login__troubleshooting-text {
  font-size: 16px;
  color: #FFF3E6;
}

.page-login__contact-support {
  text-align: center;
  margin-top: 40px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #D96800; /* Deep Orange */
  border-radius: 5px;
  background-color: transparent;
  color: #FFA53A;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #D96800;
  color: #FFF3E6;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-login__faq-item summary.page-login__faq-question:hover {
  background-color: rgba(168, 79, 12, 0.2); /* Lighter hover for border color */
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background-color: rgba(23, 25, 31, 0.8); /* Slightly lighter than card BG */
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: #FFF3E6;
}

/* CTA Register Section */
.page-login__cta-register {
  padding: 80px 0;
  text-align: center;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 32px;
  }

  .page-login__section-description {
    font-size: 17px;
  }

  .page-login__hero-text-overlay {
    padding: 15px;
  }

  .page-login__main-title {
    font-size: clamp(24px, 3.5vw, 48px);
  }

  .page-login__hero-description {
    font-size: 18px;
  }

  .page-login__form-wrapper {
    padding: 30px;
  }

  .page-login__benefit-title, .page-login__security-heading, .page-login__troubleshooting-heading {
    font-size: 20px;
  }

  .page-login__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* Top section / Hero section top padding */
  .page-login {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-login__container,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-info,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__cta-register {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-login__hero-section {
    min-height: 300px;
  }

  .page-login__main-title {
    font-size: clamp(22px, 5vw, 36px); /* Smaller on mobile */
  }

  .page-login__hero-description {
    font-size: 16px;
  }

  .page-login__section-title {
    font-size: 28px;
    padding-top: 30px;
    margin-bottom: 15px;
  }

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

  .page-login__form-wrapper {
    padding: 25px;
  }

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

  .page-login__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-login__submit-button {
    padding: 12px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-prompt {
    margin-top: 20px;
    font-size: 15px;
  }

  .page-login__benefits-grid, .page-login__security-grid, .page-login__troubleshooting-grid {
    grid-template-columns: 1fr; /* Single column for grids */
    gap: 20px;
  }

  .page-login__benefit-item, .page-login__security-item, .page-login__troubleshooting-item {
    padding: 20px;
  }

  .page-login__benefit-title, .page-login__security-heading, .page-login__troubleshooting-heading {
    font-size: 18px;
  }

  .page-login__benefit-text, .page-login__security-text, .page-login__troubleshooting-text {
    font-size: 15px;
  }

  .page-login__contact-support {
    margin-top: 20px;
  }

  .page-login__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ specific mobile styles */
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-qtext {
    font-size: 15px;
  }

  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  .page-login__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}