.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d1117; /* Ensure consistency with body background from shared.css */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.3rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-login__login-form-container {
  background: rgba(26, 32, 44, 0.9); /* #1A202C with transparency */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-size: 1rem;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: #0d1117;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700;
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #ffffff;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #FFD700;
  color: #1A202C;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-primary:hover {
  background-color: #e6c200;
  color: #0d1117;
}

.page-login__no-account-text {
  color: #f0f0f0;
  margin-top: 25px;
  font-size: 1rem;
}

.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-login__section-title {
  font-size: 2.5rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-intro {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.page-login__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-login__benefit-card, .page-login__game-card, .page-login__about-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-image, .page-login__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__card-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__card-text {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__step-number {
  font-size: 2.5rem;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 15px;
  display: block;
}

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

.page-login__step-description {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__troubleshooting {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.page-login__troubleshooting-title {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-login__troubleshooting-text, .page-login__security-tips {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-login__security-tips {
  list-style: disc;
  padding-left: 25px;
}

.page-login__security-tips li {
  margin-bottom: 10px;
}

.page-login__about-item-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__about-item-text {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__faq-list {
  margin-top: 40px;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #1A202C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  color: #FFD700;
  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, padding 0.3s ease;
  color: #f0f0f0;
  background-color: #1A202C;
}

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

/* Mobile Floating Buttons */
.page-login__mobile-floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-login__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 45px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__floating-btn:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__floating-btn--login {
  /* Specific styles if needed */
}

.page-login__floating-btn--register {
  background-color: #1A202C;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.page-login__floating-btn--register:hover {
  background-color: #2c3444;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3rem;
  }
  .page-login__intro-text {
    font-size: 1.1rem;
  }
  .page-login__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    height: auto;
    min-height: 80vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-login__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  .page-login__intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-login__login-form-container {
    padding: 30px 20px;
    max-width: 100%;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__section-title {
    font-size: 1.8rem;
  }
  .page-login__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid, .page-login__steps-grid, .page-login__game-categories, .page-login__about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card, .page-login__step-item, .page-login__game-card, .page-login__about-item {
    padding: 20px;
  }
  .page-login__card-title, .page-login__step-title, .page-login__about-item-title {
    font-size: 1.3rem;
  }
  .page-login__card-text, .page-login__step-description, .page-login__troubleshooting-text, .page-login__security-tips li, .page-login__about-item-text, .page-login__faq-answer p {
    font-size: 0.95rem;
  }
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-login__container,
  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__troubleshooting {
    padding: 20px;
  }
  .page-login__troubleshooting-title {
    font-size: 1.5rem;
  }
  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  .page-login__btn-primary,
  .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__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__mobile-floating-buttons {
    right: 10px;
    bottom: 10px;
    flex-direction: row; /* Arrange horizontally on smaller screens if space allows */
    width: calc(100% - 20px);
    justify-content: space-around;
  }
  .page-login__floating-btn {
    width: 48%; /* Adjust width to fit two buttons */
    height: 40px;
    font-size: 0.9rem;
  }
}