/* Register Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

/* Main Register Container - Frame 1000005230 */
.register-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 30px;
    min-height: 70vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* User Type Selection Container - Group 137 */
.user-type-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1099px;
    height: auto;
    background: #ffffff;
    border: 1px solid #a7a7a7;
    border-radius: 9px;
    padding: 20px;
    margin-bottom: 85px !important;
    margin: 0 auto;
    margin-top: 45px !important;
}

/* User Type Selection Frame - Frame 907 */
.user-type-selection {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 13px;
    width: auto;
    height: auto;
}

/* User Type Option - Frame 906 */
.user-type-option {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    height: 43px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-type-option.active {
    border-bottom: 5px solid #ff4c4b;
}

.user-type-option.freelancer {
    width: 166px;
}

.user-type-option.employer {
    width: 108px;
}

/* User Type Text */
.user-type-text {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 19px;
    line-height: 120%;
    text-align: center;
    transition: color 0.3s ease;
}

.user-type-option.active .user-type-text {
    color: #292929;
}

.user-type-option:not(.active) .user-type-text {
    color: #c6c6c6;
}

.user-type-option:hover .user-type-text {
    color: #292929;
}

/* Main Content Container - Frame 984 */
.register-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 50px;
    width: 100%;
    height: auto;
}

/* Left Side Form Container - Frame 345 */
.register-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 36px;
    width: 562px;
    height: auto;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Form Header and Fields Container - Frame 342 */
.register-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 44px;
    width: 100%;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Header Section - Frame 30 */
.register-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 5px;
    width: 100%;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Main Title */
.register-title {
    width: 100%;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    color: #292929;
    flex: none;
    order: 0;
    flex-grow: 0;
    margin-bottom: 10px;
}

/* Subtitle Container - Frame 63 */
.register-subtitle-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: auto;
    height: auto;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Subtitle Text */
.register-subtitle {
    width: auto;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 23px;
    line-height: 120%;
    color: #828282;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Login Link */
.login-link {
    width: auto;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 23px;
    line-height: 120%;
    color: #ff4c4b;
    text-decoration: none;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.login-link:hover {
    text-decoration: underline;
    color: #e04342;
}

/* Form Fields Container - Frame 341 */
.register-form-fields {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 38px;
    width: 100%;
    max-width: 512px;
    height: auto;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Fields Wrapper - Frame 340 */
.register-fields-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
    gap: 30px;
    width: 100%;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Input Fields Container - Frame 338 */
.register-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 15px;
    width: 100%;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Input Field Row - Frame 337 */
.register-input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 11px;
    width: 100%;
    height: auto;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

/* Input Field Styles */
.register-input-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 28px 10px 20px;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: #e9e9e9;
    border: none;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #828282;
    flex: none;
    flex-grow: 1;
}

.register-input-field:focus {
    outline: none;
    background: #f0f0f0;
    color: #292929;
}

.register-input-field::placeholder {
    color: #828282;
}

/* Button Container - Frame 59 */
.register-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 23px;
    width: 100%;
    height: auto;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* Create Account Button - Frame 8 */
.register-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 100%;
    height: 79px;
    background: #ff4c4b;
    border: none;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 23px;
    line-height: 120%;
    color: #ffffff;
    cursor: pointer;
    flex: none;
    order: 0;
    flex-grow: 0;
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background: #292929;
}

.register-button:active {
    background: #292929;
}

/* Right Side Image */
.register-image {
    width: 650px;
    height: 521px;
    background: url("../newimg/loginimage.png") center/cover no-repeat;
    border-radius: 46px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Terms and Conditions */
.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.terms-text {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 120%;
    color: #828282;
    flex: 1;
}

.terms-text a {
    color: #ff4c4b;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Error Styling */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ff4c4b;
    font-family: "Inter", sans-serif;
}

.is-invalid {
    border: 2px solid #ff4c4b;
}

/* Hidden by default */
.register-form-section {
    display: none;
}

.register-form-section.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .register-container {
        max-width: 1200px;
        gap: 20px;
        padding: 30px 20px;
    }

    .register-content {
        gap: 40px;
        max-width: 1100px;
    }

    .register-image {
        width: 500px;
        height: 400px;
    }

    .register-form-container {
        width: 500px;
    }
}

@media (max-width: 1200px) {
    .register-container {
        gap: 20px;
        padding: 20px;
    }

    .register-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .register-image {
        width: 100%;
        max-width: 600px;
        height: 350px;
        order: 1;
    }

    .register-form-container {
        width: 100%;
        max-width: 600px;
        order: 0;
        margin: 0 auto;
    }

    .user-type-container {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .register-container {
        gap: 15px;
        padding: 15px;
    }

    .register-title {
        font-size: 32px;
        text-align: center;
    }

    .register-subtitle,
    .login-link {
        font-size: 18px;
    }

    .register-subtitle-container {
        justify-content: center;
        text-align: center;
    }

    .register-button {
        height: 60px;
        font-size: 20px;
    }

    .register-input-field {
        height: 50px;
        font-size: 15px;
        padding: 10px 20px;
    }

    .register-image {
        height: 300px;
    }

    .user-type-selection {
        gap: 8px;
    }

    .user-type-option {
        padding: 8px;
    }

    .user-type-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .register-container {
        padding: 10px;
    }

    .register-title {
        font-size: 28px;
    }

    .register-subtitle,
    .login-link {
        font-size: 16px;
    }

    .register-button {
        height: 55px;
        font-size: 18px;
    }

    .register-input-field {
        height: 48px;
        font-size: 14px;
    }

    .register-image {
        height: 250px;
    }

    .register-content {
        gap: 20px;
    }

    .user-type-container {
        padding: 15px;
    }
}

/* Override body background for clean look */
body {
    background: #ffffff;
    font-family: "Inter", sans-serif;
}
