/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Ensure consistency with body background from shared.css */
}

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

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: rgba(1, 116, 57, 0.8); /* Brand primary color with transparency */
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for emphasis */
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom Register button color */
  color: #ffffff; /* Corrected for WCAG AA contrast */
  border: 2px solid #C30808;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-register__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__feature-icon {
  width: 200px; /* Min size 200px */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlight important titles */
  margin-bottom: 15px;
}

.page-register__feature-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: #ffffff; /* Custom Background color for the form section */
  color: #333333; /* Dark text for light background */
}

.page-register__form-section .page-register__section-title {
  color: #333333; /* Ensure title is dark on light background */
}

.page-register__form-section .page-register__section-description {
  color: #555555; /* Ensure description is dark on light background */
}

.page-register__form-content {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.page-register__form-illustration {
  flex: 1;
  max-width: 500px;
}

.page-register__form-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__registration-form {
  flex: 1;
  max-width: 500px;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px 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: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

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

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