/* style/login.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f8f9fa;
  --card-bg-dark-theme: rgba(255, 255, 255, 0.08);
  --border-color-dark-theme: rgba(255, 255, 255, 0.15);
}

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body */
}

/* Base container for consistent spacing */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections */
.page-login__hero-section,
.page-login__video-section,
.page-login__benefits-section,
.page-login__guide-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Color themes for sections */
.page-login__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

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

/* Hero Section */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.page-login__hero-content {
  flex: 1;
  padding-right: 40px;
}

.page-login__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* Login Card */
.page-login__login-card {
  background-color: var(--card-bg-dark-theme);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border-color-dark-theme);
}

.page-login__login-card-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color-dark-bg);
  font-size: 1em;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.page-login__register-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
}

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

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

/* Buttons */
.page-login__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-login__btn--login {
  background-color: var(--login-button-color);
  color: var(--secondary-color);
  border: none;
  width: 100%;
  margin-top: 10px;
}

.page-login__btn--login:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

.page-login__btn--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  margin-top: 20px;
}

.page-login__btn--primary:hover {
  background-color: #1e87c2;
  transform: translateY(-2px);
}

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

.page-login__btn--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-login__btn--download {
  background-color: #4CAF50;
  color: var(--secondary-color);
  border: none;
  margin-top: 20px;
  width: 100%;
}

.page-login__btn--download:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

/* Video Section */
.page-login__video-section {
  text-align: center;
}

.page-login__video-container {
  padding-top: 0; /* Shared already handles body padding */
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  cursor: pointer;
}

.page-login__video-cta {
  display: inline-block;
  margin-top: 30px;
}

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

.page-login__benefit-card {
  background-color: var(--card-bg-dark-theme);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color-dark-theme);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure large images */
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* Guide Section */
.page-login__guide-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-login__guide-steps {
  flex: 1;
}

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

.page-login__guide-image {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.page-login__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-login__step-number {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  flex-shrink: 0;
  margin-right: 15px;
}

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

.page-login__step-text {
  color: var(--text-color-light-bg);
  font-size: 0.95em;
}

.page-login__additional-tip {
  margin-top: 30px;
  font-style: italic;
  color: var(--text-color-light-bg);
}

.page-login__contact-link {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-login__faq-title {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 20px;
}

.page-login__faq-answer p {
    margin: 0;
    font-size: 0.95em;
}

/* CTA Section */
.page-login__cta-section {
  text-align: center;
}

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

/* General Section Titles & Descriptions */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

.page-login__section-title.page-login__dark-bg {
  color: var(--secondary-color);
}

.page-login__section-title.page-login__light-bg {
  color: var(--text-color-light-bg);
}

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

.page-login__section-description.page-login__dark-bg {
  color: rgba(255, 255, 255, 0.8);
}

.page-login__section-description.page-login__light-bg {
  color: var(--text-color-light-bg);
}

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

  .page-login__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-login__guide-content {
    flex-direction: column;
  }

  .page-login__guide-image-wrapper {
    margin-top: 30px;
  }

  .page-login__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-section,
  .page-login__video-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile content is below fixed header */
  }

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

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-card {
    max-width: 100%;
    margin: 0 15px;
  }

  .page-login__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .page-login__faq-answer {
    padding: 0 20px;
  }

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-login__cta-buttons .page-login__btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Image and Video Responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__guide-image-wrapper,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-login__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

  .page-login__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__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__cta-buttons .page-login__btn {
    margin-top: 0;
  }
}