/* Ensure body padding-top is handled by shared.css */
/* For .page-register__hero-section, use minimal padding-top */
.page-register__hero-section {
    padding-top: 10px; /* Minimal top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #F5F7FA; /* Background color for the section */
    color: var(--text-main, #333333);
    text-align: center;
}

.page-register__hero-image-wrapper {
    margin-bottom: 20px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.page-register__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-register__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #E53935; /* Main brand color for emphasis */
}

.page-register__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main, #333333);
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px; /* Touch target size */
    min-width: 120px;
    text-align: center;
}

.page-register__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(229, 57, 53, 0.3);
}

.page-register__form-section {
    padding: 60px 0;
    background-color: #F5F7FA;
    color: var(--text-main, #333333);
}

.page-register__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.page-register__section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: center;
    color: #E53935;
}

.page-register__section-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main, #333333);
}

.page-register__registration-form {
    background-color: var(--card-b-g, #FFFFFF);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main, #333333);
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border, #E0E0E0);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main, #333333);
    box-sizing: border-box;
}

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

.page-register__form-input:focus {
    border-color: #E53935;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.page-register__form-group--captcha {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.page-register__form-input--captcha {
    flex-grow: 1;
}

.page-register__captcha-button {
    padding: 12px 15px;
    background-color: #FF5A4F;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
    min-height: 44px; /* Touch target size */
}

.page-register__captcha-button:hover {
    background-color: #E53935;
}

.page-register__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.page-register__checkbox {
    margin-right: 10px;
    margin-top: 4px; /* Align with text */
    min-width: 18px; /* Ensure clickable area */
    min-height: 18px;
}

.page-register__checkbox-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main, #333333);
}

.page-register__link {
    color: #E53935;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-register__link:hover {
    color: #FF5A4F;
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px; /* Touch target size */
}

.page-register__submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(229, 57, 53, 0.3);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 1rem;
    color: var(--text-main, #333333);
}

.page-register__benefits-section {
    padding: 60px 0;
    background-color: #F5F7FA;
    color: var(--text-main, #333333);
}

.page-register__benefits-content {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
    text-align: left;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
    text-align: left;
}

.page-register__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-register__benefits-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.page-register__benefits-icon {
    font-size: 1.8rem;
    color: #E53935; /* Use primary color for icons */
    flex-shrink: 0;
}

.page-register__benefits-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #E53935;
}

.page-register__benefits-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main, #333333);
}

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

.page-register__benefits-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.page-register__cta-button--small {
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 20px;
}

.page-register__security-section {
    padding: 60px 0;
    background-color: #F5F7FA;
    color: var(--text-main, #333333);
    text-align: center;
}

.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: var(--card-b-g, #FFFFFF);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-register__security-icon {
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

.page-register__security-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E53935;
}

.page-register__security-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main, #333333);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-register__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-register__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-register__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__security-section {
        padding: 40px 0;
    }

    .page-register__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-register__section-description {
        margin-bottom: 30px;
    }

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

    .page-register__form-group--captcha {
        flex-direction: column;
        align-items: stretch;
    }

    .page-register__captcha-button {
        width: 100%;
        margin-top: 10px;
    }

    .page-register__container--flex {
        flex-direction: column;
    }

    .page-register__benefits-content,
    .page-register__benefits-image-wrapper {
        padding-right: 0;
        width: 100%;
    }

    .page-register__benefits-section .page-register__section-title,
    .page-register__benefits-section .page-register__section-description {
        text-align: center;
    }

    .page-register__benefits-list {
        margin-top: 20px;
    }

    .page-register__benefits-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-register__benefits-heading {
        margin-top: 10px;
    }

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

    /* Mobile image constraint */
    .page-register__hero-image,
    .page-register__benefits-image,
    .page-register__security-icon {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-register__hero-section {
        padding-bottom: 20px;
    }

    .page-register__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .page-register__cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__security-section {
        padding: 30px 0;
    }

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

    .page-register__form-input {
        padding: 10px 12px;
    }

    .page-register__captcha-button {
        padding: 10px 12px;
    }

    .page-register__submit-button {
        padding: 12px 15px;
        font-size: 1.05rem;
    }

    .page-register__benefits-icon {
        font-size: 1.5rem;
    }

    .page-register__benefits-heading {
        font-size: 1.2rem;
    }

    .page-register__security-heading {
        font-size: 1.3rem;
    }
}

/* Ensure content area images are not less than 200px on mobile if specific selectors are used */
@media (max-width: 768px) {
    .page-register img {
        max-width: 100%;
        height: auto;
    }
    /* Specific rules to ensure minimum display size for content images */
    .page-register__hero-image,
    .page-register__benefits-image,
    .page-register__security-icon {
        min-width: 200px; /* Explicitly ensure min-width */
        min-height: 200px; /* Explicitly ensure min-height */
    }
}

/* Ensure no filter on images */
.page-register img {
    filter: none !important;
}

/* Ensure content area images CSS width/height don't make them smaller than 200px */
.page-register__hero-image,
.page-register__benefits-image,
.page-register__security-icon {
    /* These properties are for the layout slot, not the raw image generation size */
    /* They should be consistent with the HTML width/height attributes or use responsive values */
    width: 100%; /* Allow image to fill container */
    max-width: 100%; /* Prevent overflow */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Explicitly ensure min-width */
    min-height: 200px; /* Explicitly ensure min-height */
}