/* style/register.css */

/* Base styles for the register page */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-register__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}

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

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 1;
}

.page-register__main-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__intro-text {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__submit-button,
.page-register__large-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary,
.page-register__submit-button,
.page-register__large-btn {
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFFFF; /* Overriding #FFFF00 for contrast */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover,
.page-register__submit-button:hover,
.page-register__large-btn:hover {
  background-color: darken(#C30808, 10%);
  border-color: darken(#C30808, 10%);
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-register__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
  transform: translateY(-2px);
}

/* Section Styling */
.page-register__introduction-section,
.page-register__form-section,
.page-register__process-section,
.page-register__platform-advantages-section,
.page-register__games-preview-section,
.page-register__faq-section,
.page-register__cta-bottom-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
}

.page-register__dark-section {
  background-color: #017439; /* Brand green for dark sections */
  color: #ffffff;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-description {
  color: #ffffff;
}

/* Form Section */
.page-register__registration-form {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for form */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-register__form-hint {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 5px;
  display: block;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.page-register__form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #017439;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-register__link {
  color: #FFFF00; /* Custom font color for register/login links */
  text-decoration: none;
  font-weight: 600;
}

.page-register__link:hover {
  text-decoration: underline;
  color: lighten(#FFFF00, 10%);
}

/* Benefits Section */
.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); /* Transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-register__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.1); /* Slight brightness adjustment, no color change */
}

.page-register__benefit-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color for titles */
}

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

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

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

.page-register__advantage-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #017439;
}

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

/* Process Section */
.page-register__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-register__step-number {
  font-size: 3rem;
  font-weight: 900;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFF00;
}

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

/* Games Preview Section */
.page-register__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-register__game-title .page-register__link {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-register__game-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

.page-register__center-cta {
  text-align: center;
  margin-top: 50px;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-register__faq-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFF00; /* Custom font color for toggle */
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* '+' to 'x' */
}

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #f0f0f0;
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background-color: #017439;
}

.page-register__cta-bottom-section .page-register__section-title,
.page-register__cta-bottom-section .page-register__section-description {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3rem;
  }
  .page-register__section-title {
    font-size: 2rem;
  }
}

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

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__main-title {
    font-size: 2.2rem;
  }

  .page-register__intro-text {
    font-size: 1.1rem;
  }

  .page-register__section-title {
    font-size: 1.8rem;
  }

  .page-register__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button,
  .page-register__large-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__hero-section,
  .page-register__introduction-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__process-section,
  .page-register__platform-advantages-section,
  .page-register__games-preview-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

  .page-register__hero-image,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__registration-form,
  .page-register__benefits-grid,
  .page-register__advantage-list,
  .page-register__process-steps,
  .page-register__game-categories,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-register__benefit-card,
  .page-register__advantage-item,
  .page-register__step-item,
  .page-register__game-card {
    padding: 25px;
  }

  .page-register__faq-question,
  .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-title {
    font-size: 1rem;
  }

  .page-register__faq-toggle {
    font-size: 1.5rem;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8rem;
  }
  .page-register__intro-text {
    font-size: 0.95rem;
  }
  .page-register__section-title {
    font-size: 1.5rem;
  }
  .page-register__benefit-title,
  .page-register__step-title,
  .page-register__game-title {
    font-size: 1.2rem;
  }
  .page-register__form-group {
    margin-bottom: 20px;
  }
  .page-register__registration-form {
    padding: 25px;
  }
}