/* style/login.css */
/* 
 * Màu sắc:
 * Chính: #017439 (Xanh lá đậm)
 * Phụ: #FFFFFF (Trắng)
 * Đăng ký/Đăng nhập nút nền: #C30808 (Đỏ)
 * Đăng ký/Đăng nhập nút chữ: #FFFF00 (Vàng)
 * Nền body: #000000 (Đen) - từ shared.css
 * Chữ chính: #FFFFFF (Trắng) - do nền body là đen
 */

.page-login {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 40px 0;
}

.page-login__hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7; /* Slightly dim the background image for readability */
}

.page-login__main-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom color for login/register font */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for form */
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
}

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

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

.page-login__btn {
  display: block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn--login {
  background-color: #C30808; /* Custom login button background */
  color: #FFFF00; /* Custom login button text */
  border: none;
}

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

.page-login__btn--register {
  background-color: #017439;
  color: #ffffff;
  border: none;
}

.page-login__btn--register:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-login__form-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.page-login__form-links a {
  color: #017439; /* Brand color for links */
  text-decoration: none;
}

.page-login__form-links a:hover {
  text-decoration: underline;
  color: #00a050; /* Lighter brand color on hover */
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #FFFF00; /* Custom color for section titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-login__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section,
.page-login__troubleshooting-section,
.page-login__platform-overview,
.page-login__cta-bottom {
  padding: 60px 0;
}

.page-login__dark-bg {
  background-color: #017439; /* Primary brand color for dark background sections */
  color: #ffffff;
}

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

.page-login__benefit-card,
.page-login__trouble-card,
.page-login__category-card {
  background-color: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-login__benefit-card:hover,
.page-login__trouble-card:hover,
.page-login__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon,
.page-login__category-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #017439;
}

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

.page-login__benefit-card p,
.page-login__trouble-card p,
.page-login__category-card p {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__btn--small {
  background-color: #017439;
  color: #ffffff;
  padding: 8px 15px;
  font-size: 0.9em;
  border: none;
  display: inline-block;
  margin-top: auto;
}

.page-login__btn--small:hover {
  background-color: #005a2d;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-login__security-section .page-login__section-title {
  color: #FFFF00; /* Custom color for section titles */
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on black */
  padding: 25px;
  border-radius: 8px;
  text-align: left;
}

.page-login__feature-title {
  font-size: 1.3em;
  color: #017439; /* Brand color for feature titles */
  margin-bottom: 10px;
}

.page-login__feature-item p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 1000px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333;
  text-align: center;
}

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

.page-login__register-cta-section .page-login__text-block {
  color: #555555;
}

.page-login__btn--register-large {
  background-color: #C30808; /* Custom register button background */
  color: #FFFF00; /* Custom register button text */
  font-size: 1.2em;
  padding: 15px 30px;
  margin-top: 30px;
  display: inline-block;
  border: none;
}

.page-login__btn--register-large:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__register-image {
  margin-top: 50px;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-login__faq-section .page-login__section-title {
  color: #FFFF00;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-login__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Bottom CTA Section */
.page-login__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

.page-login__cta-bottom .page-login__section-title {
  color: #FFFF00;
}

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

.page-login__btn--login-large {
  background-color: #C30808;
  color: #FFFF00;
  font-size: 1.2em;
  padding: 15px 30px;
  border: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}