/* style/register.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-text-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
}

/* Base styles for the page content */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--background-light); /* Explicitly set for content area */
}

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 500px; /* Limit height for hero image */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light); /* Light text for dark hero background */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
  margin-top: 50px;
}

.page-register__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--register-login-text-color); /* Specific color for main title */
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background-color: var(--register-button-bg);
  color: var(--register-login-text-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary:hover {
  background-color: #a30606;
}

.page-register__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

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

.page-register__form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

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

.page-register__input-with-button {
  display: flex;
  gap: 10px;
}

.page-register__input-with-button .page-register__form-input {
  flex-grow: 1;
}

.page-register__get-code-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

.page-register__get-code-btn:hover {
  background-color: #005a2e;
}

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

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

.page-register__checkbox-label {
  font-size: 0.95em;
  color: var(--text-dark);
}

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

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

.page-register__submit-btn {
  width: 100%;
  background-color: var(--register-button-bg);
  color: var(--register-login-text-color);
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__submit-btn:hover {
  background-color: #a30606;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-register__benefits-section .page-register__section-title {
  color: var(--register-login-text-color); /* Light color for dark background */
}

.page-register__benefits-section .page-register__description {
  color: var(--text-light);
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-light);
}

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--register-login-text-color);
}

.page-register__benefit-text {
  font-size: 1em;
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-light);
  color: var(--text-dark);
}

/* Color Contrast Specifics */
.page-register__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-image {
    max-height: 400px;
  }

  .page-register__main-title {
    font-size: 2.8em;
  }

  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-register__hero-image {
    max-height: 300px;
  }

  .page-register__hero-content {
    padding: 20px;
    margin-top: 30px;
  }

  .page-register__main-title {
    font-size: 2em;
  }

  .page-register__description {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-register__form-section, .page-register__benefits-section, .page-register__cta-section {
    padding: 40px 0;
  }

  .page-register__form {
    padding: 20px;
  }

  .page-register__form-input, .page-register__get-code-btn, .page-register__submit-btn {
    padding: 10px;
    font-size: 1em;
  }

  .page-register__btn-primary, .page-register__btn-large, .page-register__submit-btn, .page-register__get-code-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__input-with-button {
    flex-direction: column;
    gap: 10px;
  }

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section, .page-register__card, .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__video-section { /* Although no video, include for completeness */
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.6em;
  }

  .page-register__section-title {
    font-size: 1.5em;
  }
}