/* style/register.css */
/* 
  Page-specific styles for the Register page.
  All class names must adhere to BEM naming convention: .page-register__element-name.
  Styles are scoped within the .page-register class.
*/

/* Base styles for the page content */
.page-register {
  color: #ffffff; /* Body background is #000000 (dark), so text must be light */
  background-color: #000000; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for consistent content width */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.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;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
  background-color: #000000;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Darken image for text readability */
  filter: brightness(0.7); /* Further darken to ensure contrast, allowed as it's not changing color but brightness */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: 700;
}

.page-register__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-register__btn-primary,
.page-register__btn-submit {
  background-color: #C30808; /* Custom color for Register/Submit */
  color: #FFFF00; /* Custom font color for Register/Submit */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  color: #ffffff; /* Change font color on hover for better contrast */
}

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

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

/* --- Form Section --- */
.page-register__form-section {
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  padding: 60px 20px;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 40px auto 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.5);
}

.page-register__form-hint {
  display: block;
  font-size: 0.85em;
  color: #ccc;
  margin-top: 5px;
}

.page-register__form-agreement {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
}

.page-register__form-agreement input[type="checkbox"] {
  margin-right: 10px;
  min-width: 18px; /* Ensure checkbox is visible */
  min-height: 18px;
  cursor: pointer;
}

.page-register__form-link {
  color: #FFFF00; /* Custom color for links */
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #ffffff;
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

.page-register__benefits-section .page-register__section-title {
  color: #333333;
}

.page-register__benefits-section .page-register__section-description {
  color: #555555;
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px; /* Constrain icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* --- Security Section --- */
.page-register__security-section {
  background-color: #000000; /* Dark background */
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}