JSFiddle - React, Tailwind, and code Playground

HTML

<div class="modal-content">
                <button class="modal-content-close" type="button" title="Закрыть">Закрыть</button>
                <h2 class="modal-content-title">Личный кабинет</h2>
                <p>Введите пожалуйста свой логин и пароль</p>
                <form class="login-form" method="post" action="#">
                    <div class="icon-user">
                        <input type="text" name="login" placeholder="Логин">
                    </div>
                    <div class="icon-password">
                        <input type="password" name="password" placeholder="Пароль">
                    </div>
                        <label class="login-checkbox" for="remember">
                            <input type="checkbox" name="remember" id="remember">
                            <span class="checkbox-indicator">Запомните меня</span>
                        </label>
                        <a class="restore" href="#">Я забыл пароль!</a>
                        <button class="btn" type="submit">Войти</button>
                </form>
            </div>

CSS

.modal-content {
    display: flex;
    position: absolute;
    flex-wrap: wrap;
    top: 120px;
    left: 50%;
    width: 300px;
    margin-left: -230px;
    padding: 50px 80px;
    color: black;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7);
    background: #f4f1ee url("../img/texture1.png");
}
.modal-content-close {
    position: absolute;
    top: 0;
    right: -24px;
    font-size: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
}

.modal-content-close::after, 
.modal-content-close::before {
    position: absolute;
    display: block;
    content: "";
    width: 23px;
    height: 4px;
    border-radius: 1px;
    background: #d0d0d0;
    top: 8px;
    left: -1px;
}
.modal-content-close::after {
    transform: rotate(45deg);
}

.modal-content-close::before {
    transform: rotate(-45deg);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    font-family: "PT Sans Narrow", "Arial", sans-serif;
    color: black;
    font-weight: bold;
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    width: 241px;
    margin: 0;
    margin-bottom: 10px;
    padding: 10px 15px;
    padding-right: 40px; 
    border: 2px solid black;
    background: #f9f6f3;   
}

.login-form input:focus {
    border-color: #663d15;
}


.icon-user::after {
    position: relative;
    display: block;
    content: "";
    width: 15px;
    height: 15px;
    background: #f9f6f3 url("../img/icons1.png") no-repeat 0 -258px;
    top: -42px;
    left: 270px;
}
.icon-user::before {
    position: relative;
    display: block;
    content: "";
    width: 15px;
    height: 17px;
    background: #f9f6f3 url("../img/icons1.png") no-repeat 0 -273px;
    top: 104px;
    left: 270px;
}

.modal-content h2 {
    margin: 0;
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 42px;
    
}

.modal-content p {
    margin: 0;
    font-size: 14px;
}

.login-checkbox {
    float: left;
    width: 50%;
    position:...