
        :root {
            /* Pharmacy palette */
            --mint-50:  #ECFDF7;
            --mint-100: #D1FAE9;
            --mint-200: #A7F3D4;
            --mint-400: #34D399;
            --mint-500: #10B981;
            --mint-600: #059669;
            --teal-700: #0F766E;
            --teal-900: #134E4A;

            --coral:    #F97362;   /* alert / accent */
            --sky:      #38BDF8;
            --lavender: #A78BFA;

            --ink:      #0B1F1A;
            --ink-2:    #1E2E2A;
            --muted:    #6B7F79;
            --line:     #E5EDE9;
            --line-2:   #D3E2DC;
            --paper:    #FFFFFF;
            --bg:       #F4FBF8;

            --danger:   #E11D48;
            --radius-lg: 24px;
            --radius-md: 14px;
            --radius-sm: 10px;

            --shadow-sm: 0 2px 8px rgba(15, 76, 65, 0.05);
            --shadow-md: 0 12px 32px rgba(15, 76, 65, 0.08);
            --shadow-lg: 0 32px 80px rgba(15, 76, 65, 0.14);
            --shadow-mint: 0 16px 40px rgba(16, 185, 129, 0.28);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html, body { min-height: 100%; }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: var(--bg);
            color: var(--ink);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            position: relative;
            overflow: scroll;
        }

        /* Ambient background blobs */
        body::before,
        body::after {
            content: '';
            position: fixed;
            border-radius: 50%;
            filter: blur(90px);
            opacity: 0.55;
            pointer-events: none;
            z-index: 0;
        }
        body::before {
            width: 620px; height: 620px;
            background: radial-gradient(circle, #A7F3D4 0%, transparent 70%);
            top: -220px; left: -180px;
        }
        body::after {
            width: 560px; height: 560px;
            background: radial-gradient(circle, #BAE6FD 0%, transparent 70%);
            bottom: -200px; right: -160px;
        }

        /* ============ Shell ============ */
        .pharmacy-shell {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 1240px;
            min-height: 660px;
            background: var(--paper);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            display: grid;
            grid-template-columns: 1.1fr 1fr;
            overflow: hidden;
            border: 1px solid rgba(15, 118, 110, 0.08);
        }

        /* ============ LEFT: Hero panel ============ */
        .hero-panel {
            position: relative;
            padding: 44px 48px;
            background:
                radial-gradient(120% 90% at 0% 0%, #ECFDF7 0%, #D1FAE9 40%, #A7F3D4 100%);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        /* Subtle dotted pattern */
        .hero-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(rgba(15,118,110,0.14) 1px, transparent 1px);
            background-size: 22px 22px;
            mask-image: radial-gradient(80% 60% at 20% 10%, black, transparent 80%);
            opacity: 0.7;
            pointer-events: none;
        }

        /* Decorative pill capsules */
        .capsule {
            position: absolute;
            border-radius: 999px;
            pointer-events: none;
            opacity: 0.65;
        }
        .capsule.c1 {
            width: 90px; height: 30px;
            background: linear-gradient(90deg, #34D399 50%, #FFFFFF 50%);
            top: 90px; right: -18px;
            transform: rotate(-22deg);
            box-shadow: var(--shadow-sm);
        }
        .capsule.c2 {
            width: 60px; height: 22px;
            background: linear-gradient(90deg, #F97362 50%, #FFFFFF 50%);
            bottom: 120px; left: -12px;
            transform: rotate(18deg);
            box-shadow: var(--shadow-sm);
        }
        .capsule.c3 {
            width: 44px; height: 16px;
            background: linear-gradient(90deg, #38BDF8 50%, #FFFFFF 50%);
            top: 60%; right: 40px;
            transform: rotate(45deg);
            box-shadow: var(--shadow-sm);
        }

        /* Brand */
        .brand {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .brand-left {
            display: flex;
            align-items: center;
            gap: 13px;
        }

        .brand-mark {
            width: 46px;
            height: 46px;
            border-radius: 13px;
            background: linear-gradient(135deg, var(--mint-500) 0%, var(--teal-700) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #FFFFFF;
            font-size: 24px;
            box-shadow: var(--shadow-mint);
            position: relative;
        }
        .brand-mark::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 17px;
            border: 2px dashed rgba(15, 118, 110, 0.3);
        }

        .brand-name {
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.2px;
            color: var(--ink);
        }
        .brand-name small {
            display: block;
            font-family: 'JetBrains Mono', monospace;
            font-size: 9.5px;
            font-weight: 500;
            letter-spacing: 2.5px;
            color: var(--teal-700);
            margin-top: 2px;
            text-transform: uppercase;
        }

        .admin-pill {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(255,255,255,0.85);
            border: 1px solid rgba(15,118,110,0.15);
            border-radius: 999px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 1.2px;
            color: var(--teal-700);
            backdrop-filter: blur(8px);
        }
        .admin-pill i { font-size: 13px; color: var(--mint-600); }

        /* Headline */
        .hero-copy {
            position: relative;
            z-index: 2;
        }

        .hero-copy .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            color: var(--teal-700);
            padding: 6px 12px;
            background: rgba(255,255,255,0.6);
            border-radius: 999px;
            border: 1px solid rgba(15,118,110,0.12);
            margin-bottom: 18px;
        }
        .hero-copy .eyebrow .live-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--mint-500);
            box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
            animation: pulse-live 2s ease-in-out infinite;
        }
        @keyframes pulse-live {
            0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
            50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.08); }
        }

        .hero-copy h1 {
            font-family: 'Instrument Serif', serif;
            font-size: clamp(2.4rem, 3.8vw, 3.2rem);
            font-weight: 400;
            line-height: 1.05;
            letter-spacing: -1.2px;
            color: var(--ink);
        }
        .hero-copy h1 em {
            font-style: italic;
            color: var(--teal-700);
            background: linear-gradient(120deg, var(--mint-600), var(--teal-700));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-copy p {
            margin-top: 14px;
            font-size: 14px;
            line-height: 1.65;
            color: var(--muted);
            max-width: 430px;
        }

        /* Floating prescription card (signature element) */
        .rx-card {
            position: relative;
            z-index: 2;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(14px);
            border-radius: 18px;
            padding: 18px 20px;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(15,118,110,0.08);
            margin-top: auto;
        }

        .rx-card::before {
            content: '℞';
            position: absolute;
            top: 12px;
            right: 20px;
            font-family: 'Instrument Serif', serif;
            font-size: 36px;
            color: var(--mint-500);
            opacity: 0.18;
            line-height: 1;
        }

        .rx-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 12px;
            border-bottom: 1px dashed var(--line-2);
            margin-bottom: 14px;
        }

        .rx-title {
            font-size: 12px;
            font-weight: 700;
            color: var(--ink);
            letter-spacing: 0.3px;
        }

        .rx-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 9.5px;
            font-weight: 500;
            color: var(--mint-600);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .rx-status .dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--mint-500);
        }

        .rx-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .rx-stat {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .rx-stat .ico {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            margin-bottom: 4px;
        }
        .rx-stat:nth-child(1) .ico { background: var(--mint-100); color: var(--mint-600); }
        .rx-stat:nth-child(2) .ico { background: #FEF3F0; color: var(--coral); }
        .rx-stat:nth-child(3) .ico { background: #EFF6FF; color: var(--sky); }

        .rx-stat .val {
            font-family: 'JetBrains Mono', monospace;
            font-size: 18px;
            font-weight: 600;
            color: var(--ink);
            letter-spacing: -0.5px;
        }
        .rx-stat .lbl {
            font-size: 10px;
            font-weight: 500;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.6px;
        }

        /* Feature chips */
        .feature-chips {
            position: relative;
            z-index: 2;
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }
        .f-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 11px;
            background: rgba(255,255,255,0.7);
            border: 1px solid rgba(15,118,110,0.1);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            color: var(--teal-700);
        }
        .f-chip i { font-size: 13px; color: var(--mint-600); }

        /* ============ RIGHT: Form panel ============ */
        .form-panel {
            padding: 44px 48px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--paper);
            position: relative;
            overflow-y: auto;
        }

        .form-header { margin-bottom: 26px; }

        .form-header .kicker {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10.5px;
            font-weight: 500;
            letter-spacing: 1.8px;
            color: var(--teal-700);
            background: var(--mint-50);
            padding: 5px 10px;
            border-radius: 6px;
            text-transform: uppercase;
            margin-bottom: 14px;
        }

        .form-header h2 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 800;
            font-size: 1.9rem;
            color: var(--ink);
            letter-spacing: -0.8px;
        }

        .form-header p {
            margin-top: 6px;
            font-size: 13.5px;
            color: var(--muted);
        }

        /* Admin notice */
        .admin-notice {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: linear-gradient(135deg, var(--mint-50) 0%, #F0FDF9 100%);
            border: 1px solid var(--mint-200);
            border-radius: var(--radius-sm);
            margin-bottom: 22px;
        }
        .admin-notice .ico-box {
            width: 30px; height: 30px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--mint-500), var(--teal-700));
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 15px;
            flex-shrink: 0;
        }
        .admin-notice strong {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: var(--ink);
        }
        .admin-notice span {
            display: block;
            font-size: 10.5px;
            color: var(--muted);
            margin-top: 1px;
        }

        /* Floating fields */
        .field {
            position: relative;
            margin-bottom: 18px;
        }

        .field-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted);
            font-size: 18px;
            transition: color 0.2s ease;
            z-index: 2;
            pointer-events: none;
        }

        .field-input {
            width: 100%;
            padding: 17px 46px 17px 48px;
            font-size: 14.5px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 500;
            border: 1.5px solid var(--line);
            border-radius: var(--radius-sm);
            background: #FFFFFF;
            color: var(--ink);
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .field-input::placeholder { color: transparent; }

        .field-input:hover {
            border-color: var(--line-2);
        }

        .field-input:focus {
            outline: none;
            border-color: var(--mint-500);
            background: #FBFEFD;
            box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
        }

        .field-input:focus ~ .field-icon { color: var(--mint-600); }

        .field-label {
            position: absolute;
            left: 48px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.18s ease;
            pointer-events: none;
        }

        .field-input:focus ~ .field-label,
        .field-input:not(:placeholder-shown) ~ .field-label {
            top: 0;
            left: 14px;
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: 0.4px;
            color: var(--mint-600);
            background: #FFFFFF;
            padding: 0 6px;
            text-transform: uppercase;
        }

        .field-input:focus:not(:placeholder-shown) ~ .field-label,
        .field-input:focus ~ .field-label {
            background: #FBFEFD;
        }

        .field-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            padding: 5px;
            font-size: 18px;
            z-index: 2;
            border-radius: 6px;
            transition: color 0.15s, background 0.15s;
        }
        .field-toggle:hover {
            color: var(--mint-600);
            background: var(--mint-50);
        }

        .field-input.is-invalid { border-color: var(--danger) !important; }
        .field-input.is-invalid ~ .field-icon { color: var(--danger) !important; }

        .field-error {
            display: block;
            color: var(--danger);
            font-size: 12px;
            margin-top: 6px;
            padding-left: 4px;
            font-weight: 500;
        }

        /* Remember row */
        .row-between {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 16px 0 22px;
        }

        .remember {
            display: flex;
            align-items: center;
            gap: 9px;
            cursor: pointer;
            user-select: none;
        }

        .remember .box {
            width: 18px;
            height: 18px;
            border: 1.5px solid var(--line-2);
            border-radius: 5px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }
        .remember .box.checked {
            background: var(--mint-500);
            border-color: var(--mint-500);
        }
        .remember .box.checked::after {
            content: '\F012C';
            font-family: "Material Design Icons";
            font-size: 13px;
            color: #fff;
        }
        .remember span {
            font-size: 12.5px;
            color: var(--muted);
            font-weight: 500;
        }

        .link-muted {
            font-size: 12.5px;
            color: var(--teal-700);
            font-weight: 700;
            text-decoration: none;
            transition: color 0.15s;
        }
        .link-muted:hover { color: var(--mint-600); }

        /* Primary button */
        .btn-primary {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--mint-500), var(--teal-700));
            color: #FFFFFF;
            border: none;
            border-radius: var(--radius-sm);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14.5px;
            font-weight: 700;
            letter-spacing: 0.2px;
            cursor: pointer;
            box-shadow: var(--shadow-mint);
            transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 44px rgba(16,185,129,0.36);
        }
        .btn-primary:active { transform: translateY(0); }
        .btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }
        .btn-primary.loading::after {
            content: '';
            width: 16px; height: 16px;
            border: 2px solid rgba(255,255,255,0.35);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 0.7s linear infinite;
        }
        .btn-primary i { font-size: 16px; }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* POS Keypad */
        .keypad-wrapper {
            margin-top: 18px;
            padding: 12px;
            background: var(--bg);
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
        }
        .keypad-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .keypad-title {
            font-family: 'JetBrains Mono', monospace;
            font-size: 9.5px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: var(--teal-700);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .keypad-title i { font-size: 13px; }
        .keypad-hint {
            font-family: 'JetBrains Mono', monospace;
            font-size: 9px;
            color: var(--muted);
        }
        .keypad {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
        }
        .keypad button {
            height: 38px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: #FFFFFF;
            color: var(--ink);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.12s ease;
        }
        .keypad button:hover {
            border-color: var(--mint-500);
            color: var(--mint-600);
            background: var(--mint-50);
            transform: translateY(-1px);
        }
        .keypad button:active { transform: scale(0.96); }
        .keypad .action-key { color: var(--muted); }
        .keypad .clear-key { color: var(--coral); }

        /* Footer */
        .form-foot {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid var(--line);
        }
        .assurance {
            display: flex;
            align-items: center;
            gap: 9px;
            font-size: 11.5px;
            color: var(--muted);
            background: var(--bg);
            padding: 10px 12px;
            border-radius: var(--radius-sm);
        }
        .assurance i { color: var(--mint-600); font-size: 15px; }

        .network-status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            margin-top: 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: var(--muted);
        }
        .network-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--mint-500);
            box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
        }

        .copyright {
            margin-top: 10px;
            text-align: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: #A0B2AC;
            letter-spacing: 0.3px;
        }

        /* ============ Responsive ============ */
        @media (max-width: 1024px) {
            .pharmacy-shell {
                grid-template-columns: 1fr;
                max-width: 560px;
                min-height: auto;
            }
            .hero-panel { padding: 34px 32px; gap: 22px; }
            .form-panel { padding: 34px 32px; }
            .hero-copy h1 { font-size: 2.4rem; }
        }

        @media (max-width: 560px) {
            body { padding: 12px; }
            .hero-panel, .form-panel { padding: 26px 22px; }
            .hero-copy h1 { font-size: 2rem; letter-spacing: -0.8px; }
            .rx-stats { gap: 8px; }
            .rx-stat .val { font-size: 16px; }
            .row-between { flex-direction: column; align-items: flex-start; gap: 12px; }
            .capsule.c1, .capsule.c2, .capsule.c3 { display: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .hero-copy .eyebrow .live-dot { animation: none; }
        }
