/* style/register.css */

/* Custom colors from requirements */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

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

/* Header offset - applies to the main content area or hero section */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: var(--background-color);
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

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

.page-register__hero-content {
  text-align: center;
  padding: 40px 0;
}

.page-register__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-register__form-wrapper {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-register__form-illustration {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__form {
  width: 100%;
  text-align: left;
}

.page-register__form-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

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

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

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

.page-register__form-input::placeholder {
  color: #aaa;
}

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

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

.page-register__captcha-image {
  border: 1px solid #ccc;
  border-radius: 5px;
  flex-shrink: 0;
  width: 150px; /* Fixed width as per placeholder, but will be responsive */
  height: 50px; /* Fixed height as per placeholder, but will be responsive */
  object-fit: cover;
}

.page-register__form-checkbox {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__checkbox-input {
  flex-shrink: 0;
}

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

.page-register__checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--register-btn-color); /* Custom register button color */
  color: var(--register-login-font-color); /* Custom font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-register__submit-button:hover {
  background-color: #a30606; /* Darker shade for hover */
  transform: translateY(-2px);
}

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

.page-register__login-prompt a {
  color: var(--login-btn-color); /* Custom login button color */
  text-decoration: none;
  font-weight: bold;
}

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

/* General section styles */
.page-register__section {
  padding: 60px 0;
  background-color: var(--background-color);
}