/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency, though body bg is global */
}

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

.page-login__dark-bg {
  background-color: #333333; /* Auxiliary color for sections */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #CC0000; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: linear-gradient(135deg, #333333, #0a0a0a);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #CC0000; /* Vibrant red for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}

.page-login__login-form {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #222;
  color: #f0f0f0;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-group--captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
}

.page-login__form-input--captcha {
  flex: 1;
  min-width: 150px;
}

.page-login__captcha-image {
  border-radius: 8px;
  border: 1px solid #555;
  height: 50px; /* fixed height for captcha */
  width: 150px; /* fixed width for captcha */
  object-fit: cover;
}

.page-login__form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  flex-grow: 1;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-login__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #CC0000;
  border: 2px solid #CC0000;
}

.page-login__btn-secondary:hover {
  background-color: #CC0000;
  color: #ffffff;
}

.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #CC0000;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__form-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-login__form-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Benefits Section */
.page-login__benefits-section,
.page-login__guide-section,
.page-login__security-section,
.page-login__promotions-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
}

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

.page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #CC0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  color: #cccccc;
  font-size: 1em;
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
  font-size: 2.5em;
  color: #CC0000;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__step-text {
  color: #cccccc;
}

.page-login__troubleshoot-area {
  background-color: rgba(204, 0, 0, 0.1);
  padding: 30px;
  border-radius: 15px;
  margin-top: 60px;
  text-align: center;
}

.page-login__troubleshoot-title {
  font-size: 1.8em;
  color: #CC0000;
  margin-bottom: 15px;
}

.page-login__troubleshoot-text {
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-login__text-link {
  color: #CC0000;
  text-decoration: none;
}

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

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  /* Removed filter: brightness(0) saturate(100%) invert(18%) sepia(87%) saturate(7483%) hue-rotate(352deg) brightness(98%) contrast(100%); as it changes original image color */
  min-width: 200px;
  min-height: 200px;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #CC0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-text {
  color: #cccccc;
}

/* Promotions Section */
.page-login__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-login__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__promo-card h3,
.page-login__promo-card p {
  padding: 0 20px;
}

.page-login__promo-title {
  font-size: 1.6em;
  color: #CC0000;
  margin: 20px 0 10px 0;
  font-weight: bold;
}

.page-login__promo-text {
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__promo-button {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  box-sizing: border-box;
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  color: #CC0000;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-login__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-login__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #CC0000, #ff3333);
}

.page-login__cta-container {
  max-width: 800px;
}

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

.page-login__cta-button {
  min-width: 200px;
  padding: 15px 30px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__intro-text {
    font-size: 1.1em;
  }
  .page-login__login-form-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }
  .page-login__form-illustration {
    order: -1; /* Move illustration above form on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__hero-section {
    padding: 60px 0;
    min-height: 500px;
  }
  .page-login__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__security-features,
  .page-login__promo-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }

  /* Image containers responsive */
  .page-login__form-illustration,
  .page-login__benefit-item,
  .page-login__feature-item,
  .page-login__promo-card,
  .page-login__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form-actions,
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__promo-button {
    width: auto;
  }
  
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  /* Video responsive - though not used on this page, added for completeness based on general requirements */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__form-title {
    font-size: 1.6em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__security-features,
  .page-login__promo-grid {
    grid-template-columns: 1fr;
  }
}