/* Wrapper for the entire signup page */
.signup-wrapper {
    font-weight: 400;
    max-width: 1142px;
    min-height: 840px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding-left: 32px;
    padding-right: 32px;
    gap: 64px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.invset-signup-wrapper {
    font-weight: 400;
    max-width: 640px;
    min-height: 840px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding-left: 32px;
    padding-right: 32px;
    gap: 64px;
    margin-top: 35px;
    margin-bottom: 35px;
}

/* Inner content with two columns */
.signup-content {
    display: flex;
    gap: 64px;
}

/* Left column (form) */
.signup-form-col {
    width: 580px;
    min-height: 841px;
    padding: 64px 64px 32px 64px; /* Top: 64px, Right: 64px, Bottom: 32px, Left: 64px */
}

/* Right column (image) */
.signup-image-col {
    width: 360px;
    height: 360.58px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 420px;
}

.signup-graphic {
    width: 434px;
    height: 360.58px;
}

/* Adjust the signup-container from form_signup partial */
.signup-container {
    max-width: 100%;
    margin-top: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.social-signup-label {
    text-align: start;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    color: #191919;
}

.separator {
    text-align: start;
    margin: 20px 0;
    position: relative;
}

.separator span {
    background: #fff;
    font-size: 20px;
    font-weight: bold;
    color: #191919;
}

.separator:before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    right: 0;
    border-top: 1px solid #ddd;
    z-index: -1;
}

.input-label {
    display: block;
    font-size: 16px;
    color: #72777a;
    margin-bottom: 8px;
    font-weight: normal;
}

.custom-input {
    width: 452px;
    height: 48px;
    border-radius: 16px;
    border: none;
    background-color: #f2f4f5;
    padding: 10px 16px;
    font-size: 16px;
    box-shadow: none;
    outline: none;
}

.custom-input.form-control {
    border: none !important;
    box-shadow: none !important;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    inset-inline-end: 12px;
    top: 67%;
    transform: translateY(-38%);
    cursor: pointer;
    color: #191919;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.checkbox-label {
    display: block; /* Ensure the label takes the full width */
    font-size: 16px;
    color: #72777a;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 24px; /* Updated to match Figma's 24px */
}

.terms-label {
    display: flex;
    flex-direction: column; /* Stack the two parts vertically */
}

.terms {
    display: block;
}

.terms-label .terms a {
    color: #175aea; /* Updated to Figma's blue color */
    font-weight: 400; /* Updated to match Figma's weight */
    text-decoration: underline; /* Underline by default as per Figma */
    margin-top: 2px; /* Small gap between the two rows */
}

.terms-label .terms a:hover {
    color: #0d3c8c; /* Slightly darker blue on hover for better UX */
    text-decoration: underline; /* Keep underline on hover */
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 16px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #6d4916; /* Brown border to match the design */
    border-radius: 4px;
    background-color: transparent;
    position: relative;
    margin-inline-end: 8px;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #6d4916; /* Brown background when checked */
    border: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    inset-inline-start: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid white; /* White checkmark */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-signup {
    background-color: #fce295;
    color: #191919;
    border: none;
    font-weight: bold;
    font-size: 18px;
    height: 48px;
    border-radius: 16px;
    transition: background-color 0.3s ease;
    width: 452px;
}

.btn-signup:hover {
    background-color: #fddc7b;
}

.btn-signup:disabled {
    background-color: #ede0bbad;
    color: #0000006e;
    cursor: not-allowed;
}

.existing-user {
    font-size: 16px;
}

.login-link {
    font-size: 16px;
    font-weight: bold;
    color: #6d4916;
}

.login-link:hover {
    color: #462f0e;
}

/* Add space above the login link form-group */
.form-group.text-center {
    margin-top: 30px;
}

/* Responsive adjustments for mobile screens (max-width: 767px) */
@media (max-width: 767px) {
    .signup-wrapper {
        max-width: 397px;
        min-height: 840px;
        border-radius: 8px;
        padding: 16px 32px 16px 32px;
        margin-top: 16px;
        margin-bottom: 16px;
        gap: 32px;
    }

    .invset-signup-wrapper {
        max-width: 397px;
        min-height: 700px;
        border-radius: 8px;
        padding: 24px 32px 16px 32px;
        margin-top: 16px;
        margin-bottom: 16px;
        gap: 32px;
    }

    .signup-content {
        flex-direction: column;
        gap: 32px;
    }

    .signup-form-col {
        width: 100%;
        height: auto;
        min-height: 700px;
        padding: 0;
        order: 1;
    }

    .signup-image-col {
        width: 100%;
        height: auto;
        padding-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 0;
    }

    .signup-graphic {
        width: 247.84px;
        height: 205.91px;
    }

    .signup-container {
        max-width: 100%;
        margin-top: 0;
    }

    .custom-input {
        width: 100%;
    }

    .btn-signup {
        width: 100%;
    }

    .separator {
        margin: 16px 0;
    }

    .social-signup-label,
    .separator span {
        font-size: 20px;
    }

    .input-label,
    .checkbox-label,
    .existing-user {
        font-size: 14px;
    }

    .login-link {
        font-size: 14px;
        font-weight: bold;
        color: #6d4916;
    }

    .login-link:hover {
        color: #462f0e;
    }

    .btn-signup {
        font-size: 16px;
    }

    .form-group.text-center {
        margin-top: 30px;
    }
}

@media (max-width: 390px) {
    .signup-wrapper {
        max-width: 95%;
        padding: 24px 8px 16px 8px;
    }

    .invset-signup-wrapper {
        max-width: 95%;
        padding: 24px 8px 16px 8px;
    }
}
