.login main input,
.register main input {
    margin-top: 1rem;
    clear: both;
}

.login main label + input,
.register main label + input {
    margin-top: 0;
}

form {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

#status {
    display: flex;
    flex-wrap: wrap;
    color: var(--color-white);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: rgba(100, 100, 100, 0.8);
    margin: 0;
    z-index: -1;
}

#status > p,
#status > div,
#result > p {
    flex-basis: 100%;
    text-align: center;
    width: 100%;
}

#status > div {
    display: flex;
    align-items: flex-end;
}

#status.loading {
    opacity: 1;
    transition: 250ms ease-out;
    z-index: 2;
}

#loader {
    opacity: 0;
    border: 0.5rem solid var(--color-light-light);
    border-top: 0.5rem solid var(--color-black);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

#loader,
#statusText {
    opacity: 0;
}

#status.loading #statusText,
#status.loading #loader {
    opacity: 1;
    transition-delay: 250ms;
    transition: 500ms ease-in;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

#result {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    opacity: 0;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;

    cursor: pointer;
}

#result.error {
    color: var(--color-red);
    background: var(--color-red-light);
}

#result.success {
    color: var(--color-red-light);
    color: var(--color-green-dark);
    background: var(--color-light-light);
}

#result.success a {
    color: var(--color-green-dark);
}

#result.complete {
    transition: 250ms ease-in;
    opacity: 1;
    z-index: 2;
}

@media only screen and (min-width: 1000px) {
    .login main section,
    .register main section {
        width: 40%;
        margin: 2rem auto 0 auto;
        text-align: center;
    }
}
