* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background-color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

form {
    background-color: aqua;
    padding: 20px;
    width: 100%;
    max-width: 440px;
    min-height: 0;
    border-radius: 20px;

    /* Remove the old relative positioning */
}

.h1 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 50px;
}

input {
    padding: 10px;
    display: block;
    margin: 0 auto 15px;
    border-radius: 10px;
    border: 1px solid transparent;

    width: 100%;
    max-width: 325px;
    height: 40px;
}

input:hover {
    border: 1px solid gray;
}

.username1-error,
.username1-error:hover,
.password1-error,
.password1-error:hover {
    border: 2px solid red;
}

.username1-error::placeholder,
.password1-error::placeholder {
    color: red;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.signin,
.forgotpassword,
.signup {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto 15px;
    width: 100%;
    max-width: 325px;
    min-height: 40px;

    border-radius: 20px;
    box-shadow: 4px 3px 3px #777;
}

.signin,
.forgotpassword {
    background-color: aqua;
    border: 1px solid white;
}

.signup {
    background-color: white;
    color: black;
    border: none;
}

.signin:hover,
.forgotpassword:hover,
.signup:hover {
    transform: translateY(2px);
    box-shadow: 3px 2px 3px #777;
}

/* Mobile screens */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    form {
        position: relative;
        top: -40px;

        padding: 18px;
        min-height: auto;
        border-radius: 16px;
    }

    .h1 {
        font-size: 25px;
        margin-bottom: 40px;
    }
}