/* style/login.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

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

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

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

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

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

.page-login__login-form-wrapper {
  background: var(--card-bg-dark);
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color-dark);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.page-login__checkbox-label {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

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

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

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 18px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-login__register-link:hover {
  color: var(--text-light);
  text-decoration: underline;
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-login__benefit-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow for icons */
}

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

.page-login__benefit-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-login__step-item {
  text-align: center;
  position: relative;
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 25px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
  font-size: 1.6em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-login__step-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

.page-login__tip-text {
  text-align: center;
  margin-top: 60px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-login__security-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color-dark);
}

.page-login__security-text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-login__security-subtitle {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  margin-top: 30px;
}

.page-login__security-text-block p {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__troubleshoot-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
}

.page-login__troubleshoot-subtitle {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-login__troubleshoot-item p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

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

.page-login__contact-support p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* App Section */
.page-login__app-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  text-align: center;
}

.page-login__app-download-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 60px;
}

.page-login__app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-login__app-icon {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__app-screenshot {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color-dark);
}

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

.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: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  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: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 2em;
  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: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--text-light);
  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(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1em;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color-dark);
  border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

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

  .page-login__login-form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__troubleshoot-section,
  .page-login__app-section,
  .page-login__faq-section {
    padding: 60px 0;
  }

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

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

  .page-login__login-form-wrapper {
    padding: 25px;
  }

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

  .page-login__form-label {
    font-size: 1em;
    margin-bottom: 8px;
  }

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

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .page-login__remember-me {
    margin-bottom: 10px;
  }

  .page-login__forgot-password-link {
    margin-left: 0;
  }

  .page-login__login-button,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 15px 20px !important;
    font-size: 1.05em !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login__app-download-grid {
    flex-direction: column;
    gap: 20px;
  }

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

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__troubleshoot-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-login__benefit-icon {
    width: 80px;
  }

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

  .page-login__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8em;
  }

  .page-login__step-title {
    font-size: 1.4em;
  }

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

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

  .page-login__security-subtitle {
    font-size: 1.5em;
    margin-top: 20px;
  }

  .page-login__troubleshoot-subtitle {
    font-size: 1.2em;
  }

  .page-login__contact-support p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__app-icon {
    width: 120px;
  }

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

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

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

  .page-login__faq-toggle {
    font-size: 1.8em;
    width: 28px;
    height: 28px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

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

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

  .page-login__section-description {
    font-size: 0.9em;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
  }

  .page-login__login-button {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-login__benefit-icon {
    width: 70px;
  }

  .page-login__benefit-title {
    font-size: 1.2em;
  }

  .page-login__step-title {
    font-size: 1.2em;
  }

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

  .page-login__app-icon {
    width: 100px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 0.95em !important;
    padding: 10px 20px !important;
  }
}