JSFiddle - React, Tailwind, and code Playground

HTML

<fieldset>
<form action="process.php" method="post">
    <legend>Logdin</legend>
    <label for="username">Username:</label>
    <input type="text" name="username" id="username" />
    <br />
    <label for="password">Password:</label>
    <input type="password" name="password" id="password" />

</form>
</fieldset>
<br />
<fieldset>
<form action="process.php" method="post">
    <legend>Sign Up</legend>
    <label for="username">Username:</label>
    <input type="text" name="username" id="username" />
    <br />
    <label for="password">Password:</label>
    <input type="password" name="password" id="password" />

</form>
</fieldset>

CSS

label, input {
    width: 200px;
    display:block;
    float:left;        
    margin-bottom:10px;
    margin-top:10px
    background-color: #c0c0c0;
}
label {
   width:35%;
    text-align:right;
    padding-right:10px;
    margin-top:10px;
    background-color: #c0c0c0;
}
br {
    clear:left;
}
fieldset{
    border:1px solid black;
    border-radius:5px;
    width:350px;
    overflow:hidden;
}
legend {
    text-align:center;
    font-weight:bold;
    background-color:green;
    padding:5px;
    color:white;
    border-radius:0 0 5px 0;
}