.form-box {
    max-width: var(--window-width-xs, 600px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    image-rendering: auto;
    font-size: 1em;
}

.form-box .app-icon {
    margin-bottom: var(--grid-gap-32, 32px);
    cursor: default;
}

.form-box hr {
    width: 100%;
}

.form-switcher {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: var(--grid-gap-16, 16px);
    background-color: #fff;
    border-radius: 0.5em;
    box-shadow: inset 0 0 0.5em #888;
}

.form-switcher > button {
    flex: 1 1 0;
    white-space: nowrap;
}

.form-contents {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--grid-gap-16, 16px);
    transition: 0.25s;
    margin-bottom: 0;
}

.form-box input, .form-box button {
    width: 100%;
    line-height: 1.5em;
}

.form-box input.invalid {
    border: 1px solid #b53737;
    background-color: #ffe8ea;
    color: #b53737;
}

.form-box input {
    font-size: 1.2em;
    line-height: 1.2em;
    padding: 0.5em 1em;
    border: 1px solid #767676;
    border-radius: 0.5em;
}

.button-toggle-left, .button-toggle-right {
    color: #767676;
    background-color: transparent;
    text-shadow: none;
    border-top: 0.1em solid transparent;
    border-bottom-color: transparent;
}

.button-toggle-left:hover, .button-toggle-right:hover {
    color: #767676;
    background-color: rgba(0, 0, 0, 0.07);
}

.button-toggle-left.active, .button-toggle-right.active {
    color: #fff;
    background-color: #376eb5;
    text-shadow: 0 0.1em 0.35em #1a539c;
    border-bottom-color:#1a539c;
}

.button-toggle-left.active:hover, .button-toggle-right.active:hover {
    background-color: #3d7bcc;
}

.button-toggle-left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.button-toggle-right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-warning-box {
    width: 100%;
    background-color: #f8d7da;
    color: #721c24;
    padding: 1em;
    border: 1px solid #f5c6cb;
    border-radius: 0.5em;
    margin-top: 1em;
}

@media (max-width: 700px), (max-height: 800px) {
    .form-box {
        font-size: 0.8em;
    }

    .form-box .app-icon {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        border-radius: 20%;
    }
}

@media (min-width: 1000px) and (min-height: 1000px) {
    .form-box {
        font-size: 1.2em;
    }
}