.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-bg); /* Inherited from shared, likely dark */
}

/* Ensure main content text is readable on body background */
.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-register__hero-section {
  position: relative;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

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

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-register__section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section.page-register__dark-bg .page-register__section-title {
  color: #ffffff;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-register__why-join .page-register__section-description {
  color: #333333;
}

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

.page-register__feature-item {
  background: #ffffff;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-register__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-register__feature-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 1em;
  color: #555555;
}

.page-register__registration-form-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 40px auto;
  color: #333333;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

.page-register__form-label {
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease;
  color: #333333;
}

.page-register__form-input::placeholder {
  color: #999999;
}

.page-register__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
}

.page-register__form-checkbox {
  margin-right: 10px;
  min-width: 20px;
  min-height: 20px;
}

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.page-register__btn-primary:hover {
  background-color: #1e87c2;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__form-submit-btn {
  width: 100%;
  margin-top: 20px;
  background-color: #EA7C07; /* Login specific color */
}

.page-register__form-submit-btn:hover {
  background-color: #d16e06;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-register__text-link:hover {
  color: #1e87c2;
  text-decoration: underline;
}

.page-register__text-link--login {
  color: #EA7C07;
}

.page-register__text-link--login:hover {
  color: #d16e06;
}

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

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

.page-register__step-number {
  font-size: 3em;
  color: #26A9E0;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-register__game-category-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-register__game-category-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__card-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__card-link:hover {
  text-decoration: underline;
  color: #1e87c2;
}

.page-register__game-category-text {
  font-size: 1em;
  color: #555555;
}

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

.page-register__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-register__security-feature-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__security-feature-text {
  font-size: 1em;
  color: #555555;
}

.page-register__learn-more-btn {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #e0e0e0;
}

.page-register__faq-title {
  margin: 0;
  color: #333333;
}

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-register__cta-final-content {
  max-width: 800px;
}

.page-register__cta-final-section .page-register__section-title {
  color: #26A9E0;
}

.page-register__cta-final-section .page-register__section-description {
  color: #555555;
}

.page-register__large-cta-button {
  padding: 18px 40px;
  font-size: 1.4em;
  margin-top: 30px;
}

.page-register__additional-info {
  margin-top: 20px;
  font-size: 1em;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__feature-title, .page-register__game-category-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding: 60px 0;
    min-height: 450px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-register__section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__game-categories-grid,
  .page-register__security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__form-wrapper {
    padding: 30px 20px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register 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-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__form-wrapper,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }
  .page-register__large-cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__feature-title, .page-register__game-category-title {
    font-size: 1.4em;
  }
  .page-register__step-number {
    font-size: 2.5em;
  }
  .page-register__faq-question {
    font-size: 1.1em;
  }
}