.page-register {
    background-color: #0d0d0d;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
}

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

.page-register__hero-section {
    position: relative;
    text-align: center;
    padding-top: 10px; /* Small top padding to respect header offset */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
}

.page-register__hero-content {
    padding: 40px 20px;
    background-color: #1A2E44;
    color: #f5f5f5;
}

.page-register__main-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em); /* Max 2.8em to prevent too large on desktop */
    color: #FFD700;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-register__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.page-register__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2E44;
    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;
}

.page-register__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__form-section {
    padding: 60px 0;
    background-color: #1A2E44;
}

.page-register__section-title {
    font-size: 2.2em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-register__registration-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #0d0d0d;
    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;
    color: #f5f5f5;
    font-size: 1em;
}

.page-register__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #334a66;
    border-radius: 5px;
    background-color: #1A2E44;
    color: #f5f5f5;
    font-size: 1em;
}

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

.page-register__checkbox-group {
    display: flex;
    align-items: center;
}

.page-register__form-checkbox {
    margin-right: 10px;
    min-width: 20px; /* Ensure checkbox is visible */
    min-height: 20px;
}

.page-register__terms-label {
    font-size: 0.95em;
}

.page-register__terms-link,
.page-register__login-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__terms-link:hover,
.page-register__login-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    background-color: #FFD700;
    color: #1A2E44;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__submit-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #f5f5f5;
}

.page-register__benefits-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

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

.page-register__benefit-card {
    background-color: #1A2E44;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
}

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

.page-register__benefit-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__benefit-description {
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.5;
}

.page-register__support-cta-section {
    padding: 60px 0;
    background-color: #1A2E44;
}

.page-register__support-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-register__support-content {
    flex: 1;
    min-width: 300px;
}

.page-register__support-description {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-register__support-button {
    margin-right: 20px;
}

.page-register__faq-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-register__faq-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-register__support-image-wrapper {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-register__support-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-register__container {
        padding: 15px;
    }

    .page-register__hero-content {
        padding: 30px 15px;
    }

    .page-register__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-register__registration-form {
        padding: 30px 20px;
    }

    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-register__support-flex {
        flex-direction: column;
        align-items: center;
    }

    .page-register__support-content,
    .page-register__support-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-register__support-button {
        margin-bottom: 15px;
        margin-right: 0;
    }

    /* Ensure images in content areas are responsive and don't overflow */
    .page-register__hero-image,
    .page-register__benefit-image,
    .page-register__support-image {
        max-width: 100%;
        height: auto;
    }

    /* Enforce min-width for all images in .page-register */
    .page-register img {
        min-width: 200px; /* Minimum width for all images */
        min-height: 200px; /* Minimum height for all images */
        max-width: 100%; /* Ensure they don't overflow */
        height: auto; /* Maintain aspect ratio */
    }
}

/* Ensure images in content areas are at least 200px by default (desktop) */
.page-register img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast checks */
/* Text on dark background */
.page-register, .page-register__hero-description, .page-register__form-label, .page-register__login-prompt, .page-register__benefit-description, .page-register__support-description {
    color: #f5f5f5; /* Sufficient contrast with #0d0d0d and #1A2E44 */
}

/* Text on gold background */
.page-register__cta-button, .page-register__submit-button {
    color: #1A2E44; /* Sufficient contrast with #FFD700 */
}

/* Gold text on dark background */
.page-register__main-title, .page-register__section-title, .page-register__terms-link, .page-register__login-link, .page-register__benefit-title, .page-register__faq-link {
    color: #FFD700; /* Sufficient contrast with #0d0d0d and #1A2E44 */
}