main {
    max-width: 340px !important;
}

.user-input {
    position: relative;
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.user-input label {
    position: absolute;
    top: 1.85rem;
    left: 0.5rem;
}

#access {
    width: 100%;
}

.user-input:hover label,
input:not(:placeholder-shown) ~ label,
input:focus ~ label {
    top: 0;
    left: 0;
}

input[type="text"], input[type="password"] {
    display: block;
    padding: 0.5rem;
    width: 100%;
    border: 0px solid #666;
    border-bottom-width: 1px;
    font-size: 1rem;
}

input[type="submit"] {
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #222;
    background-color: #fff;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #333;
    color: #fff;
}

input:required:valid {
    background: none;
}

.not-valid {
    width: 100%;
    border: 1px solid red;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
}

.not-valid p {
    margin: 0;
}