/*
    Login page.

    Loaded via the "Styles" section of _LayoutBlank rather than a bundle, so it is not
    subject to a bundle rebuild. Everything is scoped under .login-shell so the other
    Account views (ForgotPassword, ResetPassword, ...) keep their existing .middle-box
    styling untouched.

    Palette is taken from Site.css / Inspinia:
      black panel  ->  a hair off #000, because light text on pure black picks up
                       colour fringing from Windows subpixel antialiasing
      accent blue  ->  the app's .btn-success (#1c84c6), and the emblem's own blue
      page gray    ->  #f3f3f4  (.gray-bg)
*/

.login-shell {
    --lg-brand: #4fa3d9; /* light blue - for blue ON the dark panel: icons, product mark */
    --lg-action: #1a76b0; /* the app's .btn-success blue (#1c84c6), darkened to clear
                             WCAG AA - white on the stock blue is only 4.07:1 */
    --lg-action-dk: #16608f; /* button hover */
    --lg-action-lt: #e8f2f8; /* tinted fill for the focused field's icon cell */
    --lg-link: #17679b; /* 5.8:1 on white */
    --lg-ink: #1f2429;
    --lg-muted: #6f777e;
    --lg-line: #e2e6e9;
    --lg-panel: #0b0f12;
    --lg-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: var(--lg-ink);
}

.login-card {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    border-top: 4px solid var(--lg-action);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(20,26,32,.16);
}

/* ---------------- brand panel ---------------- */

.login-brand {
    flex: 0 0 44%;
    padding: 42px 38px 34px;
    background: var(--lg-panel);
    color: #fff;
}

    .login-brand .lg-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

.lg-id {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .lg-id img {
        flex: none;
        width: 64px;
        height: 59px;
        padding: 4px;
        border-radius: 6px;
        background: #fff;
        object-fit: contain;
    }

.lg-id-txt {
    flex: 1;
    min-width: 0;
}

/* No nowrap and no partial bolding: these strings come from Web.config and can change
   (the product may be renamed), so they must wrap rather than clip. */
.login-brand h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .3px;
    overflow-wrap: break-word;
}

.lg-mark {
    display: block;
    padding-top: 9px;
    border-top: 1px solid rgba(79,163,217,.4);
    color: var(--lg-brand);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .06em;
    overflow-wrap: break-word;
}

.login-brand ul {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.login-brand li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
    color: #c8ced3;
    font-size: 13px;
    line-height: 1.55;
}

    .login-brand li i {
        flex: none;
        width: 16px;
        margin-top: 2px;
        color: var(--lg-brand);
    }

.lg-panel-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.105); /* same 25-point step as the light side */
}

    .lg-panel-foot .lg-copy {
        color: #98a1a9;
        font-size: 12.5px;
        line-height: 1.75;
        letter-spacing: .15px;
        text-align: center;
    }

/* ---------------- form panel ---------------- */

.login-form {
    flex: 1;
    padding: 44px 46px 38px;
}

    .login-form h2 {
        margin: 0 0 24px;
        font-size: 23px;
        font-weight: 700;
    }

.login-shell .form-group {
    margin-bottom: 18px;
}

/* Sentence case rather than tracked-out caps. At 11.5px, uppercase + 700 + letter-spacing
   reads as shouting next to the rest of the form and the glyphs start to look detached;
   the label text itself already arrives sentence-cased from LabelFor. */
.lg-lab {
    display: block;
    margin-bottom: 7px;
    color: #5f6870;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
}

/* One bordered unit - the icon and the reveal button are cells inside it, never their
   own boxes, so the group never shows a seam and the focus ring wraps the whole thing. */
.lg-field {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--lg-line);
    border-radius: var(--lg-radius);
    background: #fff;
    transition: .15s;
}

    .lg-field .lg-ic {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 42px;
        border-right: 1px solid var(--lg-line);
        background: #f7f8f9;
        color: #98a1a9;
        font-size: 14px;
        transition: .15s;
    }

    .lg-field input.form-control,
    .lg-field input {
        flex: 1;
        min-width: 0;
        height: 42px;
        max-width: 100%;
        padding: 0 13px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: var(--lg-ink);
        font-family: inherit;
        font-size: 14px;
        outline: 0;
    }

        .lg-field input:focus {
            border: 0;
            box-shadow: none;
            outline: 0;
        }

    .lg-field:focus-within {
        border-color: var(--lg-action);
        box-shadow: 0 0 0 3px rgba(26,118,176,.16);
    }

        .lg-field:focus-within .lg-ic {
            border-right-color: var(--lg-action);
            background: var(--lg-action-lt);
            color: var(--lg-action);
        }

/* Deliberately NOT a mirror of .lg-ic. The left cell is a static label for the field,
   so it keeps a fill and a divider. This is an interactive control, so it stays flush
   inside the field - no divider, no fill, lighter and smaller than the lock. */
.lg-reveal {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    margin-right: 3px;
    padding: 0;
    border: 0;
    background: none;
    color: #b6bcc2;
    font-size: 12.5px;
    cursor: pointer;
    transition: .15s;
}

    .lg-reveal:hover {
        color: var(--lg-action);
    }

    .lg-reveal[aria-pressed="true"] {
        color: var(--lg-action);
    }

    .lg-reveal:focus-visible {
        outline: 2px solid var(--lg-action);
        outline-offset: -2px;
    }

.lg-caps {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    padding: 6px 10px;
    border: 1px solid #fde047;
    border-radius: 4px;
    background: #fef9c3;
    color: #7a5d13;
    font-size: 12px;
    line-height: 1.3;
}

    .lg-caps[hidden] {
        display: none;
    }

.lg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.login-shell .lg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #5d666e;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

    .login-shell .lg-check input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--lg-action);
        cursor: pointer;
    }

.login-shell a.lg-link {
    color: var(--lg-link);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .login-shell a.lg-link:hover {
        text-decoration: underline;
    }

.login-shell .btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: var(--lg-radius);
    background: var(--lg-action);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: .15s;
}

    .login-shell .btn-login:hover:not([disabled]) {
        background: var(--lg-action-dk);
        box-shadow: 0 3px 10px rgba(26,118,176,.35);
    }

    /* submitForm() -> setBtnTxtWithLoader() swaps the label for
       <i class="fa fa-circle-o-notch fa-spin"></i><span class="pl-1">Logging in...</span>
       and sets disabled. No gap here: the injected span brings its own pl-1 spacing, and
       the weight drops so the grey label does not read as heavy as the active one. */
    .login-shell .btn-login[disabled] {
        background: #e7eaec;
        box-shadow: none;
        color: #8a9299;
        font-weight: 500;
        cursor: not-allowed;
        opacity: 1;
    }

.lg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 22px;
}

    .lg-meta .lg-ver {
        color: var(--lg-muted);
        font-size: 11.5px;
    }

    /* In production EnvironmentTag() renders nothing, so .lg-ver is the only child: this
       sibling rule stops firing (no orphan separator) and justify-content centres it. */
    .lg-meta .tag + .lg-ver:before {
        content: '\00B7';
        margin-right: 5px;
        color: #b9bfc4;
    }

    /* the stock .tag chip is built for the left nav; down here it is reference info,
       not a warning, so the fill comes off and only the coloured dot survives */
    .lg-meta .tag {
        height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        color: var(--lg-muted);
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
    }

.lg-help {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--lg-line);
    color: var(--lg-muted);
    font-size: 12.5px;
    text-align: center;
}

.login-shell .alert {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #f5c6c0;
    border-left: 3px solid #d9534f;
    border-radius: 4px;
    background: #fdecea;
    color: #a33b37;
    font-size: 13px;
    line-height: 1.5;
}

.login-shell .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #d9534f;
    font-size: 12px;
}

/* ---------------- small screens ----------------
   Below 860px the split stops earning its keep: the brand column squeezes to ~220px and
   the form to ~378px. Collapse to an identity strip and give the form its full width;
   the feature list and panel foot are desktop-only. */

@media (max-width: 860px) {
    .login-shell {
        padding: 20px 12px;
    }

    .login-card {
        flex-direction: column;
    }

    .login-brand {
        flex: none;
        padding: 20px 24px;
    }

    .lg-id {
        gap: 14px;
    }

        .lg-id img {
            width: 52px;
            height: 48px;
        }

    .login-brand h1 {
        margin-bottom: 6px;
        font-size: 20px;
    }

    .lg-mark {
        padding-top: 6px;
        font-size: 15px;
    }

    .login-brand ul,
    .lg-panel-foot {
        display: none;
    }

    .login-form {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 420px) {
    .login-brand {
        padding: 18px 20px;
    }

        .login-brand h1 {
            font-size: 18px;
        }

    .lg-mark {
        font-size: 14px;
    }

    .lg-id img {
        width: 46px;
        height: 42px;
    }
}
