/* CardPage.css - pages that are one white card on a photo banner, without the side menu (COID Easy "Landing - photo", D85 / CE07):
   the brand strip at the top, the photo banner with its sky-blue bottom line, the card that overlaps the banner, and the line at the bottom.
   Uses: CoidEasyTokens.css (colours, loaded first by _Layout.cshtml), the photo wwwroot/img/coid/coid-hero-landing_1800x332.jpg.
   Used by: Views/Login/Index.cshtml (with Login.css), Views/Coida/Index.cshtml and Views/Shared/Error.cshtml (with Options.css). Each sets ViewData["BodyClass"] = "card-page".
   What goes inside the card is in the page's own stylesheet. */

/* Width includes padding and border everywhere; no default gaps. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* The page: strip, banner, card, bottom line, top to bottom, at least as tall as the window. */
body.card-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--navy);
    font-family: var(--font);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

/* Buttons and boxes use the page's font, not the browser's. */
body.card-page button,
body.card-page input,
body.card-page select {
    font-family: inherit;
}

/* The brand strip: "A product by SDC SHEQ Compliance | ..." (D76, CE10). Small, centred, on the strip colour. */
.card-page-strip {
    flex-shrink: 0;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--strip);
    color: rgba(255,255,255,.5);
    font-size: 10px;
    text-align: center;
}

    .card-page-strip b {
        margin: 0 4px;
        color: rgba(255,255,255,.78);
    }

/* The photo banner: navy under the photo, a 4px sky-blue line along the bottom (CE07). */
.card-page-hero {
    position: relative;
    flex-shrink: 0;
    height: 150px;
    overflow: hidden;
    background: var(--navy);
    border-bottom: 4px solid var(--c-accent);
}

/* The photo itself (wooden figures, CE08), a little greyed so the card stands out. */
.card-page-hero-photo {
    position: absolute;
    inset: 0;
    background: url('../../img/coid/coid-hero-landing_1800x332.jpg') center 58% / cover;
    filter: saturate(.5) contrast(1.06);
}

/* A navy wash over the photo, darker towards the bottom. */
.card-page-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,43,60,.55), rgba(30,43,60,.9));
}

/* The middle: the card, centred, pulled up over the banner. */
.card-page-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px 40px;
}

/* The white card. */
.card-page-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-top: -70px;
    padding: 28px 30px 26px;
    background: var(--white);
    border-radius: 10px; /* var(--radius-lg) */
    box-shadow: 0 8px 28px rgba(30,43,60,.12);
}

/* A wider card (the section choice). */
.card-page-card.card-page-card-wide {
    max-width: 460px;
}

/* The COID Easy logo with its brand line (the _tagline file, CE10), centred. */
.card-page-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

    .card-page-logo img {
        display: block;
        height: 58px;
        width: auto;
        max-width: 100%;
    }

/* The card's heading and the grey line under it. */
.card-page-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.card-page-sub {
    margin: 0 0 20px;
    font-size: 11.5px;
    color: var(--mid-grey);
    text-align: center;
}

/* The line at the bottom of the page: copyright and brand line. */
.card-page-foot {
    flex-shrink: 0;
    padding: 16px;
    font-size: 10px;
    color: var(--light-grey);
    text-align: center;
    letter-spacing: .04em;
}

/* Phone: the long part of the strip is dropped, the card is closer to the edges. */
@media (max-width: 760px) {
    .card-page-strip-long {
        display: none;
    }

    .card-page-card {
        padding: 24px 20px 22px;
    }
}
