/* style/register.css */

:root {
  --page-register-primary-color: #11A84E;
  --page-register-secondary-color: #22C768;
  --page-register-card-bg: #11271B;
  --page-register-bg: #08160F;
  --page-register-text-main: #F2FFF6;
  --page-register-text-secondary: #A7D9B8;
  --page-register-border-color: #2E7A4E;
  --page-register-glow-color: #57E38D;
  --page-register-gold-color: #F2C14E;
  --page-register-divider-color: #1E3A2A;
  --page-register-deep-green: #0A4B2C;
  --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-register-text-main); /* Default for dark sections */
  background-color: #ffffff; /* Body is default white, so light text on dark sections, dark text on light sections */
}

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

.page-register__section-title {
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section, will be light or dark */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--page-register-bg);
  color: var(--page-register-text-main);
  overflow: hidden;
}

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

.page-register__hero-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-register-text-main);
  max-width: 900px;
  margin-bottom: 20px;
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: var(--page-register-text-secondary);
}

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

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-description {
  color: #333333;
}

.page-register__form-wrapper {
  background-color: var(--page-register-card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 40px auto;
  color: var(--page-register-text-main);
}

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

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

.page-register__form-label {
  font-weight: bold;
  color: var(--page-register-text-main);
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid var(--page-register-border-color);
  border-radius: 5px;
  background-color: var(--page-register-deep-green);
  color: var(--page-register-text-main);
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: var(--page-register-text-secondary);
  opacity: 0.7;
}

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

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  border-radius: 5px;
  border: 1px solid var(--page-register-border-color);
  min-width: 200px; /* Min size requirement */
  min-height: 60px;
  width: 200px;
  height: 60px;
  object-fit: cover;
}

.page-register__terms-checkbox {
  flex-direction: row;
  align-items: center;
}

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

.page-register__checkbox-label a {
  color: var(--page-register-secondary-color);
  text-decoration: none;
}

.page-register__checkbox-label a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  color: var(--page-register-text-secondary);
}

.page-register__login-prompt a {
  color: var(--page-register-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Buttons */
.page-register__btn-primary {
  background: var(--page-register-button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s ease;
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--page-register-secondary-color);
  padding: 12px 25px;
  border: 2px solid var(--page-register-secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background-color: var(--page-register-secondary-color);
  color: #ffffff;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
  background-color: var(--page-register-bg);
  color: var(--page-register-text-main);
}

.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: var(--page-register-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-register-text-main);
}

.page-register__benefit-icon {
  width: 200px; /* Min size requirement */
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 5px;
}

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

.page-register__benefit-text {
  font-size: 1em;
  color: var(--page-register-text-secondary);
}

/* Why Choose Us Section */
.page-register__why-choose-us-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-register__why-choose-us-section .page-register__section-title,
.page-register__why-choose-us-section .page-register__section-description {
  color: #333333;
}

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

.page-register__feature-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--page-register-primary-color);
}

.page-register__feature-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--page-register-primary-color);
}

.page-register__feature-text {
  color: #555555;
}

.page-register__why-choose-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size requirement */
  min-height: 200px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: var(--page-register-bg);
  color: var(--page-register-text-main);
}

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

.page-register__faq-item {
  background-color: var(--page-register-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-register-text-main);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: var(--page-register-deep-green);
  border-bottom: 1px solid var(--page-register-divider-color);
  color: var(--page-register-text-main);
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-register-secondary-color);
}

.page-register__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: var(--page-register-text-secondary);
  font-size: 0.95em;
}

.page-register__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-register__faq-answer a {
  color: var(--page-register-secondary-color);
  text-decoration: none;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-register__cta-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

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

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

/* --- Responsive Design --- */

/* All images responsive by default */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Content area images, min-size requirement */
.page-register__benefits-grid img,
.page-register__captcha-image {
  min-width: 200px;
  min-height: 200px;
}

.page-register__captcha-image {
  min-width: 60px; /* Specific smaller size for captcha, still >200 for overall width */
  width: auto;
  height: auto;
  max-width: 100%;
}

.page-register__why-choose-image {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-register__hero-section {
    padding: 40px 15px !important;
    padding-top: 10px !important;
  }

  .page-register__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__why-choose-us-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 15px !important;
  }

  .page-register__form-wrapper {
    padding: 25px !important;
  }

  .page-register__captcha-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .page-register__captcha-image {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 60px !important;
  }

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

  .page-register__benefit-card,
  .page-register__feature-item {
    padding: 20px !important;
  }

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

  /* Force all images to be responsive and not overflow */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers with images/content don't overflow */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-wrapper,
  .page-register__benefits-grid,
  .page-register__feature-list,
  .page-register__faq-list,
  .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive on mobile */
  .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;
  }
}