/* The sign-in page: the form on the left in the admin's type and controls, the illustration on a warm panel on the
   right. Below 992px only the form. The fallbacks keep it right where the theme is off. */

/* base.html's page container is a flex row */
.login-page {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: 100vh;
    background: #fff;
    color: var(--t-ink, #222);
    font-size: .875rem;
    line-height: 1.45;
}

.login-panel {
    display: flex;
    flex-direction: column;
    padding: 32px 48px;
}

/* The logo, the form and the footer share one column, so their left edges line up */
.login-brand,
.login-body,
.login-footer {
    width: 100%;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
}

.login-brand img {
    display: block;
    width: 180px;
    height: auto;
}

.login-body {
    margin-top: auto;
    margin-bottom: auto;
    padding: 48px 0;
}

.login-title {
    margin: 0 0 24px;
    font-family: "Noto Sans", sans-serif;
    font-size: 32px;
    font-weight: 500;
}

.login-intro {
    margin: -12px 0 24px;
    color: var(--t-muted, #5f5f5f);
}

/* The password rules and the security guidelines: a quiet box, read before the fields */
.login-rules {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--t-border, #e3e3de);
    border-radius: var(--t-radius-card, 10px);
    background: #fafaf8;
    color: var(--t-muted, #5f5f5f);
    font-size: .8125rem;
}

.login-rules p {
    margin: 0 0 6px;
    color: var(--t-ink, #222);
    font-weight: 500;
}

.login-rules ul {
    margin: 0;
    padding-left: 18px;
}

.login-rules li + li {
    margin-top: 2px;
}

.login-guidelines {
    padding-left: 32px;
}

.login-remember a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--t-muted, #5f5f5f);
}

.login-back:hover {
    color: var(--t-ink, #222);
    text-decoration: none;
}

.login-body .alert {
    margin-bottom: 24px;
    font-size: .875rem;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label,
.login-label-row {
    margin-bottom: 4px;
    font-weight: 500;
}

.login-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.login-label-row label {
    margin: 0;
}

.login-label-row a {
    color: var(--t-muted, #5f5f5f);
    font-size: .8125rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-label-row a:hover {
    color: var(--t-ink, #222);
}

.login-error {
    margin: 4px 0 0;
    color: #b42318;
    font-size: .8125rem;
}

.login-remember {
    margin: 4px 0 24px;
}

.login-remember .custom-control-label {
    padding-top: 1px;
    font-weight: 400;
    cursor: pointer;
}

.login-submit {
    height: 40px;
    font-weight: 600;
}

.login-footer {
    color: var(--t-muted, #5f5f5f);
    font-size: .75rem;
}

/* The illustration is a JPEG on white; multiplied, its white takes the panel's colour and the figures stay as drawn */
.login-art {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #faf7ee;
}

.login-art img {
    width: 100%;
    max-width: max(640px, 36vw);
    max-height: 80vh;
    object-fit: contain;
    height: auto;
    mix-blend-mode: multiply;
}

@media (max-width: 991.98px) {
    .login-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-art {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .login-panel {
        padding: 24px 16px;
    }

    .login-body {
        padding: 40px 0;
    }
}
