/*
    The riho sign-in screen, as drawn: one card in the middle of an empty page, the tenant's
    image across the top of it, three pill fields and a pill button the same width as they are.
    dompet draws its own two-column page and does not load this file. What stays the theme's
    is every colour, every font and every focus ring. Loaded after ssp.css, so it outranks it.
*/

.ssp-login {
    --ssp-login-radius: 2rem;
    --ssp-login-control-h: 3.25rem;
    --ssp-login-hairline: rgba(0, 0, 0, .09);
}

/* riho's 30px above and below the card is what pushes it past a laptop window at 150%. */
.ssp-login .login-card {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

/* The corner artwork of riho's login_bg.jpg is dropped; the page keeps the photo's own flat grey. */
.ssp-login .login-card {
    background: color-mix(in srgb, white, slategray 5%);
}

/* The card. Stated here rather than left to riho's .login-main, whose background differs
   between the theme's sign-in variants. */
/* Below its minimum width the card scrolls sideways rather than crushing the fields; the
   height is fitted by fit-height.js and never scrolls. */
.ssp-login .ssp-login-card {
    width: 100%;
    min-width: 18rem;
    max-width: 32rem;
    margin: 0 auto;
    padding: 2rem 3rem 2rem;
    background-color: white;
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
}

@media (max-width: 575.98px) {
    .ssp-login .ssp-login-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }
}

/* The tenant's banner is the masthead: full width of the card, its own proportions kept. */
.ssp-login .ssp-login-brand {
    margin-bottom: 1.5rem;
    text-align: center;
}

.ssp-login .ssp-login-brand .ssp-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    border-radius: .25rem;
}

/* A host with no banner falls back to its logo, which is a different shape and should not be
   stretched across the card the way a banner is. */
.ssp-login .ssp-login-brand .ssp-logo {
    max-height: 4rem;
    max-width: 100%;
}

.ssp-login .form-control {
    height: var(--ssp-login-control-h);
    padding: 0 1.5rem;
    border: 1px solid var(--ssp-login-hairline);
    border-radius: var(--ssp-login-radius);
    box-shadow: none;
}

.ssp-login .form-control:focus {
    border-color: var(--ssp-primary);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--ssp-primary) 18%, transparent);
}

/* Same pill, same width as the fields above it: in the drawing the button lines up with them
   exactly rather than sitting inside a narrower column. */
.ssp-login .btn-primary {
    width: 100%;
    height: var(--ssp-login-control-h);
    border-radius: var(--ssp-login-radius);
    font-weight: 500;
}

/* The rule under the button, and the one link beneath it. */
.ssp-login .ssp-login-foot {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ssp-login-hairline);
    text-align: center;
}

.ssp-login .ssp-login-foot a {
    color: var(--ssp-primary);
    text-decoration: none;
}

.ssp-login .ssp-login-foot a:hover,
.ssp-login .ssp-login-foot a:focus {
    text-decoration: underline;
}

/* No logo and no banner: the display name stands in as the masthead, so it is sized like one
   rather than like the small brand mark it is everywhere else. */
.ssp-login .ssp-login-brand .ssp-brand {
    font-size: 1.75rem;
    white-space: normal;
}

/* riho centres the toggle only inside its .theme-form; the form here is shared with dompet. */
.ssp-login .show-hide {
    top: 50%;
}

/* An eye instead of riho's "show"/"hide" words: open while the password is hidden, struck while it is shown. */
.ssp-login .show-hide span {
    display: flex;
}

.ssp-login .show-hide span::before {
    content: none;
}

.ssp-login .show-hide svg {
    width: 18px;
    height: 18px;
}

.ssp-login .show-hide span.show .feather-eye-off,
.ssp-login .show-hide span:not(.show) .feather-eye {
    display: none;
}
