/* style/login.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg: #0a0a0a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-login__card {
  background: var(--card-bg-dark);
  color: var(--light-text);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background-image: url('[GALLERY:hero:login,qq88 okvip,background,vietnam]'); /* Hero background image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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

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

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

.page-login__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.page-login__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

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

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

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

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

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

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

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 1em;
  user-select: none;
  color: #cccccc;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login__checkbox-container:hover input ~ .page-login__checkbox-checkmark {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

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

.page-login__forgot-password:hover {
  color: var(--secondary-color);
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--primary-color);
  color: var(--light-text);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-login__submit-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.page-login__register-link {
  margin-top: 20px;
  color: #cccccc;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__benefits-title {
  font-size: 2.8em;
  color: var(--light-text);
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-login__benefit-item {
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

/* Promotion CTA Section */
.page-login__promotion-cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-login__promotion-cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.page-login__promotion-cta-title {
  font-size: 2.5em;
  color: var(--light-text);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__promotion-cta-description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* Buttons */
.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

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

.page-login__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

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

.page-login__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

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

.page-login__faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.page-login__faq-main-title {
  font-size: 2.5em;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  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: var(--primary-color);
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--light-text);
  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;
  color: #cccccc;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Floating Button */
.page-login__mobile-float-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; /* Hidden by default, show on mobile */
  width: 100%;
  max-width: 90%;
  box-sizing: border-box;
}

.page-login__float-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: var(--dark-text);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__float-btn:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__benefits-title {
    font-size: 2.2em;
  }
  .page-login__promotion-cta-title {
    font-size: 2em;
  }
}

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

  .page-login__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-login__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-login__form-section {
    padding: 40px 15px;
  }

  .page-login__form-container {
    padding: 25px;
  }

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

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

  .page-login__benefits-section {
    padding: 60px 15px;
  }

  .page-login__benefits-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

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

  .page-login__benefit-item {
    padding: 25px;
  }

  .page-login__promotion-cta-section {
    padding: 40px 15px;
  }

  .page-login__promotion-cta-container {
    padding: 30px;
  }

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

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

  .page-login__faq-section {
    padding: 60px 15px;
  }

  .page-login__faq-container {
    padding: 30px;
  }

  .page-login__faq-main-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

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

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

  /* Mobile float button visible */
  .page-login__mobile-float-button {
    display: block;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-container,
  .page-login__form-container,
  .page-login__benefits-container,
  .page-login__promotion-cta-container,
  .page-login__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__benefits-title {
    font-size: 1.6em;
  }
  .page-login__promotion-cta-title {
    font-size: 1.6em;
  }
  .page-login__faq-main-title {
    font-size: 1.6em;
  }
}