/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css might set body */
}

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color contrast adaptations */
.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0; /* Adjust as needed, assuming header offset is handled by body */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

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

.page-register__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Why Register Section */
.page-register__why-register .page-register__section-image {
  margin-top: 40px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-register__benefit-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

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

/* How to Register Section */
.page-register__how-to-register .page-register__section-image {
  margin-top: 40px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-register__video-caption {
  font-size: 0.9em;
  color: #ffffff;
  margin-top: 10px;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
  color: #ffffff;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom font color for register/login */
  margin-bottom: 15px;
}

.page-register__step-description {
  font-size: 1em;
  margin-bottom: 10px;
}

.page-register__step-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-register__step-list li {
  margin-bottom: 5px;
}

/* Game Selection Section */
.page-register__game-selection .page-register__section-image {
  margin-top: 40px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}