html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Jost', sans-serif;

    position: relative;
    z-index: 0;

    background: url("../assets/bg3.jpg") no-repeat center center fixed;
    background-size: cover;
}

form p {
    margin: 0;
}

#out.msg {
    margin-top: 10px;
}

.auth-pen {
    position: relative;
    width: 360px;
    height: 460px;
    border-radius: var(--radius);
    box-shadow: 0 0 0 2px rgba(77, 163, 255, .3);
    overflow: hidden;
}

.auth-toggle {
    display: none;
}

.auth-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    background: var(--panel);
    border-radius: var(--radius);
    transition: .5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.pane-title {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 5px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--accent1);
    cursor: pointer;
    transition: transform .4s, color .4s;
}

/* Forms */
.pane-form {
    display: grid;
    gap: .8rem;
}

/* Login on top with blob curve */
.login {
    background: #0f1319;
    border-radius: 60% / 10%;
    transform: translateY(350px);
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(77, 163, 255, .3);
}

/* Slide out when toggled */
#chk:checked~.login {
    transform: translateY(105px);
    border-radius: 0;
}

.signup {
    z-index: 1;
}

/* Title scaling / color transitions */
.signup .pane-title {
    transform: scale(1);
    color: var(--accent2);
}

.login .pane-title {
    transform: scale(.8);
    color: var(--accent1);
}

#chk:checked~.login .pane-title {
    transform: scale(1);
    color: var(--accent2);
}

#chk:checked~.signup .pane-title {
    transform: scale(.8);
    color: var(--accent1);
}

@media (max-width: 480px) {
    body>img {
        max-width: 140px;
        margin-bottom: 1rem;
    }
}