/* style/login.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px; /* Adjust for fixed header on mobile */
  }
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

/* Hero Section */
.page-login__hero-section {
  background: var(--bg-dark);
  padding: 60px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__hero-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 992px) {
  .page-login__hero-section .page-login__container {
    flex-direction: column-reverse;
    text-align: center;
  }
}

.page-login__form-wrapper {
  flex: 1;
  max-width: 600px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 36px;
  }
}

.page-login__hero-description {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .page-login__hero-description {
    font-size: 16px;
  }
}

.page-login__form-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__form-title {
  font-size: 28px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

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

.page-login__form-label {
  display: block;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-login__forgot-password-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

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

.page-login__login-button {
  flex-grow: 1;
  max-width: 180px;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  color: #ccc;
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-login__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

@media (max-width: 992px) {
  .page-login__form-wrapper {
    max-width: 100%;
    padding: 0;
  }
  .page-login__image-wrapper {
    margin-top: 40px;
  }
}

/* Benefits Section */
.page-login__benefits-section {
  background: var(--primary-color);
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
}

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

.page-login__benefit-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

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

.page-login__benefit-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-login__faq-section {
  background: var(--bg-dark);
  padding: 80px 0;
  color: var(--text-light);
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 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.15);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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 {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.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);
  color: #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* Register CTA Section */
.page-login__register-cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.page-login__register-cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-login__btn-secondary:hover {
  background: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments for general elements */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__form-card {
    padding: 30px 20px;
  }
  .page-login__form-title {
    font-size: 24px;
  }
  .page-login__form-input {
    padding: 12px 15px;
  }
  .page-login__form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .page-login__login-button, .page-login__forgot-password-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
  }
  .page-login__forgot-password-link {
    margin-bottom: 10px;
  }
  .page-login__benefits-section, .page-login__faq-section, .page-login__register-cta-section {
    padding: 60px 0;
  }
  .page-login__benefit-item {
    padding: 25px;
  }
  .page-login__benefit-icon {
    width: 80px;
    height: 80px;
  }
  .page-login__benefit-title {
    font-size: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px !important;
  }
  .page-login__register-cta-description {
    font-size: 16px;
  }
  .page-login__btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 30px;
    font-size: 16px;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Image responsive adaptations */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-section .page-login__container,
  .page-login__benefits-section .page-login__container,
  .page-login__faq-section .page-login__container,
  .page-login__register-cta-section .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}