/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000000) */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-register__dark-section {
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body, still dark */
    padding: 60px 0;
    text-align: center;
}

.page-register__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff; /* White text for titles */
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Light grey for descriptions */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background-color: #0d0d0d; /* Dark background for hero */
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-register__hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 600px;
}

.page-register__hero-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Registration Form */
.page-register__registration-form {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 40px auto;
    text-align: left;
}

.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: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

.page-register__checkbox {
    margin-right: 10px;
    accent-color: #017439; /* Checkbox color */
}

.page-register__checkbox-label {
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-register__checkbox-label a {
    color: #017439; /* Brand color for links */
    text-decoration: none;
}

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

.page-register__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

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

.page-register__btn-large {
    padding: 18px 30px;
    font-size: 1.1em;
}

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

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

/* 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(255, 255, 255, 0.08); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(1, 116, 57, 0.3); /* Subtle border with brand color */
    color: #ffffff;
}

.page-register__benefit-icon {
    width: 100px; /* Enforce minimum size */
    height: 100px; /* Enforce minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-register__card-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

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

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(1, 116, 57, 0.3);
    color: #ffffff;
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439; /* Brand color */
    margin-bottom: 15px;
}

.page-register__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
}

/* Games Overview Section */
.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: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(1, 116, 57, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.page-register__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    display: block;
}

.page-register__game-card .page-register__card-title {
    padding: 15px 15px 5px;
    font-size: 1.3em;
}

.page-register__game-card .page-register__card-title a {
    color: #017439; /* Brand color for game titles */
    text-decoration: none;
}

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

.page-register__game-card .page-register__card-text {
    padding: 0 15px 20px;
    flex-grow: 1; /* Ensure text takes up available space */
}