:root {
  --primary-color: #007bff; /* Deep Blue */
  --secondary-color: #ffc107; /* Bright Amber */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #002d62; /* A darker shade of primary for contrast */
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

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

/* Fixed Nav Bar Spacing - Desktop */
.page-login__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
}

.page-login__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow-medium);
  max-width: 500px;
  margin: 40px auto 0;
  text-align: left;
  color: var(--text-dark);
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
  border: none;
  cursor: pointer;
  width: 100%; /* Ensure button takes full width in form */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-medium);
}

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

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: var(--text-dark);
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--bg-dark); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-login__benefits-section .page-login__section-title {
  color: var(--text-light);
}

.page-login__benefits-section .page-login__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
  width: 100px; /* Ensure images are not small icons */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: none; /* No color change filter */
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--secondary-color); /* Use accent color for titles */
}

.page-login__benefit-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%; /* Adjust as needed */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-light);
  object-fit: cover;
  filter: none; /* No color change filter */
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 50%; /* Adjust as needed */
}

.page-login__security-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-medium);
}

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-login__games-section .page-login__section-title {
  color: var(--text-light);
}

.page-login__games-section .page-login__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-login__game-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__game-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No color change filter */
}

.page-login__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-login__game-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.75);
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

.page-login__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  background: #17a2b8; /* A complementary blue-green */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-light);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-tertiary:hover {
  background: #138496;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--shadow-medium);
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  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: #f0f0f0;
  border-color: #d0d0d0;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* A visual cue for expanded state */
}

.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: #fefefe;
  color: var(--text-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-login__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, var(--primary-color), #0056b3);
  color: var(--text-light);
  text-align: center;
}

.page-login__cta-content .page-login__section-title,
.page-login__cta-content .page-login__section-description {
  color: var(--text-light);
}

.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__section-title {
    font-size: 2em;
  }
  .page-login__security-content {
    flex-direction: column;
  }
  .page-login__security-image,
  .page-login__security-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 100px !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-login__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-form-wrapper {
    padding: 30px 20px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-login__form-input {
    padding: 12px;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-tertiary,
  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__register-prompt {
    font-size: 0.9em;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__benefit-item {
    padding: 20px;
  }
  .page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-login__benefit-title {
    font-size: 1.3em;
  }
  .page-login__security-image {
    min-width: unset;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }
  .page-login__security-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__game-image {
    height: 150px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__game-title {
    font-size: 1.4em;
  }
  .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-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__benefits-grid,
  .page-login__games-grid {
    grid-template-columns: 1fr;
  }
}