/************* Auth (log in and register) *************/

/* The shared shell for the log in and register pages: a surface band holding the
   breadcrumb and one 960px card, the form on the left and a panel beside it. */
.auth {
    padding: 20px 20px 64px;
    background-color: var(--surface);
}

.authInner {
    max-width: 960px;
    margin: 0 auto;
}

.authCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    background-color: #FFF;
    box-shadow: 0 1px 2px rgba(35, 31, 32, .06);
}

.authCardMain {
    padding: 36px 48px;
}

.authCardMainTitle {
    font-size: var(--font-size-h1);
    font-weight: 800;
    letter-spacing: var(--letter-spacing-title);
    line-height: 1.2;
}

.authCardMainText {
    margin-top: 6px;
    color: var(--muted);
    font-size: var(--font-size-body);
    line-height: 1.5;
}

/* the line under the form ("Already have an account? Log in") */
.authCardMainFooter {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
    font-size: 14px;
}

/* the side panel */
.authCardSide {
    padding: 36px;
    border-left: 1px solid var(--hairline);
    background-color: var(--surface);
}

.authCardSideTitle {
    font-size: var(--font-size-h2);
    font-weight: 800;
    line-height: 1.25;
}

.authCardSideText {
    margin-top: 6px;
    color: var(--muted);
    font-size: var(--font-size-meta);
    line-height: 1.45;
}

.authCardSideList {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.authCardSideListItem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
}

.authCardSideListItemIcon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background-color: #FFF;
    color: var(--primary);
}

.authCardSideListItemIconSvg {
    width: 20px;
    height: 20px;
}

/* 7px top padding centres the first line on the 36px icon */
.authCardSideListItemText {
    padding-top: 7px;
}

.authCardSidePills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.authCardSideFooter {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
}

.authCardSideFooterTitle {
    font-size: 14px;
    line-height: 1.5;
}

.authCardSideFooterTitleStrong {
    font-weight: 700;
}

.authCardSideFooterText {
    color: var(--muted);
    font-size: var(--font-size-meta);
}

/************* Shared form parts *************/

.authForm {
    margin-top: 24px;
}

.authGroup {
}

.authGroup + .authGroup {
    margin-top: 16px;
}

/* a link in running text: maroon, bold, underlined so it never relies on colour */
.authLink {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.authLink:hover {
    color: var(--primary-hover);
}

.authNote {
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--font-size-meta);
    line-height: 1.45;
}

/* a numbered step heading */
.authStep {
    display: flex;
    align-items: center;
    gap: 10px;
}

.authStepBadge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background-color: var(--primary);
    color: #FFF;
    font-size: var(--font-size-meta);
    font-weight: 800;
}

.authStepTitle {
    font-size: 15px;
    font-weight: 700;
}

/* empty error lines take no room */
.auth .fieldError:empty {
    display: none;
}

/************* Mid widths *************/

@media (max-width: 1000px) {
    .authCard {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .authCardMain {
        padding: 32px;
    }

    .authCardSide {
        padding: 32px 28px;
    }
}

/************* Phone *************/

@media (max-width: 800px) {
    .auth {
        padding: 16px 16px 40px;
    }

    /* the form first, the panel under it */
    .authCard {
        grid-template-columns: minmax(0, 1fr);
    }

    .authCardMain {
        padding: 24px 20px;
    }

    .authCardMainTitle {
        font-size: 28px;
    }

    .authCardSide {
        padding: 24px 20px;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }
}
