﻿/* =============================================================================
   NurseCharts — Authentication UI (2026 refresh)
   -----------------------------------------------------------------------------
   Used by:  Areas/Identity/Pages/Account/Login.cshtml
             Areas/Identity/Pages/Account/Register.cshtml

   Brand palette is taken from the public landing page (Views/Home/Index.cshtml)
   so the sign-in experience matches the official NurseCharts colors.

   Everything is scoped under `.nc-auth` so nothing here can leak into the rest
   of the application. Light/dark mode follows the existing
   html[data-theme="dark"] switch rendered by _Layout.cshtml.
   ========================================================================== */

.nc-auth {
    /* Brand (matches Home/Index.cshtml :root tokens) */
    --nc-blue: #1558bd;
    --nc-blue-2: #1f73df;
    --nc-blue-dark: #0f3f96;
    --nc-green: #39a85a;
    --nc-green-dark: #238544;
    --nc-ink: #10233f;
    --nc-muted: #5f6f86;
    --nc-soft: #f5f9ff;

    /* Surface tokens (light) */
    --auth-surface: #ffffff;
    --auth-surface-2: #f5f9ff;
    --auth-text: #10233f;
    --auth-muted: #5f6f86;
    --auth-border: rgba(16, 35, 63, .12);
    --auth-input-bg: #ffffff;
    --auth-input-border: #cfd9e8;
    --auth-input-hover: #a9bcd8;
    --auth-focus: rgba(31, 115, 223, .22);
    --auth-link: #1558bd;
    --auth-link-hover: #0f3f96;
    --auth-danger: #c62f3c;
    --auth-danger-bg: #fdecee;
    --auth-danger-border: #f5c2c7;
    --auth-success: #238544;
    --auth-success-bg: #e8f6ec;
    --auth-warn: #8a5a00;
    --auth-warn-bg: #fff6e0;
    --auth-warn-border: #f3dca4;
    --auth-info-bg: #eef5ff;
    --auth-info-border: #c7dbfb;
    --auth-shadow: 0 30px 70px -28px rgba(15, 63, 150, .35), 0 12px 28px -18px rgba(16, 35, 63, .25);
    --auth-radius: 28px;
    --auth-field-radius: 14px;
    --auth-heading-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
    padding: clamp(1.25rem, 3vw, 2.75rem) 0;
    color: var(--auth-text);
}

html[data-theme="dark"] .nc-auth {
    --auth-surface: #141a23;
    --auth-surface-2: #1a2230;
    --auth-text: #e7edf6;
    --auth-muted: #a3b1c6;
    --auth-border: rgba(255, 255, 255, .10);
    --auth-input-bg: #0f141c;
    --auth-input-border: #2c3747;
    --auth-input-hover: #3f4e64;
    --auth-focus: rgba(122, 184, 255, .28);
    --auth-link: #7ab8ff;
    --auth-link-hover: #a9d0ff;
    --auth-danger: #ff8a95;
    --auth-danger-bg: rgba(198, 47, 60, .14);
    --auth-danger-border: rgba(255, 138, 149, .35);
    --auth-success: #6fd08f;
    --auth-success-bg: rgba(57, 168, 90, .14);
    --auth-warn: #ffd27a;
    --auth-warn-bg: rgba(255, 196, 64, .10);
    --auth-warn-border: rgba(255, 210, 122, .28);
    --auth-info-bg: rgba(31, 115, 223, .12);
    --auth-info-border: rgba(122, 184, 255, .28);
    --auth-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 12px 28px -18px rgba(0, 0, 0, .6);
}

/* Soft brand glow behind the card */
.nc-auth::before,
.nc-auth::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.nc-auth::before {
    width: 420px;
    height: 420px;
    top: 2%;
    left: -4%;
    background: radial-gradient(circle, rgba(31, 115, 223, .22), transparent 70%);
}

.nc-auth::after {
    width: 380px;
    height: 380px;
    bottom: 0;
    right: -4%;
    background: radial-gradient(circle, rgba(57, 168, 90, .18), transparent 70%);
}

/* ── Card shell ─────────────────────────────────────────────────────────── */

.nc-auth-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    width: 100%;
    max-width: 1120px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

/* ── Brand panel (photo + message) ──────────────────────────────────────── */

.nc-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    min-height: 600px;
    padding: 1.75rem;
    color: #fff;
    background-color: var(--nc-blue-dark);
    background-image:
        linear-gradient(180deg, rgba(10, 33, 77, .10) 0%, rgba(10, 33, 77, .05) 28%, rgba(15, 63, 150, .78) 58%, rgba(10, 33, 77, .96) 100%),
        url("../images/nursecharts-auth-clinician.jpg");
    background-size: cover;
    background-position: 36% center;
    overflow: hidden;
}

/* Thin brand accent bar (blue → green), mirrors the footer accent */
.nc-auth-brand::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--nc-blue-2), var(--nc-green));
}

.nc-auth-brand-body {
    position: relative;
}

.nc-auth-eyebrow {
    margin: 0 0 .65rem;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #bfe6cb;
}

.nc-auth-brand-title {
    margin: 0 0 .85rem;
    font-family: var(--auth-heading-font);
    font-weight: 900;
    font-size: clamp(2rem, 3.1vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -.045em;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.nc-auth-brand-text {
    max-width: 30rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}

.nc-auth-brand-foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding-top: 1rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .82);
    border-top: 1px solid rgba(255, 255, 255, .18);
}

    .nc-auth-brand-foot .bi {
        color: #7fd69a;
        font-size: 1rem;
    }

/* Plain brand panel (no photo) — used by ForgotPassword.cshtml.
   Higher specificity (.nc-auth-brand.nc-auth-brand--plain) so it also wins over the
   photo background set for .nc-auth-brand inside the responsive media queries below. */
.nc-auth-brand.nc-auth-brand--plain {
    background-color: var(--nc-blue-dark);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .14) 0 1.5px, transparent 2.5px),
        radial-gradient(120% 90% at 100% 0%, rgba(57, 168, 90, .38) 0%, transparent 50%),
        radial-gradient(90% 70% at 0% 100%, rgba(31, 115, 223, .55) 0%, transparent 60%),
        linear-gradient(160deg, #0a2a63 0%, var(--nc-blue-dark) 45%, var(--nc-blue) 100%);
    background-size: 22px 22px, auto, auto, auto;
    background-position: 0 0, center, center, center;
}

/* Large faint watermark icon in the plain panel */
.nc-auth-brand-mark {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 7.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, .10);
    transform: rotate(-18deg);
    pointer-events: none;
}

/* Shorter card for single-field pages (ForgotPassword) */
.nc-auth-card--compact {
    max-width: 1000px;
}

    .nc-auth-card--compact .nc-auth-brand {
        min-height: 480px;
    }

/* ── Form panel ─────────────────────────────────────────────────────────── */

.nc-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4.5vw, 3.75rem);
    background: var(--auth-surface);
}

.nc-auth-form-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.nc-auth-title {
    margin: 0 0 .35rem;
    font-family: var(--auth-heading-font);
    font-weight: 900;
    font-size: clamp(1.75rem, 2.6vw, 2.2rem);
    letter-spacing: -.035em;
    line-height: 1.1;
    color: var(--auth-text);
}

.nc-auth-subtitle {
    margin: 0 0 1.5rem;
    font-size: .98rem;
    color: var(--auth-muted);
}

/* ── Alerts (validation summary, banners) ───────────────────────────────── */

/* Server-side ModelOnly summary: hide when empty, style when it has errors */
.nc-auth .validation-summary-valid {
    display: none;
}

.nc-auth .validation-summary-errors {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    margin-bottom: 1.15rem;
    padding: .85rem 1rem;
    font-size: .92rem;
    color: var(--auth-danger);
    background: var(--auth-danger-bg);
    border: 1px solid var(--auth-danger-border);
    border-radius: 14px;
}

    .nc-auth .validation-summary-errors::before {
        content: "\f332"; /* bootstrap-icons: exclamation-circle-fill */
        font-family: "bootstrap-icons";
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .nc-auth .validation-summary-errors ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .nc-auth .validation-summary-errors ul li + li {
            margin-top: .25rem;
        }

.nc-auth-callout {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--auth-info-border);
    background: var(--auth-info-bg);
    font-size: .92rem;
    color: var(--auth-text);
}

    .nc-auth-callout > .bi {
        flex: 0 0 auto;
        display: inline-grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
        color: #fff;
        background: linear-gradient(135deg, var(--nc-blue), var(--nc-blue-2));
        border-radius: 12px;
    }

    .nc-auth-callout p {
        margin: 0;
    }

    .nc-auth-callout .nc-auth-callout-title {
        margin-bottom: .2rem;
        font-weight: 700;
        color: var(--auth-text);
    }

    .nc-auth-callout .nc-auth-callout-text {
        color: var(--auth-muted);
    }

.nc-auth-callout--resume {
    border-color: var(--auth-warn-border);
    background: var(--auth-warn-bg);
}

    .nc-auth-callout--resume > .bi {
        background: linear-gradient(135deg, #f0a92e, #e08a00);
    }

    .nc-auth-callout--resume a {
        font-weight: 700;
    }

.nc-auth-callout--success > .bi {
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-dark));
}

/* Pre-registration progress (Stripe checkout → Register) */
.nc-auth-progress {
    margin-bottom: 1.5rem;
}

.nc-auth-steps {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .65rem 0 0;
    padding: 0;
    list-style: none;
}

    .nc-auth-steps li {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        padding: .28rem .65rem;
        font-size: .78rem;
        font-weight: 600;
        border-radius: 999px;
    }

        .nc-auth-steps li.is-done {
            color: var(--auth-success);
            background: var(--auth-success-bg);
        }

        .nc-auth-steps li.is-pending {
            color: var(--auth-warn);
            background: var(--auth-warn-bg);
            border: 1px solid var(--auth-warn-border);
        }

/* ── Fields ─────────────────────────────────────────────────────────────── */

.nc-field {
    margin-bottom: 1rem;
}

.nc-auth .nc-float {
    position: relative;
}

    .nc-auth .nc-float > .form-control {
        height: 3.6rem;
        min-height: 3.6rem;
        padding-left: 2.85rem;
        padding-right: 1rem;
        font-size: 1rem;
        color: var(--auth-text);
        background-color: var(--auth-input-bg);
        border: 1.5px solid var(--auth-input-border);
        border-radius: var(--auth-field-radius);
        box-shadow: none;
        transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    }

    .nc-auth .nc-float.has-action > .form-control {
        padding-right: 3.25rem;
    }

    .nc-auth .nc-float > .form-control:hover {
        border-color: var(--auth-input-hover);
    }

    .nc-auth .nc-float > .form-control:focus {
        border-color: var(--nc-blue-2);
        box-shadow: 0 0 0 4px var(--auth-focus);
        outline: 0;
    }

    /* site.css shows floating-label placeholders; keep them hidden here */
    .nc-auth .nc-float > .form-control::placeholder {
        color: transparent;
    }

    .nc-auth .nc-float > label {
        left: 2.1rem;
        max-width: calc(100% - 2.1rem - .75rem);
        color: var(--auth-muted);
    }

    .nc-auth .nc-float.has-action > label {
        max-width: calc(100% - 2.1rem - 3.25rem);
    }

    .nc-auth .nc-float > .form-control:focus ~ label,
    .nc-auth .nc-float > .form-control:not(:placeholder-shown) ~ label {
        color: var(--auth-muted);
    }

    /* Remove Bootstrap's label "pill" background (the white box behind labels) */
    .nc-auth .nc-float > .form-control:focus ~ label::after,
    .nc-auth .nc-float > .form-control:not(:placeholder-shown) ~ label::after {
        background-color: transparent;
    }

    .nc-auth .nc-float > .form-control:focus ~ label {
        color: var(--nc-blue);
    }

html[data-theme="dark"] .nc-auth .nc-float > .form-control:focus ~ label {
    color: var(--auth-link);
}

.nc-field-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 3;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--auth-muted);
    pointer-events: none;
    transition: color .15s ease;
}

.nc-auth .nc-float > .form-control:focus ~ .nc-field-icon {
    color: var(--nc-blue-2);
}

/* Password show/hide */
.nc-pw-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.1rem;
    color: var(--auth-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

    .nc-pw-toggle:hover {
        color: var(--auth-text);
        background: var(--auth-surface-2);
    }

    .nc-pw-toggle:focus-visible {
        outline: 2px solid var(--nc-blue-2);
        outline-offset: 1px;
    }

    .nc-pw-toggle .bi-eye-slash {
        display: none;
    }

    .nc-pw-toggle[aria-pressed="true"] .bi-eye {
        display: none;
    }

    .nc-pw-toggle[aria-pressed="true"] .bi-eye-slash {
        display: inline;
    }

/* Edge/IE built-in reveal button would duplicate ours */
.nc-auth input[type="password"]::-ms-reveal,
.nc-auth input[type="password"]::-ms-clear {
    display: none;
}

/* Chrome / Safari autofill: keep brand surface instead of yellow/blue fill */
.nc-auth .nc-float > .form-control:-webkit-autofill,
.nc-auth .nc-float > .form-control:-webkit-autofill:hover,
.nc-auth .nc-float > .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-input-bg) inset;
    caret-color: var(--auth-text);
    transition: background-color 9999s ease-out 0s;
}

/* Validation (jquery-validation-unobtrusive + server-side) */
.nc-auth .nc-float > .form-control.input-validation-error {
    border-color: var(--auth-danger);
}

    .nc-auth .nc-float > .form-control.input-validation-error:focus {
        box-shadow: 0 0 0 4px rgba(198, 47, 60, .18);
    }

    .nc-auth .nc-float > .form-control.input-validation-error ~ .nc-field-icon {
        color: var(--auth-danger);
    }

.nc-field-error {
    display: block;
    margin-top: .35rem;
    padding-left: .25rem;
    font-size: .85rem;
    color: var(--auth-danger);
}

    .nc-field-error:empty,
    .nc-field-error.field-validation-valid {
        display: none;
    }

/* Caps Lock hint */
.nc-field-hint {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .35rem;
    padding-left: .25rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--auth-warn);
}

    .nc-field-hint[hidden] {
        display: none;
    }

/* Password requirements checklist (Register) */
.nc-pw-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem .75rem;
    margin: .6rem 0 0;
    padding: .75rem .9rem;
    list-style: none;
    font-size: .82rem;
    color: var(--auth-muted);
    background: var(--auth-surface-2);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
}

    .nc-pw-rules li {
        display: flex;
        align-items: center;
        gap: .4rem;
        transition: color .15s ease;
    }

        .nc-pw-rules li .bi {
            font-size: .9rem;
        }

        .nc-pw-rules li .bi-check-circle-fill {
            display: none;
        }

        .nc-pw-rules li.is-met {
            color: var(--auth-success);
        }

            .nc-pw-rules li.is-met .bi-circle {
                display: none;
            }

            .nc-pw-rules li.is-met .bi-check-circle-fill {
                display: inline;
            }

.nc-pw-match {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .35rem;
    padding-left: .25rem;
    font-size: .82rem;
    font-weight: 600;
}

    .nc-pw-match[hidden] {
        display: none;
    }

    .nc-pw-match.is-match {
        color: var(--auth-success);
    }

    .nc-pw-match.is-mismatch {
        color: var(--auth-muted);
    }

/* ── Remember me ────────────────────────────────────────────────────────── */

.nc-auth .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: auto;
    margin: 0;
    padding-left: 0;
}

    .nc-auth .form-check .form-check-input {
        float: none;
        width: 1.15rem;
        height: 1.15rem;
        margin: 0;
        background-color: var(--auth-input-bg);
        border: 1.5px solid var(--auth-input-border);
        border-radius: 6px;
        cursor: pointer;
    }

        .nc-auth .form-check .form-check-input:checked {
            background-color: var(--nc-blue);
            border-color: var(--nc-blue);
        }

        .nc-auth .form-check .form-check-input:focus {
            box-shadow: 0 0 0 4px var(--auth-focus);
            border-color: var(--nc-blue-2);
        }

    .nc-auth .form-check .form-check-label {
        font-size: .93rem;
        color: var(--auth-text);
        cursor: pointer;
        user-select: none;
    }

/* ── Links ──────────────────────────────────────────────────────────────── */

.nc-auth a.nc-link {
    font-weight: 600;
    color: var(--auth-link);
    text-decoration: none;
    text-underline-offset: 3px;
}

    .nc-auth a.nc-link:hover {
        color: var(--auth-link-hover);
        text-decoration: underline;
    }

    .nc-auth a.nc-link:focus-visible {
        outline: 2px solid var(--nc-blue-2);
        outline-offset: 2px;
        border-radius: 6px;
    }

/* ── Original link list (same links/order as before, restyled) ──────────── */

.nc-auth-check {
    margin: .15rem 0 1.25rem !important;
}

.nc-auth-linklist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    margin-top: 1.25rem;
    font-size: .95rem;
}

.nc-auth a.nc-resume-link {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    width: 100%;
    margin-top: .35rem;
    padding: .75rem .9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--auth-warn);
    text-decoration: none;
    background: var(--auth-warn-bg);
    border: 1px solid var(--auth-warn-border);
    border-radius: 12px;
    transition: border-color .15s ease, background-color .15s ease;
}

    .nc-auth a.nc-resume-link:hover {
        color: var(--auth-warn);
        border-color: #e9c46a;
    }

        .nc-auth a.nc-resume-link:hover span:last-child {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

    .nc-auth a.nc-resume-link:focus-visible {
        outline: 2px solid var(--nc-blue-2);
        outline-offset: 2px;
    }

.nc-auth-callout-emoji {
    flex: 0 0 auto;
    font-size: 1.6rem;
    line-height: 1;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.nc-auth .nc-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 3.35rem;
    padding: .8rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    background: linear-gradient(135deg, var(--nc-blue) 0%, var(--nc-blue-2) 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 28px -14px rgba(21, 88, 189, .85);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    .nc-auth .nc-btn-primary:hover {
        color: #fff;
        filter: brightness(1.06);
        transform: translateY(-1px);
        box-shadow: 0 18px 32px -14px rgba(21, 88, 189, .9);
    }

    .nc-auth .nc-btn-primary:active {
        transform: translateY(0);
    }

    .nc-auth .nc-btn-primary:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px var(--auth-focus), 0 14px 28px -14px rgba(21, 88, 189, .85);
    }

    .nc-auth .nc-btn-primary:disabled,
    .nc-auth .nc-btn-primary.is-loading {
        color: #fff;
        opacity: .85;
        transform: none;
        cursor: progress;
    }

    .nc-auth .nc-btn-primary .spinner-border {
        display: none;
        width: 1.1rem;
        height: 1.1rem;
        border-width: .16em;
    }

    .nc-auth .nc-btn-primary.is-loading .spinner-border {
        display: inline-block;
    }

.nc-auth .nc-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 3rem;
    padding: .65rem 1rem;
    font-weight: 600;
    color: var(--auth-text);
    background: var(--auth-surface);
    border: 1.5px solid var(--auth-input-border);
    border-radius: 14px;
    transition: border-color .15s ease, background-color .15s ease;
}

    .nc-auth .nc-btn-outline:hover {
        color: var(--auth-text);
        background: var(--auth-surface-2);
        border-color: var(--auth-input-hover);
    }

    .nc-auth .nc-btn-outline:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px var(--auth-focus);
    }

/* ── Divider + secondary area ───────────────────────────────────────────── */

.nc-auth-divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 1.5rem 0 1.1rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

    .nc-auth-divider::before,
    .nc-auth-divider::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background: var(--auth-border);
    }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .nc-auth-card--compact .nc-auth-brand {
        min-height: 0;
    }

    .nc-auth-brand-mark {
        top: .75rem;
        right: 1rem;
        font-size: 4.5rem;
    }

    .nc-auth-card {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .nc-auth-brand {
        min-height: 0;
        padding: 1.25rem 1.5rem 1.5rem;
        background-image:
            linear-gradient(90deg, rgba(10, 33, 77, .96) 0%, rgba(15, 63, 150, .86) 55%, rgba(15, 63, 150, .35) 100%),
            url("../images/nursecharts-auth-clinician.jpg");
        background-position: 35% 30%;
    }

    .nc-auth-brand-body {
        margin-top: 0;
    }

    .nc-auth-brand-title {
        font-size: 1.85rem;
    }

    .nc-auth-brand-text {
        font-size: .95rem;
    }

    .nc-auth-brand-foot {
        padding-top: .75rem;
    }
}

@media (max-width: 575.98px) {
    .nc-auth {
        padding: .75rem 0 1.5rem;
        min-height: 0;
    }

        .nc-auth::before,
        .nc-auth::after {
            display: none;
        }

    .nc-auth-card {
        border-radius: 22px;
    }

    .nc-auth-brand {
        padding: 1rem 1.15rem 1.15rem;
    }

    .nc-auth-brand-foot {
        display: none;
    }

    .nc-auth-brand-body {
        margin-top: 0;
    }

    .nc-auth-brand-title {
        font-size: 1.5rem;
        margin-bottom: .35rem;
    }

    .nc-auth-brand-text {
        display: none;
    }

    .nc-auth-main {
        padding: 1.5rem 1.15rem 1.75rem;
    }

    .nc-pw-rules {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    .nc-auth *,
    .nc-auth *::before,
    .nc-auth *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (forced-colors: active) {
    .nc-auth .nc-btn-primary {
        border: 1px solid ButtonText;
    }
}
