.userform__bg {
    position: fixed;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    background-color: #000000CC;
}

@media( max-width:768 ) {
    .userform__box {
        display: flex;
        flex-flow: column;
        gap: 8px;
        justify-content: center;
        align-items: center;
        background-color: white;
        width: 30%;
        height: 40%;
        z-index: 101;
        border-radius: 16px;
    
    }
}

@media( min-width:769 ) {
    .userform__box {
        display: flex;
        flex-flow: column;
        gap: 8px;
        justify-content: center;
        align-items: center;
        background-color: white;
        width: 100%;
        height: 100%;
        z-index: 101;
        border-radius: 16px;
    
    }
}

.userform__baselabels {
    display: flex;
    flex-flow: column;
    width: fit-content;
    gap: 8px;
}

.userform__baselabels label {
    margin: 0;
    padding: 0;
    margin-bottom: 3.5%;
    text-align: right;
}

.userform__baseinputs {
    display: flex;
    flex-flow: column;
    width: fit-content;
    gap: 8px;
}

.userform__container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

    .userform__close {
        padding: 0;
        margin: 0;
        margin-top: -8%;
        margin-bottom: 16px;
        font-size: 32px;
        margin-left: auto;
        margin-right: 16px;
        cursor: pointer;
    }

.userform__close:hover {
    color: red;
}

/***********************************/


.userform__box {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


    .userform__close {
        position: absolute;
        /*top: 50px;*/
        right: -8px;
        font-size: 28px;
        cursor: pointer;
        color: #666;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

.userform__close:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: scale(1.1);
}

.userform__container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.userform__baselabels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.userform__baselabels label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 40px;
    white-space: nowrap;
}

.userform__baseinputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 2;
}

.userform__baseinputs input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.userform__baseinputs input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fafbfc;
}

.userform__baseinputs input::placeholder {
    color: #a0a4a8;
}

.userform__baseinputs input:hover {
    border-color: #c8ccd0;
}

.userform__btn {
    text-align: center;
}

.userform__btn .btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.userform__btn .btn:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.userform__btn .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Стили для валидации */
.userform__baseinputs input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.userform__baseinputs input:valid:not(:focus) {
border-color: #e1e1e1;
}

/* Адаптивность 
@media (max-width: 768px) {
    .userform__box {
        margin: 10px;
        padding: 20px;
    }
    
    .userform__container {
        flex-direction: column;
        gap: 15px;
    }
    
    .userform__baselabels {
        gap: 12px;
    }
    
    .userform__baselabels label {
        line-height: 1.4;
        white-space: normal;
    }
}

/*@media (max-width: 480px) {
    .userform__box {
        padding: 15px;
    }
    
    .userform__baseinputs input {
        padding: 10px 12px;
    }
    
    .userform__btn .btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
    }
}*/
