/* style/login.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-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(--background-dark);
}

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

.page-login__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-login__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-login__hero-section {
  padding: 120px 0 80px; /* Desktop padding-top for fixed header */
  text-align: center;
  background-image: url('[GALLERY:login:u888,login_hero,background,abstract]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-login__form-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__form-card {
  background-color: var(--text-light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-dark);
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-login__login-form {
  text-align: left;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--secondary-color);
}

.page-login__checkbox-label {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background: var(--secondary-color);
  color: var(--primary-color);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.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: var(--secondary-color);
  text-decoration: underline;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-login__security-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-login__security-content {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__security-item {
  flex: 1 1 300px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-login__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-login__security-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-login__troubleshooting-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-login__troubleshooting-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-login__troubleshooting-list li strong {
  color: var(--primary-color);
}

.page-login__app-download-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-login__app-card {
  background: rgba(255, 215, 0, 0.1);
  padding: 50px;
  border-radius: 15px;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-login__app-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__app-button {
  flex: 1 1 auto;
  max-width: 280px;
  box-sizing: border-box;
}

.page-login__app-image {
  width: 300px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  max-width: 100%;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

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

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X for active state */
}

.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 15px;
  opacity: 0;
  background: #fcfcfc;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #fcfcfc;
}

.page-login__faq-answer p {
  color: var(--text-dark);
  font-size: 0.95em;
}

.page-login__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* General image responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__subtitle {
    font-size: 1.2em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 100px 0 60px; /* Mobile padding-top for fixed header */
  }

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

  .page-login__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-login__form-section, .page-login__security-section, .page-login__troubleshooting-section, .page-login__app-download-section, .page-login__faq-section {
    padding: 50px 0;
  }

  .page-login__form-card {
    padding: 30px;
    max-width: 90% !important;
    margin: 0 auto;
  }

  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

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

  .page-login__submit-button {
    padding: 12px;
    font-size: 1em;
    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 {
    font-size: 0.9em;
  }

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

  .page-login__security-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-login__security-item {
    flex: 1 1 100%;
    padding: 25px;
  }

  .page-login__security-icon {
    width: 80px;
    height: 80px;
  }

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

  .page-login__troubleshooting-content {
    padding: 15px;
  }

  .page-login__troubleshooting-content p, .page-login__troubleshooting-list li {
    font-size: 0.95em;
  }

  .page-login__app-card {
    padding: 30px;
    max-width: 90% !important;
  }

  .page-login__app-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__app-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__app-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__app-image {
    width: 200px;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-question h3 {
    font-size: 1em;
  }

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

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  
  /* All images mobile responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__container, .page-login__form-card, .page-login__app-card, .page-login__security-item, .page-login__troubleshooting-content, .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}