/**
 * Register Page - specific styles
 * Extending ui-shared.css and validation-shared.css
 */

/* Name input pair */
.input-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.input-pair > div {
    flex: 1;
    min-width: 120px;
}

/* Terms of service checkbox */
#tosCheckbox {
    margin-right: 5px;
    vertical-align: middle;
    margin-top: -2px; /* Adjust this value as needed to align perfectly */
    position: relative;
}

#tosLink {
    color: #ec2275;
    text-decoration: none;
    cursor: pointer;
}

#tosLink:hover {
    text-decoration: underline;
}

/* Register-specific password requirements styling */
#registerForm .password-requirements {
    text-align: center;
    padding: 1.25rem 1rem; /* Add a bit more vertical padding */
}

#registerForm .password-requirements .requirements-title {
    font-size: 1.1rem; /* Slightly larger title */
    margin-bottom: 0.75rem; /* Add a bit more spacing after the title */
}

/* Label containing the checkbox */
label[for="tosCheckbox"],
label:has(#tosCheckbox) {
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    word-spacing: normal; /* Ensure normal word spacing */
}

/* The text next to the checkbox */
label:has(#tosCheckbox) a {
    vertical-align: middle;
    line-height: inherit;
}

/* Container alignment */
.form-group.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Mobile-specific adjustments for this page */
@media (max-width: 576px) {
    .input-pair {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-pair > div {
        width: 100%;
    }
    
    #registerForm .password-requirements {
        padding: 1.25rem 0.75rem; /* Adjust padding for mobile */
    }
    
    #registerForm .password-requirements p {
        font-size: 1.3rem; /* Larger text on mobile */
    }
    
    #registerForm .password-requirements .requirements-title {
        font-size: 1.4rem; /* Larger title on mobile */
        font-weight: 700; /* Bolder on mobile */
    }

    #tosCheckbox {
        width: 18px;
        height: 18px;
        margin-top: -3px;
    }
    
    label:has(#tosCheckbox) {
        font-size: 1.3rem;
    }
}