/* style/register.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #000000;
  --accent-color: #EA7C07;
}

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is #000000, so main text is light */
  background-color: var(--background-dark);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
}

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

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

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

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-register__hero-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-register__hero-button:hover {
  background-color: darken(var(--primary-color), 10%); /* Example: a darker shade of primary */
}

/* Section Titles & Intros */
.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-register__section-title--light {
  color: var(--secondary-color);
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark); /* Default for light backgrounds */
}

.page-register__section-intro--light {
  color: var(--text-light);
}

/* Form Section */
.page-register__form-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
  color: var(--text-dark);
}

.page-register__form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__verification-input-group {
  display: flex;
  gap: 10px;
}

.page-register__verification-code-input {
  flex-grow: 1;
}

.page-register__get-code-button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.page-register__get-code-button:hover {
  background-color: darken(var(--accent-color), 10%);
}

.page-register__form-agreement {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.page-register__checkbox {
  margin-right: 10px;
}

.page-register__terms-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-register__terms-link:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

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

.page-register__login-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-link:hover {
  text-decoration: underline;
}

.page-register__form-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 8px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  text-align: center;
}

.page-register__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon {
  width: 100px; /* Min size 200px, but this is an icon-like image within a card */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  padding: 10px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-register__benefit-description {
  font-size: 1em;
  color: var(--secondary-color);
  flex-grow: 1;
}

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

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

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-register__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be responsive */
  object-fit: cover;
}

.page-register__game-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.page-register__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-register__game-title a:hover {
  text-decoration: underline;
}

.page-register__game-description {
  font-size: 0.95em;
  padding: 0 20px 20px 20px;
  color: var(--text-light);
  flex-grow: 1;
}

.page-register__game-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-register__game-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 0;
  text-align: center;
}

.page-register__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-register__promotion-card {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  overflow: hidden;
}

.page-register__promotion-image {
  width: 50%;
  height: 350px; /* Fixed height for desktop, will be responsive */
  object-fit: cover;
}

.page-register__promotion-content {
  width: 50%;
  padding: 40px;
  text-align: left;
}

.page-register__promotion-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-register__promotion-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.page-register__promotion-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__promotion-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

.page-register__section-outro {
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-dark);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  color: var(--text-light);
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--secondary-color);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Changes + to X or similar */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
}

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

.page-register__faq-answer p {
  margin: 0;
  font-size: 0.95em;
  color: var(--text-light);
}

/* Call to Action Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-register__cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 18px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.page-register__cta-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Utility Classes for colors */
.page-register__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid transparent;
}

.page-register__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
}

.page-register__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-register__btn-secondary:hover {
  background: lighten(var(--primary-color), 40%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__promotion-card {
    flex-direction: column;
  }
  .page-register__promotion-image,
  .page-register__promotion-content {
    width: 100%;
  }
  .page-register__promotion-content {
    padding: 30px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

  .page-register__hero-section {
    height: 500px;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__hero-button,
  .page-register__submit-button,
  .page-register__get-code-button,
  .page-register__game-button,
  .page-register__promotion-button,
  .page-register__cta-button,
  .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__section-title {
    font-size: 2em;
  }

  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-register__form {
    padding: 20px;
  }

  .page-register__benefits-grid,
  .page-register__games-grid {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-card,
  .page-register__game-card,
  .page-register__promotion-card {
    margin-bottom: 20px;
  }

  .page-register__promotion-image {
    height: 250px;
  }

  .page-register__promotion-content {
    padding: 20px;
  }

  .page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-title {
    font-size: 1.1em;
  }

  /* Mobile specific image, video, container rules */
  .page-register img,
  .page-register video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__games-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Ensure no content causes horizontal scroll */
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__games-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section {
    overflow-x: hidden !important;
  }

  /* Specific overrides for small icons if any were to appear (though prohibited) */
  .page-register__benefit-icon {
    width: 150px !important; /* Ensure minimum size */
    height: 150px !important;
    min-width: 200px !important; /* Explicitly enforce minimum size */
    min-height: 200px !important;
  }

  .page-register__form-image,
  .page-register__game-image,
  .page-register__promotion-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Button groups for mobile responsiveness */
  .page-register__cta-buttons,
  .page-register__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure no image filter is applied */
.page-register img {
  filter: none !important;
}