﻿@charset "utf-8";

/* Login (Default.aspx) - "The Quiet Ledger" look for the standalone sign-in page.
   Scoped under .lg-body (the page's body class). Look only: every id, postback and script hook
   (UserName, UserPass, LoginBtn, passShowHide, ForgotPassPanel, joinBtn, the language list) is unchanged.
   The page has no master, so it links Style/design/ds-tokens.css itself; the fallbacks after each
   var() keep it readable if that link is ever dropped.
   Brand colour is READ from --primary only (white-label domains repaint it, #styleTheme).
   Default.aspx.cs writes some inline styles (domain background, logo height, language font size);
   the !important rules below say which one they beat. */

/* body.lg-body: beats body:not(.iframeMaster) { background: var(--bgColor) } (stylesheet.css) */
body.lg-body {
    --lg-ink: var(--ds-ink, #1b2431);
    --lg-text: var(--ds-text, #3a4556);
    --lg-muted: var(--ds-muted, #5d6a7d);
    --lg-placeholder: var(--ds-placeholder, #6b778a);
    --lg-line: var(--ds-line, #e1e6ed);
    --lg-line-strong: var(--ds-line-strong, #c9d1dc);
    --lg-subtle: var(--ds-subtle, #f5f7fa);
    --lg-ground: #eef1f5;
    --lg-accent: var(--primary, #0e639d);
    --lg-focus: 0 0 0 3px rgba(14, 99, 157, .28);
    --lg-radius: var(--ds-radius, 8px);
    --lg-radius-lg: var(--ds-radius-lg, 12px);
    --lg-control-h: 44px;
    --lg-font: var(--ds-font, 'Rubik', 'Segoe UI', Arial, sans-serif);
    --lg-ease: var(--ds-ease, cubic-bezier(.2, .7, .2, 1));
    --lg-fast: var(--ds-fast, 160ms);
    /* the focus ring follows the domain's own accent where color-mix is available */
    --lg-focus: 0 0 0 3px color-mix(in srgb, var(--primary, #0e639d) 28%, transparent);
    margin: 0;
    min-height: 100vh;
    font-family: var(--lg-font);
    color: var(--lg-text);
    -webkit-text-size-adjust: 100%;
}

    .lg-body *,
    .lg-body *::before,
    .lg-body *::after {
        box-sizing: border-box;
    }

/* ---------- 1. page frame: split screen ----------
   Form column first in the source, so it takes the reading-start side: right in Hebrew/Arabic (pageDiv carries
   direction:rtl inline), left in LTR languages. The visual column is #defaultMain, which Default.aspx.cs paints
   with the domain's BgImg / LoginPanelBg inline. */

/* beats: body.Style["background-color"] = the domain's LoginPanelBg (Default.aspx.cs); the form column is white,
   the domain colour now lives in the visual column */
body.lg-body {
    background: #fff !important;
}

.lg-body .lg-page {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    min-height: 100vh;
}

.lg-body .lg-formcol {
    position: relative;
    z-index: 1; /* the language list may open over the visual column */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.lg-body .lg-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 100vh;
    padding: clamp(40px, 6vh, 72px) clamp(32px, 4.5vw, 72px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Every domain (white-label ones too): a deep panel mixed from the panel's dark slate and the domain's own
   --primary. The faint white 18px dot grid (::after) and a soft glow of the accent (::before) are separate layers
   so they can drift slowly (section 1e).
   beats: defaultMain.Style["background-image" / "background-color"] = BgImg / LoginPanelBg (Default.aspx.cs) -
   a white-label domain's old login image is no longer shown */
body.lg-body .lg-visual {
    --lg-deep: color-mix(in srgb, var(--primary, #0e639d) 24%, #0c1420);
    --lg-tint: color-mix(in srgb, var(--primary, #0e639d) 42%, #fff);
    background-color: #102035 !important;
    background-color: var(--lg-deep) !important;
    background-image: radial-gradient(ellipse 60% 40% at 0% 100%, color-mix(in srgb, var(--primary, #0e639d) 18%, transparent), transparent 70%) !important;
    background-size: auto !important;
    background-position: 0 0 !important;
    color: #fff;
}

    body.lg-body .lg-visual::before,
    body.lg-body .lg-visual::after {
        content: "";
        position: absolute;
        pointer-events: none;
    }

    /* the accent glow from the top corner */
    body.lg-body .lg-visual::before {
        inset: -20% -20% auto auto;
        width: 90%;
        height: 70%;
        background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary, #0e639d) 40%, transparent), transparent 65%);
    }

    /* the dot grid, one tile larger than the panel on each side so it can drift */
    body.lg-body .lg-visual::after {
        inset: -18px;
        background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 1.4px);
        background-size: 18px 18px;
    }

    body.lg-body .lg-visual > * {
        position: relative;
        z-index: 1;
    }

/* the reviews / testimonials are SendMsg's own - never on a white-label domain (the server does not render them
   there either) */
body.lg-own-bg .lg-reviews {
    display: none;
}

/* ---------- 1b. headline (existing domain text, see Default.aspx.cs setHeroTexts) ---------- */
.lg-body .lg-hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
    margin-block: auto; /* centred in the panel; the reviews, when there are any, sit at the foot */
}

.lg-body .lg-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 3.9vw, 3.75rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.02em;
    text-wrap: balance;
}

    .lg-body .lg-hero__title em {
        display: block;
        font-style: normal;
        color: var(--lg-tint);
    }

/* a long one-sentence headline (Default.aspx.cs adds this over 40 characters): a step smaller, a little more
   leading, so ~70 characters sit on 2-3 balanced lines */
.lg-body .lg-hero__title--long {
    max-width: 18em;
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1.1;
}

/* ---------- 1c. product cards (decorative, aria-hidden): AI generating + an automation flow + a smart result ---------- */
.lg-body .lg-cards {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    margin-block-start: 20px;
}

.lg-body .lg-gcard {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .92);
    font-size: .8125rem;
    line-height: 1.4;
}

.lg-body .lg-gcard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, .72);
    font-weight: 500;
}

    .lg-body .lg-gcard__head span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

.lg-body .lg-gcard__num {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
}

/* AI card: AI purple (--secondary) is the AI accent here, beside the domain's --primary */
.lg-body .lg-gcard--ai {
    --lg-ai: var(--secondary, #6328a7);
    --lg-ai-tint: color-mix(in srgb, var(--secondary, #6328a7) 50%, #fff);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lg-body .lg-ai__badge {
    padding: 3px 10px;
    padding-inline-start: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lg-ai) 45%, transparent);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
}

    .lg-body .lg-ai__badge svg {
        color: var(--lg-ai-tint);
    }

.lg-body .lg-ai__prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding-inline: 12px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-ai-tint) 45%, transparent);
}

.lg-body .lg-ai__spark {
    flex: none;
    color: var(--lg-ai-tint);
}

.lg-body .lg-ai__typing {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

    .lg-body .lg-ai__typing i {
        display: block;
        inline-size: 72%;
        height: 8px;
        border-radius: 4px;
        background: rgba(255, 255, 255, .38);
    }

.lg-body .lg-ai__caret {
    flex: none;
    width: 2px;
    height: 16px;
    border-radius: 1px;
    background: #fff;
}

.lg-body .lg-ai__go {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--lg-ai);
    color: #fff;
}

.lg-body .lg-page[style*="rtl"] .lg-ai__go svg {
    transform: scaleX(-1);
}

/* the generated newsletter / landing page */
.lg-body .lg-ai__preview {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
}

.lg-body .lg-ai__sec--head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .lg-body .lg-ai__sec--head i:first-child {
        width: 36px;
        height: 9px;
        border-radius: 4px;
        background: var(--primary, #0e639d);
    }

    .lg-body .lg-ai__sec--head i:last-child {
        width: 56px;
        height: 6px;
        border-radius: 3px;
        background: #e1e6ed;
    }

.lg-body .lg-ai__sec--hero {
    height: 64px;
    border-radius: 6px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #0e639d) 45%, #fff), color-mix(in srgb, var(--secondary, #6328a7) 32%, #fff));
}

.lg-body .lg-ai__sec--text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .lg-body .lg-ai__sec--text i {
        height: 6px;
        border-radius: 3px;
        background: #e1e6ed;
    }

        .lg-body .lg-ai__sec--text i:nth-child(2) { width: 90%; }
        .lg-body .lg-ai__sec--text i:nth-child(3) { width: 58%; }

.lg-body .lg-ai__sec--cta i {
    display: block;
    width: 84px;
    height: 20px;
    border-radius: 5px;
    background: var(--primary, #0e639d);
}

.lg-body .lg-ai__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .lg-body .lg-ai__tags span {
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .82);
        font-size: .75rem;
        font-weight: 500;
    }

/* automation card: trigger -> email -> wait -> SMS */
.lg-body .lg-gcard--flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lg-body .lg-flow__name {
    margin-block-start: -8px;
    color: #fff;
    font-size: .9375rem;
    font-weight: 500;
}

.lg-body .lg-flow {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-block: auto;
    padding-block-start: 8px;
}

.lg-body .lg-flow__line {
    position: absolute;
    inset-inline: 26px;
    top: 28px; /* the centre of the 40px node icons */
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, .14);
}

/* the runner is as wide as the line; moving it by 100% of its own width carries the dot from end to end */
.lg-body .lg-flow__run {
    position: absolute;
    inset: 0;
    opacity: 0;
}

    .lg-body .lg-flow__run i {
        position: absolute;
        top: 50%;
        inset-inline-start: 0;
        width: 10px;
        height: 10px;
        margin-block-start: -5px;
        margin-inline-start: -5px;
        border-radius: 50%;
        background: var(--lg-tint);
        box-shadow: 0 0 12px 2px color-mix(in srgb, var(--lg-tint) 60%, transparent);
    }

.lg-body .lg-flow__node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 52px;
}

.lg-body .lg-flow__ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--lg-deep);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .88);
}

.lg-body .lg-flow__node:first-of-type .lg-flow__ico {
    color: var(--lg-tint);
}

.lg-body .lg-flow__lbl {
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    white-space: nowrap;
}

/* the "smart" result: a trend and a figure */
.lg-body .lg-smart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-start: auto; /* sits at the foot of the card, level with the AI card's foot */
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
}

.lg-body .lg-smart__spark {
    width: 96px;
    height: 28px;
    overflow: visible;
}

    .lg-body .lg-smart__spark path {
        fill: none;
        stroke: #34d399;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.lg-body .lg-smart__val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #34d399;
    font-size: 1.125rem;
    font-weight: 700;
}

/* ---------- 1d. real reviews / testimonial at the foot of the panel (only when Default.aspx.cs rendered one) ---------- */
.lg-body .lg-reviews {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    margin: 0;
}

.lg-body .lg-quote {
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
}

.lg-body .lg-quote__text {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.lg-body .lg-quote__who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-start: 14px;
    color: rgba(255, 255, 255, .9);
    font-size: var(--ds-fs, .875rem);
    font-weight: 500;
}

.lg-body .lg-quote__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, .2);
}

/* a third-party reviews widget brings its own look; give it a calm white base */
.lg-body .lg-reviews--embed {
    padding: 16px;
    border-radius: 12px;
    background: #fff;
}

/* ---------- 2. top bar: brand on the start side, language on the end side ---------- */
.lg-body .lg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 24px clamp(24px, 4vw, 48px);
}

.lg-body .lg-brand {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-radius: var(--lg-radius);
    color: var(--lg-ink);
    font-size: var(--ds-fs, .875rem);
    text-decoration: none;
    outline: 0;
}

    .lg-body .lg-brand:focus-visible {
        box-shadow: var(--lg-focus);
    }

/* beats: mainLogo.Style["height"] = 62px / 87px for non-Hebrew languages (Default.aspx.cs) */
.lg-body .lg-logo {
    display: block;
    height: auto !important;
    max-height: 44px;
    max-width: 200px;
    margin: 0;
    border: 0;
}

/* language picker: the same hover list as before, now also opened by keyboard (focus-within) */
.lg-body .lg-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: var(--lg-radius);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--lg-line-strong);
    color: var(--lg-text);
    /* beats: LangSelBtn.Style["font-size"] = 11px for non-Hebrew languages (Default.aspx.cs) */
    font-size: var(--ds-fs, .875rem) !important;
    line-height: 1;
    cursor: pointer;
    outline: 0;
    transition: background-color var(--lg-fast) var(--lg-ease);
}

    .lg-body .lg-lang:hover {
        background: var(--lg-subtle);
    }

    .lg-body .lg-lang:focus-visible {
        box-shadow: inset 0 0 0 1px var(--lg-accent), var(--lg-focus);
    }

.lg-body .lg-lang__flag {
    display: block;
    width: 24px;
    height: 16px;
    margin: 0;
    border-radius: 2px;
    object-fit: cover;
}

.lg-body .lg-lang__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--lg-text);
    fill: var(--lg-muted);
    white-space: nowrap;
}

    .lg-body .lg-lang__name svg {
        width: 18px !important; /* beats: the inline width:22px written with the chevron (Default.aspx.cs) */
        height: 18px;
    }

.lg-body .lg-lang__pop {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0; /* the button sits at the column's end edge: open back across the page, never past the viewport */
    width: auto;
    height: auto;
    padding-block-start: 6px;
    overflow: visible;
    background: transparent;
    visibility: hidden;
    z-index: 100;
}

.lg-body .lg-lang:hover .lg-lang__pop,
.lg-body .lg-lang:focus-within .lg-lang__pop {
    visibility: visible;
}

.lg-body .lg-lang .LangDiv {
    position: static;
    inset: auto;
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: min(420px, 70vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--lg-line);
    border-radius: var(--lg-radius-lg);
    background: #fff;
    box-shadow: var(--ds-shadow-pop, 0 4px 16px rgba(16, 24, 40, .10), 0 1px 3px rgba(16, 24, 40, .06));
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--lg-fast) var(--lg-ease), transform var(--lg-fast) var(--lg-ease);
}

.lg-body .lg-lang:hover .LangDiv,
.lg-body .lg-lang:focus-within .LangDiv {
    opacity: 1;
    transform: none;
}

.lg-body .lg-lang__list {
    display: flex;
    gap: 2px;
}

/* the server starts a new column every 4 languages with class="floatLeft ltrLeft lagColHolder" */
.lg-body .lg-lang .lagColHolder {
    float: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: auto;
    min-width: 140px;
    margin: 0;
    text-align: start;
}

.lg-body .lg-lang .langHolder {
    margin: 0;
}

    .lg-body .lg-lang .langHolder a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: var(--ds-radius-sm, 6px);
        color: var(--lg-text);
        font-size: var(--ds-fs, .875rem);
        line-height: 1.2;
        text-decoration: none;
        outline: 0;
    }

        .lg-body .lg-lang .langHolder a:hover {
            background: var(--lg-subtle);
            color: var(--lg-ink);
        }

        .lg-body .lg-lang .langHolder a:focus-visible {
            box-shadow: var(--lg-focus);
        }

        .lg-body .lg-lang .langHolder a.LangSelected {
            background: var(--ds-accent-wash, rgba(14, 99, 157, .08));
            color: var(--lg-accent);
            font-weight: 500;
        }

        .lg-body .lg-lang .langHolder a img {
            width: 22px;
            height: auto;
            margin: 0 !important; /* beats: the inline margin-left:5px on each flag (Default.aspx.cs) */
            border-radius: 2px;
        }

/* ---------- 3. the form, centred in its column ---------- */
.lg-body .lg-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px clamp(24px, 5vw, 72px) 72px;
}

.lg-body .lg-card {
    position: relative;
    float: none;
    width: 100%;
    max-width: 400px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    text-align: start;
}

.lg-body .lg-form {
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

    .lg-body .lg-form > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

.lg-body .lg-title {
    margin: 0 0 4px;
    color: var(--lg-ink);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-align: start;
    text-wrap: balance;
}

/* ---------- 4. fields ---------- */
.lg-body .lg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lg-body .lg-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lg-body .lg-label {
    color: var(--lg-text);
    font-size: var(--ds-fs-sm, .8125rem);
    font-weight: 500;
    line-height: 1.4;
}

.lg-body .lg-input {
    display: block;
    width: 100%;
    height: var(--lg-control-h);
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: var(--lg-radius);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--lg-line-strong);
    color: var(--lg-ink);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    text-align: start;
    outline: 0;
    transition: box-shadow var(--lg-fast) var(--lg-ease);
}

    .lg-body .lg-input:hover {
        box-shadow: inset 0 0 0 1px var(--lg-muted);
        border-color: transparent;
    }

    .lg-body .lg-input:focus {
        box-shadow: inset 0 0 0 1px var(--lg-accent), var(--lg-focus);
        border-color: transparent;
    }

    .lg-body .lg-input::placeholder {
        color: var(--lg-placeholder);
    }

    /* keep autofilled fields white instead of the browser's yellow-blue */
    .lg-body .lg-input:-webkit-autofill {
        -webkit-box-shadow: inset 0 0 0 1px var(--lg-line-strong), inset 0 0 0 100px #fff;
        -webkit-text-fill-color: var(--lg-ink);
    }

/* password + eye toggle (passShowHide, shown by DisplayPassShowHide once something is typed) */
.lg-body .lg-pass {
    position: relative;
}

    .lg-body .lg-pass .lg-input {
        padding-inline-end: 48px;
    }

.lg-body .lg-pass .passShowHide {
    left: auto;
    right: auto;
    inset-inline-end: 4px;
    inset-block-start: 50%;
    width: 36px;
    height: 36px;
    margin-block-start: -18px;
    border-radius: var(--ds-radius-sm, 6px);
    background-size: 20px 20px;
    opacity: .7;
    outline: 0;
    transition: opacity var(--lg-fast) var(--lg-ease), background-color var(--lg-fast) var(--lg-ease);
}

    .lg-body .lg-pass .passShowHide:hover {
        background-color: var(--lg-subtle);
        opacity: 1;
    }

    .lg-body .lg-pass .passShowHide:focus-visible {
        box-shadow: var(--lg-focus);
        opacity: 1;
    }

/* ---------- 5. links ---------- */
.lg-body .lg-link,
.lg-body .Login2016_underBtn {
    color: var(--lg-accent);
    font-size: var(--ds-fs-sm, .8125rem);
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    outline: 0;
    cursor: pointer;
}

    .lg-body .lg-link:hover,
    .lg-body .Login2016_underBtn:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .lg-body .lg-link:focus-visible,
    .lg-body .Login2016_underBtn:focus-visible {
        box-shadow: var(--lg-focus);
    }

/* the "forgot?" hint bubble the server adds when the user name came in the query string (?UN=) */
.lg-body a.tooltips {
    position: relative;
}

    .lg-body a.tooltips span {
        position: absolute;
        inset-block-end: calc(100% + 8px);
        inset-inline-end: 0;
        width: max-content;
        max-width: 260px;
        padding: 8px 12px;
        border-radius: var(--lg-radius);
        background: var(--lg-ink);
        color: #fff;
        font-size: var(--ds-fs-xs, .75rem);
        line-height: 1.4;
        visibility: hidden;
        z-index: 20;
    }

    .lg-body a.tooltips:hover span,
    .lg-body a.tooltips:focus-visible span {
        visibility: visible;
    }

/* ---------- 6. remember me ---------- */
.lg-body .lg-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block-start: -4px;
    color: var(--lg-text);
    font-size: var(--ds-fs, .875rem);
}

    .lg-body .lg-remember input[type=checkbox] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--lg-accent);
        cursor: pointer;
    }

        .lg-body .lg-remember input[type=checkbox]:focus-visible {
            outline: 0;
            box-shadow: var(--lg-focus);
        }

    .lg-body .lg-remember label {
        cursor: pointer;
    }

/* ---------- 7. buttons ---------- */
/* one primary action. It used to be --secondary (the AI purple slot); actions read --primary. */
.lg-body .loginButton2016.lg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--lg-control-h) !important; /* beats: .LoginTable .loginButton2016 { height: 48px !important } (stylesheet.css) */
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--lg-radius);
    background-color: var(--lg-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: inset 0 0 0 100px transparent;
    outline: 0;
    cursor: pointer;
    transition: box-shadow var(--lg-fast) var(--lg-ease);
}

    /* darken with an inset layer so a white-label accent darkens correctly too */
    .lg-body .loginButton2016.lg-submit:hover {
        background-color: var(--lg-accent);
        box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .10);
    }

    .lg-body .loginButton2016.lg-submit:active {
        box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .18);
    }

    .lg-body .loginButton2016.lg-submit:focus-visible {
        box-shadow: inset 0 0 0 100px transparent, 0 0 0 2px #fff, 0 0 0 4px var(--lg-accent);
    }

.lg-body .loginButton2016.lg-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--lg-control-h);
    margin: 12px 0 0;
    border-radius: var(--lg-radius);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--lg-line-strong);
    color: var(--lg-text);
    font-size: var(--ds-fs, .875rem);
    font-weight: 500;
    outline: 0;
}

    .lg-body .loginButton2016.lg-btn-secondary:hover {
        background: var(--lg-subtle);
    }

    .lg-body .loginButton2016.lg-btn-secondary:focus-visible {
        box-shadow: inset 0 0 0 1px var(--lg-accent), var(--lg-focus);
    }

/* ---------- 8. messages (denied / explain): only drawn when the server filled them ---------- */
.lg-body .lg-msgs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .lg-body .lg-msgs:not(:has(> div:not(:empty))) {
        margin-block-start: -20px; /* collapse the flex gap while both messages are empty */
    }

.lg-body .loginDeniedHolder,
.lg-body .loginExplaindHolder {
    font-family: inherit;
    font-size: var(--ds-fs, .875rem);
    font-weight: 400;
    line-height: 1.5;
    text-align: start;
    border-radius: var(--lg-radius);
}

    .lg-body .loginDeniedHolder:not(:empty) {
        padding: 10px 12px;
        background: var(--ds-danger-wash, #fef3f2);
        box-shadow: inset 0 0 0 1px #fecdca;
        color: var(--ds-danger, #b42318);
    }

    .lg-body .loginExplaindHolder:not(:empty) {
        padding: 10px 12px;
        background: var(--lg-subtle);
        box-shadow: inset 0 0 0 1px var(--lg-line);
        color: var(--lg-text);
    }

/* ---------- 9. social sign-in and the join link ---------- */
.lg-body .lg-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-block-start: 20px;
    border-block-start: 1px solid var(--lg-line);
}

    .lg-body .lg-social .regPopGP {
        width: 42px;
        height: 42px;
    }

    .lg-body .lg-social .regPopSocialBtn {
        transition: transform var(--lg-fast) var(--lg-ease);
    }

        .lg-body .lg-social .regPopSocialBtn:hover {
            transform: translateY(-1px);
        }

.lg-body .lg-foot:not(:has(.lg-join a, .lg-forgot)) {
    display: none;
}

.lg-body .lg-join {
    text-align: center;
    font-size: var(--ds-fs, .875rem);
}

    .lg-body .lg-join .joinBtn {
        font-size: var(--ds-fs, .875rem);
        font-weight: 500;
        color: var(--lg-accent);
    }

        /* the server writes the first half with an inline readable-text colour; keep it in the muted tone */
        .lg-body .lg-join .joinBtn > span:first-child {
            color: var(--lg-muted) !important; /* beats: inline color: var(--readable-text) (Default.aspx.cs) */
        }

        .lg-body .lg-join .joinBtn .x1.underline::before {
            background-color: var(--lg-accent);
        }

/* ---------- 10. forgot password: covers the card it opens in ---------- */
.lg-body .lg-forgot {
    position: absolute;
    inset: 0;
    z-index: 11;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    border-radius: 0;
    background: #fff;
    text-align: start;
}

.lg-body .lg-forgot__table {
    width: 100%;
    margin: auto 0;
    border-collapse: collapse;
}

    .lg-body .lg-forgot__table td {
        padding: 0;
    }

.lg-body .lg-forgot__art {
    padding-block-end: 16px !important;
    text-align: center;
}

    .lg-body .lg-forgot__art img {
        display: inline-block;
        width: auto;
        height: 120px;
    }

.lg-body .lg-forgot__msg {
    color: var(--lg-text);
    font-size: var(--ds-fs, .875rem);
    line-height: 1.5;
}

    .lg-body .lg-forgot__msg:not(:empty) {
        margin-block-end: 12px;
    }

.lg-body .lg-forgot__form {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

    .lg-body .lg-forgot__form td {
        padding-block-end: 6px;
        text-align: start;
    }

.lg-body .lg-forgot__result {
    color: var(--lg-text);
    font-size: var(--ds-fs, .875rem);
    font-weight: 500;
}

    .lg-body .lg-forgot__result > span:not(:empty) {
        display: block;
        margin-block-start: 12px;
        padding: 10px 12px;
        border-radius: var(--lg-radius);
        background: var(--lg-subtle);
        box-shadow: inset 0 0 0 1px var(--lg-line);
    }

.lg-body .lg-forgot__actions {
    padding-block-start: 14px !important;
    text-align: center !important;
}

.lg-body .lg-forgot__back {
    display: inline-block;
    margin-block-start: 16px;
    padding: 4px 6px;
    background: none;
    font-size: var(--ds-fs, .875rem);
}


/* ---------- 11. tablet: narrower visual, fewer cards ---------- */
@media (max-width: 1279px) {
    .lg-body .lg-page {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .lg-body .lg-cards {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
    }

    .lg-body .lg-gcard--flow {
        display: none;
    }
}

@media (max-width: 991px) {
    .lg-body .lg-page {
        grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    }

    .lg-body .lg-visual {
        padding: 40px 28px;
    }

    .lg-body .lg-hero__title {
        font-size: 2.25rem;
    }

    .lg-body .lg-cards {
        display: none;
    }
}

/* ---------- 12. phones: no visual; the form in a white card on a light ground ---------- */
@media (max-width: 767px) {
    body.lg-body {
        background: var(--lg-subtle) !important; /* beats: the white page ground above (and the inline LoginPanelBg) */
    }

    .lg-body .lg-page {
        display: block;
    }

    .lg-body .lg-visual {
        display: none;
    }

    .lg-body .lg-formcol {
        min-height: 100vh;
        background: transparent;
    }

    .lg-body .lg-top {
        max-width: 480px;
        margin: 0 auto;
        padding: 24px 16px 16px;
    }

    .lg-body .lg-main {
        align-items: flex-start;
        padding: 0 16px 48px;
    }

    .lg-body .lg-card {
        max-width: 448px;
        padding: 32px 28px;
        border: 1px solid var(--lg-line);
        border-radius: var(--lg-radius-lg);
    }

    .lg-body .lg-forgot {
        padding: 32px 28px;
        border-radius: var(--lg-radius-lg);
    }

    /* single column: the button is near the screen edge, so the list opens inwards */
    .lg-body .lg-lang__pop {
        inset-inline-start: auto;
        inset-inline-end: 0;
    }
}

@media (max-width: 520px) {
    .lg-body .lg-logo {
        max-height: 36px;
        max-width: 150px;
    }

    .lg-body .lg-card,
    .lg-body .lg-forgot {
        padding: 28px 20px;
    }

    .lg-body .lg-title {
        font-size: 1.375rem;
    }

    .lg-body .lg-lang .lg-lang__list {
        flex-direction: column;
    }
}

/* ---------- 13. Google reviews (Default.aspx.cs renderGoogleReviews; SendMsg domain only) ---------- */
.lg-body .lg-greviews {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
}

.lg-body .lg-greviews__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: .875rem;
}

.lg-body .lg-greviews__rating {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lg-body .lg-greviews__count {
    font-variant-numeric: tabular-nums;
}

/* the Google attribution: the brand word in Google's colours on a white pill, linking to the listing */
.lg-body .lg-greviews__src {
    margin-inline-start: auto;
    border-radius: 999px;
    text-decoration: none;
    outline: 0;
}

    .lg-body .lg-greviews__src:focus-visible {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .5);
    }

.lg-body .lg-greviews__google {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.lg-body .lg-greviews__summary > .lg-greviews__google {
    margin-inline-start: auto;
}

.lg-body .lg-greviews__google span:nth-child(1),
.lg-body .lg-greviews__google span:nth-child(4) { color: #4285f4; }
.lg-body .lg-greviews__google span:nth-child(2),
.lg-body .lg-greviews__google span:nth-child(6) { color: #ea4335; }
.lg-body .lg-greviews__google span:nth-child(3) { color: #fbbc05; }
.lg-body .lg-greviews__google span:nth-child(5) { color: #34a853; }

.lg-body .lg-stars {
    position: relative;
    display: inline-flex;
    flex: none;
    line-height: 0;
}

.lg-body .lg-stars__base,
.lg-body .lg-stars__fill {
    display: flex;
    gap: 1px;
}

    .lg-body .lg-stars__base svg {
        fill: rgba(255, 255, 255, .22);
    }

.lg-body .lg-stars__fill {
    position: absolute;
    inset-block: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}

    .lg-body .lg-stars__fill svg {
        flex: none;
        fill: #fbbc05;
    }

.lg-body .lg-greviews__list {
    display: grid;
}

.lg-body .lg-greview {
    grid-area: 1 / 1;
    margin: 0;
    transition: opacity .7s var(--lg-ease), transform .7s var(--lg-ease), visibility 0s linear .7s;
}

    /* without rotation (one review, no JS, reduced motion) only the first one shows */
    .lg-body .lg-greview + .lg-greview {
        opacity: 0;
        visibility: hidden;
    }

.lg-body .lg-greviews.is-rotating .lg-greview {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
}

    .lg-body .lg-greviews.is-rotating .lg-greview.is-on {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }

.lg-body .lg-greview .lg-quote__text {
    display: -webkit-box;
    margin-block-start: 8px;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.lg-body .lg-greview .lg-quote__who a {
    color: #fff;
    text-decoration: none;
}

    .lg-body .lg-greview .lg-quote__who a:hover {
        text-decoration: underline;
    }

.lg-body .lg-greview__time {
    color: rgba(255, 255, 255, .55);
    font-weight: 400;
}

/* ---------- 14. motion: a calm, living panel ----------
   Only under prefers-reduced-motion: no-preference; every element's resting style is its final state, so with
   reduced motion (or if an animation never runs) the panel is simply static. Mostly transform / opacity; the prompt
   "typing" animates the width of one 8px bar and a flow node's tint. Nothing here touches the form column. */
@keyframes lg-rise {
    from { opacity: 0; transform: translateY(16px); }
}

@keyframes lg-draw {
    from { stroke-dashoffset: 1; }
}

/* AI card, an 8s loop: the prompt types, "go" is pressed, the sections assemble, hold, and clear */
@keyframes lg-type {
    0% { inline-size: 0; opacity: 1; animation-timing-function: steps(18, end); }
    22% { inline-size: 72%; opacity: 1; }
    88% { inline-size: 72%; opacity: 1; }
    95%, 100% { inline-size: 72%; opacity: 0; }
}

@keyframes lg-caret {
    50% { opacity: 0; }
}

@keyframes lg-go {
    0%, 23% { transform: scale(1); }
    26% { transform: scale(.84); }
    30%, 100% { transform: scale(1); }
}

@keyframes lg-gen {
    0%, 26% { opacity: 0; transform: translateY(8px); }
    32%, 88% { opacity: 1; transform: none; }
    95%, 100% { opacity: 0; transform: none; }
}

/* automation card, a 7s loop: a pulse runs along the flow and each node lights as it is reached */
@keyframes lg-run {
    0% { transform: translateX(0); opacity: 0; }
    5% { opacity: 1; }
    70% { transform: translateX(100%); opacity: 1; }
    76%, 100% { transform: translateX(100%); opacity: 0; }
}

@keyframes lg-run-rtl {
    0% { transform: translateX(0); opacity: 0; }
    5% { opacity: 1; }
    70% { transform: translateX(-100%); opacity: 1; }
    76%, 100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes lg-node {
    0%, 26%, 100% {
        background-color: var(--lg-deep);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    }
    4%, 16% {
        background-color: color-mix(in srgb, var(--primary, #0e639d) 55%, var(--lg-deep));
        box-shadow: inset 0 0 0 1px var(--lg-tint), 0 0 0 4px color-mix(in srgb, var(--lg-tint) 18%, transparent);
    }
}

@keyframes lg-drift-glow {
    to { transform: translate3d(-8%, 10%, 0) scale(1.1); }
}

@keyframes lg-drift-dots {
    to { transform: translate3d(18px, 18px, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    /* entrance: headline, then the cards */
    .lg-body .lg-hero__title {
        animation: lg-rise .9s var(--lg-ease) .1s both;
    }

    .lg-body .lg-gcard--ai {
        animation: lg-rise .9s var(--lg-ease) .4s both;
    }

    .lg-body .lg-gcard--flow {
        animation: lg-rise .9s var(--lg-ease) .55s both;
    }

    .lg-body .lg-reviews {
        animation: lg-rise .9s var(--lg-ease) .8s both;
    }

    /* AI: typing, caret, "go", sections assembling */
    .lg-body .lg-ai__typing i {
        animation: lg-type 8s 1.1s infinite both;
    }

    .lg-body .lg-ai__caret {
        animation: lg-caret 1s steps(1) infinite;
    }

    .lg-body .lg-ai__go {
        animation: lg-go 8s 1.1s infinite both;
    }

    .lg-body .lg-ai__sec {
        animation: lg-gen 8s ease-out infinite both;
    }

        .lg-body .lg-ai__sec:nth-child(1) { animation-delay: 1.1s; }
        .lg-body .lg-ai__sec:nth-child(2) { animation-delay: 1.35s; }
        .lg-body .lg-ai__sec:nth-child(3) { animation-delay: 1.6s; }
        .lg-body .lg-ai__sec:nth-child(4) { animation-delay: 1.85s; }

    /* automation: the pulse and the nodes (node k is reached at k/3 of the run) */
    .lg-body .lg-flow__run {
        animation: lg-run 7s cubic-bezier(.45, 0, .55, 1) 1.8s infinite both;
    }

    .lg-body .lg-page[style*="rtl"] .lg-flow__run {
        animation-name: lg-run-rtl;
    }

    .lg-body .lg-flow__ico {
        animation: lg-node 7s ease-in-out infinite both;
        animation-delay: calc(1.8s + var(--k, 0) * 1.63s);
    }

    /* smart: the trend draws itself (the figure counts up in the page script) */
    .lg-body .lg-smart__spark path {
        stroke-dasharray: 1;
        animation: lg-draw 1.4s cubic-bezier(.4, 0, .2, 1) 1.2s both;
    }

    /* the accent glow drifts, the dot grid slides one tile at a time (seamless) */
    body.lg-body .lg-visual::before {
        animation: lg-drift-glow 20s ease-in-out infinite alternate;
    }

    body.lg-body .lg-visual::after {
        animation: lg-drift-dots 48s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-body *,
    .lg-body *::before,
    .lg-body *::after {
        transition: none !important;
        animation: none !important;
    }
}
