@charset "utf-8";
/*
 *  Dealer Service Loyalty Program - white-label landing + login
 *
 *  Scoped to the public (unauthenticated) landing page. Nothing here leaks into
 *  the authenticated app, which still uses style.css.
 *
 *  WHITE LABEL: this page carries no Insurance Nation logo, wordmark or link.
 *  The only identity on it is the words "Dealer Service Loyalty Program", which
 *  appear exactly once (the hero header). Do not reintroduce a logo here.
 *
 *  Layout: one centred column - header, tagline, lede, login card, proof points.
 *  The login form is inline and always visible; there is no dialog and no top bar,
 *  so the page needs no JS to reveal anything.
 *
 *  NOTE: every var() carries a literal fallback on purpose. If :root ever fails to
 *  apply, the card and button must still paint rather than vanish.
 */

:root {
    --dv-navy: #0055a5;
    --dv-navy-dark: #003f7d;
    --dv-navy-deep: #002a53;
    --dv-red: #ee3a43;
    --dv-ink: #16212c;
    --dv-body: #4d5966;
    --dv-muted: #78838f;
    --dv-line: #dfe5ec;
    --dv-surface: #ffffff;
    --dv-surface-alt: #f4f7fa;
    --dv-radius: 14px;
    --dv-radius-sm: 10px;
    --dv-shadow-sm: 0 1px 2px rgba(16, 34, 51, .06), 0 2px 8px rgba(16, 34, 51, .06);
    --dv-shadow-md: 0 4px 12px rgba(16, 34, 51, .08), 0 12px 32px rgba(16, 34, 51, .10);
    --dv-shadow-lg: 0 18px 60px rgba(6, 20, 35, .42);
    --dv-ease: cubic-bezier(.2, .7, .3, 1);

    /* ===========================================================
       PHOTO VISIBILITY KNOBS - these two numbers are the ones to play with.
       0 = photograph fully visible (text unreadable)
       1 = photograph fully hidden  (solid navy, like the old design)

       Measured against the actual header_one.jpg pixels behind the centred
       column (they average RGB 46,46,47 - the dark car), white text gets:

         scrim / pool   photo visible   contrast (typical / worst pixel)
         .00  / .25          75%              15.1 / 5.6
         .16  / .30          59%              16.0 / 7.4   <- current
         .26  / .45          41%              17.2 / 10.6
         .38  / .45          34%              17.5 / 11.9
         .50  / .45          28%              17.9 / 13.4

       WCAG AA needs 4.5:1, AAA needs 7:1 - so there is a lot of room to show
       more photo. Drop --dv-scrim toward 0 for a brighter image; raise it if
       a different photograph with bright areas ever replaces this one.
       =========================================================== */
    --dv-scrim: .16;

    /* Extra darkening pooled behind the centred column only, so the edges of the
       photo stay bright while the text keeps its contrast. Same 0-1 scale. */
    --dv-scrim-pool: .30;
}

/* ---------------------------------------------------------------
   1. Base
   --------------------------------------------------------------- */

body#page-top {
    color: var(--dv-body, #4d5966);
    background: var(--dv-surface, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings are coloured per component, never with an #id blanket rule - an ID
   selector would outrank the hero rules and knock the hero text back to dark on
   a dark scrim. */
.dv-section-title,
.dv-card h3,
.dv-login-title {
    color: var(--dv-ink, #16212c);
    letter-spacing: -.01em;
}

#page-top a:focus-visible,
#page-top button:focus-visible,
#page-top input:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .8);
    outline-offset: 2px;
    border-radius: 4px;
}

.dv-login-card a:focus-visible,
.dv-login-card input:focus-visible {
    outline: 3px solid rgba(0, 85, 165, .5);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------
   2. Hero - single centred column
   --------------------------------------------------------------- */

.dv-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 64px 0 72px;
    overflow: hidden;
    background: var(--dv-navy-deep, #002a53);
}

.dv-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../img/header_one.jpg') center 32% no-repeat;
    background-size: cover;
}

/* Two layers:
   1. a soft elliptical pool of darkness centred on the column, so the copy and
      the card sit on a readable ground;
   2. a light flat wash over everything, which is what actually decides how much
      of the photograph survives at the edges.
   Both are driven by the knobs in :root. */
.dv-hero-scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(ellipse 780px 640px at 50% 46%,
            rgba(0, 16, 34, var(--dv-scrim-pool, .30)) 0%,
            rgba(0, 16, 34, calc(var(--dv-scrim-pool, .30) * .55)) 55%,
            rgba(0, 16, 34, 0) 100%),
        linear-gradient(to bottom,
            rgba(0, 16, 34, calc(var(--dv-scrim, .16) + .06)) 0%,
            rgba(0, 16, 34, var(--dv-scrim, .16)) 42%,
            rgba(0, 16, 34, calc(var(--dv-scrim, .16) + .12)) 100%);
}

.dv-hero > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.dv-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The single appearance of the program name. This is the page header (h1):
   prominent, but deliberately smaller than the tagline beneath it. */
.dv-hero-header {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(18px, 2.1vw, 27px);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .6);
}

/* The tagline - the biggest type on the page. */
.dv-hero-title {
    margin: 0 0 18px;
    max-width: 900px;
    color: #fff;
    /* px, not rem: bootstrap.min.css sets html{font-size:10px}, so rem here would
       render at 62.5% of the intended size. */
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -.015em;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .62);
}

/* The tagline is an asp:Label, which renders its own span. */
.dv-hero-title span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.dv-hero-lede {
    margin: 0 0 34px;
    max-width: 620px;
    color: rgba(255, 255, 255, .95);
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .7);
}

/* Proof points sit BELOW the card as a single centred row, so the login stays
   high on the screen instead of being pushed down by marketing copy. */
.dv-hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.dv-hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .93);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .7);
}

/* Monochrome rule marker rather than a coloured tick - coloured check icons read
   as stock template decoration. */
.dv-hero-points li::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------
   3. Login card - centred, inline, no dialog, no logo
   --------------------------------------------------------------- */

.dv-login-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 32px 28px;
    border-radius: var(--dv-radius, 14px);
    background: var(--dv-surface, #ffffff);
    box-shadow: var(--dv-shadow-lg, 0 18px 60px rgba(6, 20, 35, .42));
    text-align: left;
    /* Explicit, so nothing in the card can inherit the hero's white text and
       disappear against the white card. */
    color: var(--dv-body, #4d5966);
}

.dv-login-head {
    margin-bottom: 22px;
    text-align: center;
}

.dv-login-title {
    margin: 0 0 5px;
    color: var(--dv-ink, #16212c);
    font-size: 22px;
    font-weight: 600;
    font-style: normal;
}

.dv-login-sub {
    margin: 0;
    color: var(--dv-muted, #78838f);
    font-size: 13.5px;
}

/* --- field --- */

.dv-field {
    margin-bottom: 18px;
}

.dv-field-label {
    display: block;
    margin-bottom: 7px;
    color: var(--dv-ink, #16212c);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dv-input-wrap {
    position: relative;
}

.dv-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--dv-muted, #78838f);
    font-size: 15px;
    pointer-events: none;
    transition: color .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1));
}

.dv-login-card .dv-input-wrap .form-control {
    height: 48px;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--dv-line, #dfe5ec);
    border-radius: var(--dv-radius-sm, 10px);
    background: var(--dv-surface-alt, #f4f7fa);
    color: var(--dv-ink, #16212c);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1)), background-color .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1)), box-shadow .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1));
}

.dv-login-card .dv-input-wrap .form-control::-webkit-input-placeholder {
    color: var(--dv-muted, #78838f);
}

.dv-login-card .dv-input-wrap .form-control::placeholder {
    color: var(--dv-muted, #78838f);
}

.dv-login-card .dv-input-wrap .form-control:focus {
    outline: 0;
    border-color: var(--dv-navy, #0055a5);
    background: var(--dv-surface, #ffffff);
    box-shadow: 0 0 0 4px rgba(0, 85, 165, .13);
}

.dv-input-wrap:focus-within > i {
    color: var(--dv-navy, #0055a5);
}

/* --- remember me / forgot --- */

.dv-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 20px;
}

.dv-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dv-body, #4d5966);
    font-size: 13.5px;
}

/* asp:CheckBox renders span > input + label; normalise that. */
.dv-remember span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dv-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--dv-navy, #0055a5);
    cursor: pointer;
}

.dv-remember label {
    margin: 0;
    color: var(--dv-body, #4d5966);
    font-weight: 400;
    cursor: pointer;
}

.dv-forgot,
.dv-forgot:link,
.dv-forgot:visited {
    color: var(--dv-navy, #0055a5);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dv-forgot:hover,
.dv-forgot:focus {
    color: var(--dv-red, #ee3a43);
    text-decoration: underline;
}

/* --- submit ---
   This is an <input type="submit"> (asp:Button). Its label is the value
   attribute, so it can never render as invisible text. */

.dv-login-card input[type="submit"].dv-btn-submit {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--dv-radius-sm, 10px);
    background: linear-gradient(135deg, var(--dv-navy, #0055a5), var(--dv-navy-dark, #003f7d));
    background-color: var(--dv-navy, #0055a5);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 4px 14px rgba(0, 85, 165, .32);
    transition: transform .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1)), box-shadow .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1)), filter .18s var(--dv-ease, cubic-bezier(.2, .7, .3, 1));
}

.dv-login-card input[type="submit"].dv-btn-submit:hover,
.dv-login-card input[type="submit"].dv-btn-submit:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(0, 85, 165, .42);
}

.dv-login-card input[type="submit"].dv-btn-submit:active {
    transform: translateY(0);
}

/* --- errors --- */

.dv-login-alert {
    display: block;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid rgba(238, 58, 67, .32);
    border-left: 3px solid var(--dv-red, #ee3a43);
    border-radius: var(--dv-radius-sm, 10px);
    background: rgba(238, 58, 67, .07);
    /* !important because ValidationSummary defaults ForeColor to Red and emits it
       as an inline style, which would otherwise win. */
    color: #a31f27 !important;
    font-size: 13.5px;
    line-height: 1.55;
    text-align: left;
}

.dv-login-alert p,
.dv-login-alert span {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

/* ValidationSummary renders a ul; strip the browser default indent. */
.dv-login-alert ul {
    margin: 0;
    padding-left: 18px;
}

.dv-login-foot {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--dv-line, #dfe5ec);
    color: var(--dv-muted, #78838f);
    font-size: 12px;
    text-align: center;
}

/* ---------------------------------------------------------------
   4. Feature section
   --------------------------------------------------------------- */

.dv-section {
    padding: 88px 0;
    background: var(--dv-surface, #ffffff);
}

.dv-section-head {
    max-width: 660px;
    margin: 0 auto 54px;
    text-align: center;
}

.dv-section-rule {
    width: 56px;
    height: 2px;
    margin: 0 auto 22px;
    border-radius: 2px;
    background: var(--dv-navy, #0055a5);
}

.dv-section-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 400;
}

.dv-section-sub {
    margin: 0;
    color: var(--dv-body, #4d5966);
    font-size: 15px;
    line-height: 1.7;
}

.dv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    max-width: 940px;
    margin: 0 auto;
}

.dv-card {
    position: relative;
    padding: 34px 32px;
    border: 1px solid var(--dv-line, #dfe5ec);
    border-radius: var(--dv-radius, 14px);
    background: var(--dv-surface, #ffffff);
    box-shadow: var(--dv-shadow-sm, 0 1px 2px rgba(16, 34, 51, .06), 0 2px 8px rgba(16, 34, 51, .06));
    transition: transform .22s var(--dv-ease, cubic-bezier(.2, .7, .3, 1)), box-shadow .22s var(--dv-ease, cubic-bezier(.2, .7, .3, 1)), border-color .22s var(--dv-ease, cubic-bezier(.2, .7, .3, 1));
}

.dv-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--dv-shadow-md, 0 4px 12px rgba(16, 34, 51, .08), 0 12px 32px rgba(16, 34, 51, .10));
}

.dv-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
}

.dv-card p {
    margin: 0;
    color: var(--dv-body, #4d5966);
    font-size: 14.5px;
    line-height: 1.72;
}

/* ---------------------------------------------------------------
   5. Footer
   --------------------------------------------------------------- */

.dv-footer {
    padding: 30px 0;
    border-top: 1px solid var(--dv-line, #dfe5ec);
    background: var(--dv-surface-alt, #f4f7fa);
    text-align: center;
}

.dv-footer p {
    margin: 0;
    color: var(--dv-muted, #78838f);
    font-size: 13px;
}

/* ---------------------------------------------------------------
   6. Responsive
   --------------------------------------------------------------- */

@media (max-width: 767px) {
    .dv-hero {
        min-height: 0;
        padding: 48px 0 56px;
    }

    .dv-section {
        padding: 60px 0;
    }

    .dv-login-card {
        padding: 26px 22px 22px;
    }

    .dv-login-options {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    /* Stack the proof points; a wrapped centred row reads badly on a phone. */
    .dv-hero-points {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 28px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-top * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .dv-card:hover,
    .dv-login-card input[type="submit"].dv-btn-submit:hover {
        transform: none;
    }
}
