/* Stand-alone styles, exclusive to authentication-related pages */

body {
    background: linear-gradient(to right bottom, rgb(168,168,168) 0%, rgb(255,255,255) 100%) #ddd;
    background-attachment: fixed !important;
}

main {
    height: fit-content;
    position: absolute;
    top: 30%;
    transform: translateY(-40%);
}

.error {
    color: var(--bs-primary);
    display: none;
    font-size: var(--font-size-base);
    font-style: italic;
    margin-bottom: 8px;
    margin-top: 4px;
    min-height: 32px;
    padding: 0 4px;
    text-align: left;
    transition: height 1s;
}

.error#empty-placeholder {
    display: block;
}

.auth-form {
    transition: margin 1s, width 1s;
    width: 95%;
}

.auth-form input {
    font-size: var(--font-size-big);
}

.auth-form .buttons {
    align-items: end;
    display: flex;
    flex-direction: row-reverse; /* buttons are added in reverse order so primary Submit comes first in tab order */
    justify-content: space-between;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .error {
        height: 20px;
    }

    .auth-form {
        width: 500px;
    }

    main {
        top: 40%;
    }
}