/* style/register.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --form-bg-dark: rgba(255, 255, 255, 0.08);
  --form-border-dark: rgba(255, 255, 255, 0.15);
  --button-hover-dark: #e6c200;
}

.page-register {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  min-height: 100vh;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  background: url('[GALLERY:hero:new88,register,banner,gold]') no-repeat center center/cover;
  padding: 180px 20px 100px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  box-shadow: inset 0 -50px 100px rgba(0, 0, 0, 0.5);
}

.page-register__hero-container {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.page-register__main-title {
  font-size: 3.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.page-register__hero-description {
  font-size: 1.4em;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__cta-button {
  display: inline-block;
  padding: 16px 45px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
}

.page-register__cta-button--primary:hover {
  background-color: var(--button-hover-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-register__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-register__form-section,
.page-register__benefits-section,
.page-register__guide-section,
.page-register__promotions-section,
.page-register__security-section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__form-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-register__section-title {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.page-register__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
  opacity: 0.85;
}

/* Form Section */
.page-register__form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--form-bg-dark);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--form-border-dark);
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

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

.page-register__form-label {
  display: block;
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.9;
}

.page-register__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--form-border-dark);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-register__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.page-register__form-tip {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
  display: block;
}

.page-register__captcha-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-register__form-input--captcha {
  flex-grow: 1;
}

.page-register__captcha-button {
  width: 120px;
  height: 48px;
  border: 1px solid var(--form-border-dark);
  border-radius: 8px;
  background: url('[GALLERY:captcha:new88,verification,code]') no-repeat center center/cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.page-register__captcha-button:hover {
  opacity: 0.9;
}

.page-register__form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-register__form-group--checkbox input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.page-register__form-label--inline {
  margin-bottom: 0;
  font-weight: normal;
}

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

.page-register__text-link:hover {
  color: var(--button-hover-dark);
  text-decoration: underline;
}

.page-register__cta-button--submit {
  width: 100%;
  margin-top: 20px;
  padding: 15px 20px;
  font-size: 1.15em;
  background-color: var(--primary-color);
  color: var(--text-dark);
}

.page-register__cta-button--submit:hover {
  background-color: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-register__login-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

/* Benefits Section */
.page-register__benefits-container,
.page-register__guide-container,
.page-register__promotions-container,
.page-register__security-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-register__benefit-card {
  background-color: var(--form-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--form-border-dark);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-register__benefit-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-register__benefit-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0.8;
  flex-grow: 1;
}

/* Guide Section */
.page-register__guide-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__step-card {
  background-color: var(--form-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--form-border-dark);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-register__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

.page-register__step-title {
  font-size: 1.8em;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__step-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content is shorter */
  filter: none; /* Ensure no CSS filter is applied */
}

.page-register__cta-bottom {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-register__cta-bottom-text {
  font-size: 1.3em;
  color: var(--text-light);
  font-weight: 500;
}

/* Promotions Section */
.page-register__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__promotion-card {
  background-color: var(--form-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--form-border-dark);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-register__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-register__promotion-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.page-register__promotion-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security Section */
.page-register__security-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__security-item {
  background-color: var(--form-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--form-border-dark);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__security-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-register__security-feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__security-text {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0.8;
  flex-grow: 1;
}

.page-register__security-footer-text {
  margin-top: 50px;
  font-size: 1.2em;
  color: var(--text-light);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2.2em;
  }
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__cta-button {
    padding: 14px 35px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 60px;
    min-height: 350px;
  }
  .page-register__main-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__security-section {
    padding: 50px 15px;
  }
  .page-register__form-container {
    padding: 30px 20px;
  }
  .page-register__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__cta-button,
  .page-register__cta-button--submit {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-register__captcha-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__captcha-button {
    width: 100%;
    height: 45px;
  }
  .page-register__form-group--checkbox {
    flex-direction: row;
    align-items: center;
  }
  .page-register__form-group--checkbox input[type="checkbox"] {
    margin-top: 0;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotion-cards,
  .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promotion-card,
  .page-register__security-item {
    padding: 25px;
  }
  .page-register__benefit-icon,
  .page-register__security-icon {
    width: 80px;
    height: 80px;
  }
  .page-register__benefit-title,
  .page-register__promotion-title,
  .page-register__security-feature-title {
    font-size: 1.4em;
  }
  .page-register__step-number {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
  }
  .page-register__step-title {
    font-size: 1.6em;
  }
  .page-register__cta-bottom {
    margin-top: 40px;
  }
  .page-register__cta-bottom-text {
    font-size: 1.1em;
  }
  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__hero-container,
  .page-register__form-container,
  .page-register__benefits-container,
  .page-register__guide-container,
  .page-register__promotions-container,
  .page-register__security-container,
  .page-register__registration-form,
  .page-register__form-group,
  .page-register__captcha-group,
  .page-register__captcha-button,
  .page-register__benefits-grid,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promotion-cards,
  .page-register__promotion-card,
  .page-register__security-features,
  .page-register__security-item,
  .page-register__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__captcha-group {
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__form-group--checkbox {
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__login-prompt {
    padding-left: 0;
    padding-right: 0;
  }
}