/* nx-login.css — the sign-in screen's layout and look.
 *
 * Extracted from login.html so the STAFF sign-in and the PATIENT sign-in
 * (patient-login.html) cannot drift apart. Both link this file; neither carries its own copy.
 * Colours come from the same brand navy the rest of the app uses — nothing new is introduced here.
 *
 * If you restyle the sign-in, this is the only file to touch.
 */

        :root {
            --nx-primary: #2B4C7E;
            --nx-violet: #1E3A5F;
            --nx-blue: #3A6EA5;
            --nx-text: #1c2143;
            --nx-muted: #6b7192;
            --nx-border: #e6e8f4;
            --nx-grad: linear-gradient(135deg, #2B4C7E, #1E3A5F);
            --nx-btn: linear-gradient(135deg, #2B4C7E 0%, #1E3A5F 58%, #1E3A5F 100%);
        }

        body.fix-menu {
            margin: 0;
            font-family: "Inter", "Open Sans", sans-serif;
            color: var(--nx-text);
        }

        .hrms-login-block.nx-login {
            min-height: 100vh;
            display: flex;
            align-items: stretch;
            background: radial-gradient(1100px 480px at 12% -5%, #eef3f9, transparent),
                linear-gradient(120deg, #eef3f9 0%, #eef3f9 55%, #eef3f9 100%);
        }

        /* -------- Left brand panel -------- */
        .nx-left {
            flex: 1 1 58%;
            position: relative;
            overflow: hidden;
            padding: 44px 4vw 40px;
            display: flex;
            flex-direction: column;
        }

        .nx-left > * { position: relative; z-index: 1; }

        .nx-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(64px);
            z-index: 0;
        }
        .nx-blob.a { width: 340px; height: 340px; background: rgba(30, 58, 95, 0.16); top: -70px; right: 6%; }
        .nx-blob.b { width: 300px; height: 300px; background: rgba(59, 130, 246, 0.14); bottom: -50px; left: 26%; }

        .nx-dots {
            position: absolute;
            top: 26px; right: 26px;
            width: 130px; height: 84px;
            background-image: radial-gradient(#c6cef5 1.4px, transparent 1.4px);
            background-size: 13px 13px;
            opacity: 0.65;
            z-index: 0;
        }

        .nx-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 7vh; }
        .nx-brand-mark {
            width: 46px; height: 46px; border-radius: 14px;
            background: var(--nx-grad); color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; box-shadow: 0 10px 22px rgba(43, 76, 126, 0.34);
        }
        .nx-brand-name { font-size: 22px; font-weight: 800; letter-spacing: 0.4px; line-height: 1; }
        .nx-brand-name sup { color: var(--nx-violet); font-size: 15px; }
        .nx-brand-sub {
            display: block; font-size: 10px; letter-spacing: 0.22em;
            color: var(--nx-muted); font-weight: 700; margin-top: 5px;
        }
        /* Bound the login logos so an uploaded PNG of any size fits like the default SVG did
           (the img elements previously had no CSS; the SVG's small intrinsic size hid it). */
        .nx-brand-logo {
            display: block; height: auto; width: auto;
            max-height: 46px; max-width: 220px; object-fit: contain;
        }
        .nx-card-logo { text-align: center; margin-bottom: 10px; }
        .nx-card-logo img {
            display: inline-block; height: auto; width: auto;
            max-height: 84px; max-width: 240px; object-fit: contain;
        }

        .nx-h1 { font-size: clamp(30px, 3.3vw, 50px); font-weight: 800; line-height: 1.09; margin: 0 0 18px; }
        .nx-h1 .g,
        .nx-welcome .g {
            background: linear-gradient(90deg, #3A6EA5, #1E3A5F);
            -webkit-background-clip: text; background-clip: text; color: transparent;
        }
        .nx-underline { width: 62px; height: 5px; border-radius: 5px; background: var(--nx-grad); margin-bottom: 18px; }
        .nx-tag { color: var(--nx-muted); font-size: 16px; margin: 0 0 34px; }

        .nx-features { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: auto; }
        .nx-feature { width: 108px; text-align: center; }
        .nx-feature-ic {
            width: 58px; height: 58px; border-radius: 16px; background: #fff;
            box-shadow: 0 12px 26px rgba(30, 40, 90, 0.09);
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 11px; font-size: 21px;
        }
        .nx-feature-ic i {
            background: var(--nx-grad);
            -webkit-background-clip: text; background-clip: text; color: transparent;
        }
        .nx-feature-label { font-size: 12.5px; font-weight: 600; color: #3a4066; line-height: 1.35; }

        .nx-secure {
            margin-top: 28px; display: flex; gap: 14px; align-items: flex-start;
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.75);
            -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
            border-radius: 18px; padding: 16px 18px; max-width: 440px;
            box-shadow: 0 14px 32px rgba(30, 40, 90, 0.07);
        }
        .nx-secure-ic {
            width: 44px; height: 44px; border-radius: 12px; background: var(--nx-grad);
            color: #fff; display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex: 0 0 auto;
        }
        .nx-secure b { display: block; font-size: 14px; margin-bottom: 3px; }
        .nx-secure p { margin: 0; font-size: 12.5px; color: var(--nx-muted); line-height: 1.45; }

        /* -------- Right form card -------- */
        .nx-right {
            flex: 0 0 42%;
            display: flex; align-items: center; justify-content: center;
            padding: 28px 3vw;
        }
        .nx-card {
            width: 100%; max-width: 440px;
            background: rgba(255, 255, 255, 0.92);
            -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.85);
            border-radius: 26px; padding: 36px 38px 28px;
            box-shadow: 0 30px 70px rgba(45, 40, 120, 0.16);
        }
        .nx-logo-ring {
            width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 18px;
            display: flex; align-items: center; justify-content: center;
            background: conic-gradient(from 200deg, #2B4C7E, #1E3A5F, #3A6EA5, #2B4C7E);
            padding: 3px;
        }
        .nx-logo-ring > span {
            width: 100%; height: 100%; border-radius: 50%; background: #fff;
            display: flex; align-items: center; justify-content: center; font-size: 30px;
        }
        .nx-logo-ring > span i {
            background: var(--nx-grad);
            -webkit-background-clip: text; background-clip: text; color: transparent;
        }
        .nx-welcome { text-align: center; font-size: 27px; font-weight: 800; margin: 0 0 5px; }
        .nx-welcome-sub { text-align: center; color: var(--nx-muted); font-size: 14px; margin: 0 0 26px; }

        .nx-label { display: block; font-size: 13px; font-weight: 600; color: #3a4066; margin: 0 0 7px; }
        .nx-field { position: relative; margin-bottom: 18px; }
        .nx-field .ic {
            position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
            color: #9aa0be; font-size: 15px; pointer-events: none;
        }
        .nx-field .eye {
            position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
            color: #9aa0be; cursor: pointer; font-size: 15px;
        }
        .nx-input {
            width: 100%; height: 52px; border: 1.5px solid var(--nx-border);
            border-radius: 14px; background: #fff; color: var(--nx-text);
            padding: 0 44px; font-size: 14px; outline: none;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .nx-input:focus { border-color: var(--nx-primary); box-shadow: 0 0 0 4px rgba(43, 76, 126, 0.12); }
        .nx-input::placeholder { color: #a6abc6; }
        .nx-select {
            padding: 0 40px 0 16px; -webkit-appearance: none; appearance: none; cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236b7192' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 5 7 9 11 5'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 16px center;
        }

        .nx-row {
            display: flex; align-items: center; justify-content: space-between;
            margin: 2px 0 22px; font-size: 13px;
        }
        .nx-remember { display: flex; align-items: center; gap: 8px; color: var(--nx-muted); cursor: pointer; margin: 0; user-select: none; }
        .nx-remember input { width: 15px; height: 15px; accent-color: var(--nx-primary); }
        .nx-forgot { color: var(--nx-primary); text-decoration: none; font-weight: 600; }
        .nx-forgot:hover { text-decoration: underline; color: var(--nx-primary); }

        .nx-signin {
            width: 100%; height: 54px; border: none; border-radius: 14px;
            background: var(--nx-btn); color: #fff; font-size: 16px; font-weight: 700;
            cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
            box-shadow: 0 16px 34px rgba(98, 60, 220, 0.32);
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }
        .nx-signin:hover { transform: translateY(-1px); box-shadow: 0 20px 40px rgba(98, 60, 220, 0.42); color: #fff; }
        .nx-signin i { font-size: 14px; }

        .nx-foot {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            color: var(--nx-muted); font-size: 13px; margin-top: 24px;
        }
        .nx-foot b { color: var(--nx-primary); font-weight: 700; }
        .nx-foot .fic { color: var(--nx-primary); }

        @media (max-width: 991px) {
            .nx-left { display: none; }
            .nx-right { flex: 1; }
        }
        /* SSO buttons */
        .nx-sso { margin-top: 18px; }
        .nx-sso-divider { display: flex; align-items: center; gap: 12px; color: var(--nx-muted); font-size: 13px; margin: 6px 0 16px; }
        .nx-sso-divider::before, .nx-sso-divider::after { content: ""; flex: 1; height: 1px; background: var(--nx-border); }
        .nx-sso-buttons { display: flex; flex-direction: column; gap: 10px; }
        .nx-sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
            height: 48px; border: 1px solid var(--nx-border); border-radius: 12px; background: #fff;
            color: var(--nx-text); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
            transition: border-color .15s, box-shadow .15s, transform .1s; }
        .nx-sso-btn:hover { border-color: var(--nx-primary); box-shadow: 0 6px 18px rgba(43,76,126,.12); transform: translateY(-1px); color: var(--nx-text); }
        .nx-sso-btn i { font-size: 17px; color: var(--nx-primary); }

/* ─── Patient sign-in additions ──────────────────────────────────────────────
 * Only the pieces the staff door has no equivalent for: the patient chooser
 * shown when one mobile number is registered for more than one patient
 * (a family shares a phone). Colours are the existing brand tokens above.
 */
.nx-pick {
    width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
    background: #fff; border: 1.5px solid #e6e9f2; border-radius: 14px;
    padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nx-pick:hover {
    border-color: var(--nx-primary);
    box-shadow: 0 8px 22px rgba(43, 76, 126, .12);
    transform: translateY(-1px);
}
.nx-pick-av {
    width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
    background: linear-gradient(135deg, var(--nx-primary), var(--nx-violet));
    color: #fff; font-weight: 800; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.nx-pick-body { flex: 1; min-width: 0; }
.nx-pick-body b { display: block; font-size: 14.5px; color: #1f2937; }
.nx-pick-body small { color: #6b7280; font-size: 12px; }
.nx-pick .fa-angle-right { color: #9aa3b2; font-size: 18px; }

/* The "powered by koami" mark had no rule at all — it only looked right on the staff sign-in by
   accident of inline styles. Stated explicitly here so both doors render it the same way. */
.koami-powered {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 10px; text-decoration: none;
}
.koami-powered:hover { text-decoration: none; opacity: .85; }
