/* style/login.css */
/* 
  Body background color from shared.css is #121212 (dark).
  All text within .page-login should use light colors like #ffffff.
  Custom colors: Đăng ký #C30808, Đăng nhập #C30808, background #FFFFFF (for form), Đăng ký và Đăng nhập font #FFFF00.
*/

.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content background is transparent, letting body background show */
}

/* Fixed Header Spacing */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Ensure hero section is tall enough */
  text-align: center;
  background: linear-gradient(135deg, #017439, #004d2b); /* Gradient using brand color */
  color: #ffffff;
}

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

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for login/register font on hero */
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-login__login-form-wrapper {
  background-color: #FFFFFF; /* Custom background for the form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  color: #333333; /* Dark text for light form background */
  text-align: left;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__btn-login {
  background-color: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom font color for login button */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a00606;
}

.page-login__link-forgot-password {
  color: #017439; /* Brand color for links on white background */
  text-decoration: none;
  font-size: 0.95em;
  text-align: center;
}

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

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
}

.page-login__link-register {
  color: #C30808; /* Custom color for register link */
  text-decoration: none;
  font-weight: bold;
}

.page-login__link-register:hover {
  text-decoration: underline;
}

.page-login__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Background image, subtle */
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom font color for titles */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

.page-login__dark-bg {
  background-color: #017439; /* Brand main color as dark background */
  color: #ffffff; /* White text on brand color background */
}

.page-login__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text on white background */
}

/* Why Choose Us Section */
.page-login__why-choose-us-section {
  padding: 80px 0;
}

.page-login__why-choose-us-section .page-login__section-title,
.page-login__why-choose-us-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__feature-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for titles on white background */
}

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* Video Section */
.page-login__video-section {
  padding: 80px 0;
}

.page-login__video-section .page-login__section-title,
.page-login__video-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Login Guide Section */
.page-login__login-guide-section {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-login__login-guide-section .page-login__section-title {
  color: #017439; /* Brand color for title on light background */
}

.page-login__login-guide-section .page-login__section-description {
  color: #555555;
}

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

.page-login__guide-step {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-login__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-login__step-text {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
}

.page-login__troubleshooting-section .page-login__section-title,
.page-login__troubleshooting-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__troubleshooting-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-login__troubleshooting-card .page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__troubleshooting-card .page-login__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* Security Info Section */
.page-login__security-info-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
}

.page-login__security-info-section .page-login__section-title {
  color: #017439;
}

.page-login__security-info-section .page-login__section-description {
  color: #555555;
}

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

.page-login__security-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-login__security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-login__security-subtitle {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-login__security-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  padding: 80px 0;
}

.page-login__responsible-gaming-section .page-login__section-title,
.page-login__responsible-gaming-section .page-login__section-description {
  color: #ffffff;
}

.page-login__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__responsible-gaming-image {
  flex: 1 1 40%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__responsible-gaming-text {
  flex: 1 1 50%;
  line-height: 1.6;
  font-size: 1.05em;
}

.page-login__responsible-gaming-text p {
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  background-color: #C30808; /* Custom color for secondary button */
  color: #FFFF00; /* Custom font color for secondary button */
  padding: 12px 25px;
  border: 2px solid #C30808;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

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

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  text-align: center;
  color: #333333;
}

.page-login__cta-section .page-login__section-title {
  color: #017439;
}

.page-login__cta-section .page-login__section-description {
  color: #555555;
}

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

.page-login__btn-primary {
  display: inline-block;
  background-color: #017439; /* Brand color for primary button */
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-primary:hover {
  background-color: #005c26;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
}

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-description {
  color: #ffffff;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #017439;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #C30808;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "-";
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #eee;
}

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

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

  .page-login__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__responsible-gaming-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 60vh;
  }

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

  .page-login__intro-text {
    font-size: 1em;
  }

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

  .page-login__btn-login,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

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

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

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

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__troubleshooting-cards,
  .page-login__security-list {
    grid-template-columns: 1fr;
  }

  .page-login__feature-card,
  .page-login__guide-step,
  .page-login__troubleshooting-card,
  .page-login__security-item {
    padding: 25px;
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

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

  .page-login__form-actions {
    gap: 10px;
  }

  .page-login__btn-login,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100%;
  }

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