.form-section h1,
.form-section > p:first-of-type {
    text-align: center;
}

.form-section {
    width: 100%;
    max-width: 400px;
}

    .form {
        width: 100%;
        max-width: 400px;
    }

    @media (max-width: 640px) {
        .form {
            width: 100%;
        }
    }

        .form p {
            margin: 0 0 1rem 0;
        }

        .form p:nth-last-of-type {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: .5rem;
        }

        .forgot-password {
            display: block;
            text-align: center;
            margin: 1rem 0;
        }

/* "or" divider between email login and social login */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--grape);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--darkGrape);
}

/* Connected account row in connections.html */
.connection-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    border: 1px solid var(--darkGrape);
    border-radius: 5px;
    color: var(--lightGrape);
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease;
}

.connection-item:has(input:checked) {
    border-color: var(--lightMint);
    color: var(--lightMint);
}