/* style/register.css */

/* Base styles for the page content, ensuring text contrast against dark body background */
.page-register {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero */
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, rgba(1, 116, 57, 0.9), rgba(0, 0, 0, 0.8)); /* Brand green with dark overlay */
}

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

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
}

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

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

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

/* Primary Button */
.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom register/login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-register__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

/* Secondary Button */
.page-register__btn-secondary {
  display: inline-block;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-register__btn-secondary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

/* Section General Styles */
.page-register__section-title {
  font-size: 2.8em;
  color: #FFFF00; /* Custom color for titles */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-register__section-intro {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-register__dark-section {
  background-color: #0a0a0a; /* Dark background */
  padding: 80px 0;
  color: #ffffff; /* Light text */
}

/* Benefits Section */
.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: rgba(1, 116, 57, 0.7); /* Semi-transparent brand green */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-register__benefit-icon {
  width: 400px; /* Ensuring min-size for images, but scaled down by width/height attributes */
  height: 267px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.page-register__card-title {
  font-size: 1.8em;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 15px;
}

.page-register__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1; /* Ensures cards have consistent height for text */
}

/* Steps Section */
.page-register__steps-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-register__step-item {
  background-color: #0d0d0d; /* Darker card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  background-color: #C30808; /* Custom register color */
  color: #FFFF00;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-register__step-text a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-register__step-text a:hover {
  color: #e02020;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

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

.page-register__bonus-card {
  background-color: rgba(1, 116, 57, 0.7);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__bonus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-register__bonus-image {
  width: 100%;
  max-width: 400px; /* Ensuring images are not too small */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__cta-bonuses {
  text-align: center;
  margin-top: 60px;
}

/* Games Preview Section */
.page-register__games-preview-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-register__game-card {
  background-color: #0d0d0d;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-register__game-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__game-card .page-register__card-title a {
  color: #FFFF00; /* Link color */
  text-decoration: none;
}

.page-register__game-card .page-register__card-title a:hover {
  text-decoration: underline;
  color: #e02020;
}

.page-register__cta-games {
  text-align: center;
  margin-top: 60px;
}

/* Security Section */
.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-item {
  background-color: rgba(1, 116, 57, 0.7);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-icon {
  width: 200px; /* Minimum size requirement for images */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 10px;
}