.form-container
{
    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--font-color)
}

.form
{
    display: flex;
    flex-direction: column;
    width: 30%;

    background-color: var(--quaternary-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
}

.register.form
{
    margin-top: 5vh;
}

.login.form
{
    margin-top: 15vh;
}

.login-text, .register-text
{
    text-align: center;
    font-size: 1.2em;
    color: var(--heading-color);
    margin: 5vmin 10vmin;
    max-width: 20vw;
}

.form-elem
{
    margin: 4vmin;
    display: flex;
    justify-content: center;
}

.form-elem input {
    all: unset;
    width: 90%;
    padding: 0.5vmin;
    background-color: none;
    border-bottom: 1px solid var(--primary-color);
    z-index: 3;
    box-sizing: border-box;
    color-scheme: dark; /* this is because I can't f*cking change the :-internal-autofill-selected pseudo-class */
}

.form-elem label
{
    position: absolute;
    left: calc(35% + 3% + 4vmin);
    max-width: 20vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-elem input:focus ~ label, .form-elem input:not(:placeholder-shown) ~ label
{
    font-size: 0.7em;
    left: calc(37% + 3vmin);
    transform: translateY(-100%);
    transition: 0.3s;
    color: var(--tertiary-color);
} 

.login-button, .register-button
{
    all: unset;
    width: 40%;
    text-align: center;
    color: var(--heading-color);
    /* align-items: center; */
    /* justify-content: center; */
    padding: 2vmin;
    margin: 0 30% 3vmin 30%;
    border: 1px solid var(--quaternary-color);
    border-radius: 5px;
    box-sizing: border-box;
}

.login-button:hover, .register-button:hover
{
    background-color: rgb(27 19 52);
    color: var(--font-color);
    border-color: var(--primary-color);
    cursor: pointer;
}

.no-account, .already-have-account
{
    font-size: 0.7em;
    text-align: center;
    width: 30%;
    margin: 1vmin 0;
}

.no-account a, .already-have-account a
{
    all: unset;
    border-bottom: 1px solid var(--heading-color);
    cursor: pointer;
}