/* style/register.css */

/* Base Styles for page-register */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF); /* Assuming shared.css defines --bg-color as light */
}

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

/* Color Contrast Handling */
.page-register__dark-bg {
  background-color: #017439; /* Brand primary green */
  color: #ffffff; /* White text for dark background */
}

.page-register__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  background-image: url('[GALLERY:bg_hero:1920x1080:yoo88,register_background,dynamic_lines,digital_patterns,green_tones]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-register__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for register/login */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.page-register__form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  text-align: left;
  color: #333333;
}

.page-register__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  color: #017439;
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

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

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

.page-register__captcha-image {
  border: 1px solid #ddd;
  border-radius: 5px;
  vertical-align: middle;
  width: 200px; /* Ensure min size */
  height: 60px; /* Ensure min size */
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px; /* Align checkbox with text */
}

.page-register__terms-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFF00; /* Custom Register/Login font color */
}

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

.page-register__login-text {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
}

.page-register__login-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__hero-image-wrapper {
  max-width: 600px;
  width: 100%;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Sections */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherits from section's color */
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
}

.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: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}