/* style/login.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #0d1117;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --border-color: #e0e0e0;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
}

.page-login {
  color: var(--light-text-color); /* Default light text for dark body background */
  background-color: var(--dark-bg-color);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-login__hero-section {
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a0e14 100%);
}

.page-login__main-title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--light-text-color);
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background: var(--card-bg-light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto 40px auto;
  color: var(--dark-text-color);
  text-align: left;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  color: var(--dark-text-color);
  background-color: #f9f9f9;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

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

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

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  text-align: center;
  text-decoration: none;
}

.page-login__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.page-login__btn-primary .page-login__button-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
  color: var(--dark-text-color);
}

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

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

.page-login__hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light-text-color);
}

.page-login__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: #1a1e24;
}

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

.page-login__grid-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--light-text-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__card-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-login__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--dark-text-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
  text-decoration: none;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.page-login__security-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  background: linear-gradient(90deg, #0056b3 0%, var(--dark-bg-color) 100%);
}

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

.page-login__security-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--light-text-color);
}

.page-login__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__security-item-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--light-text-color);
}

.page-login__security-item-text {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #1a1e24;
}

.page-login__content-area {
  background: var(--card-bg-dark);
  padding: 40px;
  border-radius: 10px;
  margin-top: 50px;
  color: var(--light-text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__sub-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-login__sub-title:first-of-type {
  margin-top: 0;
}

.page-login__paragraph {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-login__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-login__ordered-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.page-login__ordered-list strong {
  color: var(--light-text-color);
}

.page-login__troubleshooting-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__why-us-section {
  padding: 80px 0;
  background-color: #0a0e14;
}

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

.page-login__why-us-section .page-login__grid-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-login__why-us-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-login__why-us-text {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

.page-login__explore-button {
  margin-top: 40px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1e24;
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  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: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--light-text-color);
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Changed from '-' to '+' with rotation */
  color: var(--light-text-color);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
}

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

.page-login__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, var(--secondary-color) 0%, #ff8c00 100%);
  text-align: center;
  color: var(--dark-text-color);
}

.page-login__cta-section .page-login__section-title {
  color: var(--dark-text-color);
}

.page-login__cta-section .page-login__section-description {
  color: var(--dark-text-color);
}

.page-login__register-cta-button {
  margin-top: 40px;
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.page-login__register-cta-button:hover {
  background: #0056b3;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.page-login__cta-image {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 38px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__hero-image, .page-login__troubleshooting-image, .page-login__cta-image {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    padding: 30px;
    max-width: 100%;
  }
  .page-login__form-input {
    width: calc(100% - 20px) !important;
  }
  .page-login__btn-primary, .page-login__btn-secondary, .page-login__login-button, .page-login__register-cta-button, .page-login__explore-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__hero-image, .page-login__troubleshooting-image, .page-login__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  .page-login__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-login__benefits-section, .page-login__security-section, .page-login__troubleshooting-section, .page-login__why-us-section, .page-login__faq-section, .page-login__cta-section {
    padding: 50px 0;
  }
  .page-login__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__card-image {
    height: 180px;
  }
  .page-login__card-title {
    font-size: 20px;
  }
  .page-login__security-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__sub-title {
    font-size: 24px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
  .page-login__faq-answer p {
    font-size: 14px;
  }
  .page-login__ordered-list li {
    font-size: 15px;
  }
  .page-login__why-us-title {
    font-size: 20px;
  }
  .page-login__why-us-text {
    font-size: 15px;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section, .page-login__card, .page-login__container, .page-login__form-wrapper, .page-login__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__hero-section, .page-login__benefits-section, .page-login__security-section, .page-login__troubleshooting-section, .page-login__why-us-section, .page-login__faq-section, .page-login__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
}