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

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

.page-login__dark-bg {
  background-color: var(--primary-color, #003366);
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-login__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent background for form area */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__form-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__form {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  text-align: left;
  width: 50%;
  max-width: 500px;
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--secondary-color, #FFCC00);
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #0056b3;
  border-radius: 5px;
  background-color: #001a33;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--secondary-color, #FFCC00);
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
  outline: none;
}

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

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary-color, #FFCC00);
}

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

.page-login__forgot-password-link {
  color: var(--secondary-color, #FFCC00);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #ffd700;
  text-decoration: underline;
}

.page-login__submit-button,
.page-login__download-app-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  margin-top: 20px;
}

.page-login__btn-primary {
  background: var(--secondary-color, #FFCC00);
  color: var(--primary-color, #003366);
}

.page-login__btn-primary:hover {
  background: #ffd700;
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: var(--primary-color, #003366);
  color: var(--secondary-color, #FFCC00);
  border: 2px solid var(--secondary-color, #FFCC00);
}

.page-login__btn-secondary:hover {
  background: #004080;
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: inherit; /* Ensures color adapts to parent section's color */
}

.page-login__section-intro {
  font-size: 1.1em;
  margin-bottom: 50px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-login__benefits-section,
.page-login__game-categories,
.page-login__security-info,
.page-login__faq-section,
.page-login__cta-bottom {
  padding: 80px 0;
  overflow: hidden;
}

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

.page-login__benefit-card,
.page-login__category-card,
.page-login__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__light-bg .page-login__benefit-card,
.page-login__light-bg .page-login__security-item {
  background: #f9f9f9;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__security-icon {
  width: 100px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.page-login__benefit-title,
.page-login__category-title,
.page-login__security-item-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color, #FFCC00);
}

.page-login__light-bg .page-login__benefit-title,
.page-login__light-bg .page-login__security-item-title {
  color: var(--primary-color, #003366);
}

.page-login__category-card {
  text-decoration: none;
  color: inherit;
}

.page-login__category-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__light-bg .page-login__category-description {
  color: #555555;
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  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: 18px 25px;
  background: var(--primary-color, #003366);
  color: #ffffff;
  border: 1px solid #004080;
  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: #004080;
  border-color: #0056b3;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFCC00);
  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: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffd700;
  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;
  background: #001a33;
  color: #f0f0f0;
  border-radius: 0 0 8px 8px;
  text-align: left;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-login__faq-answer p {
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

.page-login__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__description {
    font-size: 1.1em;
  }
  .page-login__form-wrapper {
    flex-direction: column;
    padding: 15px;
  }
  .page-login__form-image {
    width: 80%;
    margin-right: 0;
    margin-bottom: 30px;
  }
  .page-login__form {
    width: 90%;
    padding: 30px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-intro {
    font-size: 1em;
  }
  .page-login__benefits-grid,
  .page-login__categories-grid,
  .page-login__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-login__faq-list {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
    line-height: 1.65;
  }
  .page-login__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    padding: 10px;
  }
  .page-login__form-image {
    width: 100% !important;
    margin-bottom: 20px;
  }
  .page-login__form {
    width: 100% !important;
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 1.6em;
    margin-bottom: 25px;
  }
  .page-login__form-group {
    margin-bottom: 15px;
  }
  .page-login__form-label {
    font-size: 0.9em;
    margin-bottom: 5px;
  }
  .page-login__form-input {
    padding: 10px 12px;
    font-size: 0.9em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-login__forgot-password-link {
    margin-top: 10px;
  }
  .page-login__submit-button,
  .page-login__download-app-button {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__register-text {
    font-size: 0.9em;
    margin-top: 20px;
  }
  .page-login__benefits-section,
  .page-login__game-categories,
  .page-login__security-info,
  .page-login__faq-section,
  .page-login__cta-bottom {
    padding: 50px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-login__section-intro {
    font-size: 0.9em;
    margin-bottom: 40px;
  }
  .page-login__benefits-grid,
  .page-login__categories-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__benefit-card,
  .page-login__category-card,
  .page-login__security-item {
    padding: 25px;
  }
  .page-login__benefit-image,
  .page-login__category-image,
  .page-login__security-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-login__benefit-title,
  .page-login__category-title,
  .page-login__security-item-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }
  .page-login__faq-list {
    margin-top: 30px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
  .page-login__cta-bottom .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-bottom .page-login__btn-primary,
  .page-login__cta-bottom .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__form {
    padding: 20px;
  }
  .page-login__form-title {
    font-size: 1.4em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__faq-question h3 {
    font-size: 0.95em;
  }
}